Skip to content

Commit

Permalink
Merge pull request #3 from balena-io-modules/bump-deps
Browse files Browse the repository at this point in the history
Bump deps
  • Loading branch information
otaviojacobi authored Jan 2, 2025
2 parents 54630fd + 92d1e2b commit 001941f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no lint-staged
8 changes: 4 additions & 4 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
import type { webResourceHandler } from '@balena/pinejs';

import type { WebResourceType as WebResource } from '@balena/sbvr-types';
import * as memoize from 'memoizee';
import memoize from 'memoizee';
import { randomUUID } from 'node:crypto';
import type { AnyObject } from 'pinejs-client-core';
import { TypedError } from 'typed-error';
Expand Down Expand Up @@ -243,7 +243,7 @@ export class S3Handler implements webResourceHandler.WebResourceHandler {
uploadId: string,
payload: BeginMultipartUploadPayload,
): Promise<UploadPart[]> {
const chunkSizesWithParts = await this.getChunkSizesWithParts(
const chunkSizesWithParts = this.getChunkSizesWithParts(
payload.size,
payload.chunk_size,
);
Expand Down Expand Up @@ -280,10 +280,10 @@ export class S3Handler implements webResourceHandler.WebResourceHandler {
});
}

private async getChunkSizesWithParts(
private getChunkSizesWithParts(
size: number,
chunkSize: number,
): Promise<Array<Pick<UploadPart, 'chunkSize' | 'partNumber'>>> {
): Array<Pick<UploadPart, 'chunkSize' | 'partNumber'>> {
const chunkSizesWithParts = [];
let partNumber = 1;
let remainingSize = size;
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@balena/pinejs-webresource-s3",
"version": "0.2.0",
"description": "A PineJS WebResource handler for storing & serving files on S3",
"type": "commonjs",
"main": "build/index.js",
"scripts": {
"build": "tsc",
Expand All @@ -13,18 +14,18 @@
"author": "Balena Inc. <[email protected]>",
"license": "Apache-2.0",
"devDependencies": {
"@balena/lint": "^8.0.0",
"@balena/pinejs": "^16.0.0",
"@balena/sbvr-types": "^7.0.6",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"typescript": "^5.4.3"
"@balena/lint": "^9.1.3",
"@balena/pinejs": "^19.7.1",
"@balena/sbvr-types": "^9.1.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"typescript": "^5.7.2"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.556.0",
"@aws-sdk/lib-storage": "^3.556.0",
"@aws-sdk/s3-request-presigner": "^3.556.0",
"memoizee": "^0.4.15",
"@aws-sdk/client-s3": "^3.717.0",
"@aws-sdk/lib-storage": "^3.717.0",
"@aws-sdk/s3-request-presigner": "^3.717.0",
"memoizee": "^0.4.17",
"typed-error": "^3.2.2"
},
"versionist": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"module": "Node16",
"outDir": "build",
"noUnusedParameters": true,
"noUnusedLocals": true,
Expand Down

0 comments on commit 001941f

Please sign in to comment.