Skip to content

Commit

Permalink
refactor: Upgrade filesize to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 11, 2022
1 parent c769c1e commit 9ef5fd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/aws/deploy/lib/upload-artifacts.js
Expand Up @@ -5,7 +5,7 @@ const fsp = require('fs').promises;
const path = require('path');
const crypto = require('crypto');
const limit = require('ext/promise/limit').bind(Promise);
const filesize = require('filesize');
const { filesize } = require('filesize');
const normalizeFiles = require('../../lib/normalize-files');
const getLambdaLayerArtifactPath = require('../../utils/get-lambda-layer-artifact-path');
const ServerlessError = require('../../../../serverless-error');
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/filesize.js
@@ -1,7 +1,7 @@
'use strict';

const ensureNaturalNumber = require('type/natural-number/ensure');
const filesize = require('filesize');
const { filesize } = require('filesize');

const resolveSignificant = (size) => {
return size >= 1000 ? resolveSignificant(Math.floor(size / 1000)) : size;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"essentials": "^1.2.0",
"ext": "^1.7.0",
"fastest-levenshtein": "^1.0.16",
"filesize": "^8.0.7",
"filesize": "^10.0.5",
"fs-extra": "^9.1.0",
"get-stdin": "^8.0.0",
"globby": "^11.1.0",
Expand Down

0 comments on commit 9ef5fd2

Please sign in to comment.