Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Jan 13, 2021
1 parent dc08b82 commit 26f3fbd
Show file tree
Hide file tree
Showing 38 changed files with 19,662 additions and 23,811 deletions.
16 changes: 5 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,7 @@ module.exports = class {
];
}

if (!Array.isArray(cache)) {
return zipService.getFileContentAndStat.call(this, pathname);
}

const [, transpiled] = cache;
if (!transpiled) {
return zipService.getFileContentAndStat.call(this, pathname);
}

const [, transpiled] = cache || [];
const isDiff = realpath !== fullpath;
const isInside = PathIsInside(realpath, this.servicePath);
const hasSymlink = isDiff && isInside;
Expand Down Expand Up @@ -245,7 +237,7 @@ module.exports = class {

const [data, stat] = await Promise.all([
// Get file contents and stat in parallel
zipService.getFileContent.call(this, transpiled),
zipService.getFileContent.call(this, transpiled || realpath),
statAsync(pathname),
]);

Expand Down Expand Up @@ -535,7 +527,9 @@ module.exports = class {
// Order is important, otherwise exclude flags will be overwritten
const patterns = includes
.concat(fileList)
.concat(excludes.map((p) => (p.charAt(0) === '!' ? p.substring(1) : `!${p}`)));
.concat(
excludes.map((p) => (p.charAt(0) === '!' ? p.substring(1) : `!${p}`)),
);

const allFilePaths = await Globby(patterns, {
cwd: this.servicePath,
Expand Down
30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"test": "NODE_ENV=test ava --timeout=5m"
},
"dependencies": {
"@vercel/nft": "^0.9.4",
"@vercel/nft": "^0.9.5",
"apr-find": "^3.0.3",
"apr-map": "^3.0.3",
"apr-parallel": "^3.0.3",
"archiver": "^5.1.0",
"globby": "^11.0.1",
"archiver": "^5.2.0",
"globby": "^11.0.2",
"lodash.flatten": "^4.4.0",
"lodash.sortby": "^4.7.0",
"lodash.topairs": "^4.3.0",
Expand All @@ -53,24 +53,27 @@
"apr-intercept": "^3.0.4",
"apr-main": "^4.0.3",
"apr-reduce": "^3.0.3",
"ava": "^3.13.0",
"ava": "^3.15.0",
"directory-tree": "^2.2.5",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-config-xo-space": "^0.25.0",
"execa": "^4.1.0",
"husky": "^4.3.0",
"lint-staged": "^10.5.2",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-config-xo-space": "^0.26.0",
"execa": "^5.0.0",
"husky": "^4.3.7",
"lint-staged": "^10.5.3",
"markdown-table": "^2.0.0",
"path-type": "^4.0.0",
"prettier": "^2.2.0",
"pretty-bytes": "^5.4.1",
"prettier": "^2.2.1",
"pretty-bytes": "^5.5.0",
"pretty-ms": "^7.0.1"
},
"peerDependencies": {
"serverless": "^1.71.3",
"typescript": "^3.9.3"
},
"resolutions": {
"fsevents": "1.2.13"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
Expand Down Expand Up @@ -107,7 +110,8 @@
"rules": {
"new-cap": 0,
"camelcase": 0,
"capitalized-comments": 0
"capitalized-comments": 0,
"no-promise-executor-return": 0
}
},
"ava": {
Expand Down
8 changes: 4 additions & 4 deletions test/__fixtures__/js-nm-individually/framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"private": true,
"main": "index.ts",
"dependencies": {
"@hapi/boom": "^9.1.0",
"@hapi/boom": "^9.1.1",
"@hapi/bourne": "^2.0.0",
"@hapi/joi": "^17.1.1",
"apr-intercept": "^3.0.3",
"debug": "^4.1.1"
"apr-intercept": "^3.0.4",
"debug": "^4.3.1"
},
"devDependencies": {
"aws-lambda": "1.0.6"
"aws-lambda": "^1.0.6"
}
}
4 changes: 2 additions & 2 deletions test/__fixtures__/js-nm-individually/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "serverless-plugin-tree-shake-ws-all",
"private": true,
"devDependencies": {
"@zeit/ncc": "^0.22.3",
"serverless": "^1.72.0",
"@vercel/ncc": "^0.27.0",
"serverless": "^2.18.0",
"serverless-plugin-ncc": "^0.4.0"
},
"workspaces": [
Expand Down

0 comments on commit 26f3fbd

Please sign in to comment.