Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated packages with security vulnerabilities. #7466

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/plugins/aws/invokeLocal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const decompress = require('decompress');
const dirExists = require('../../../utils/fs/dirExists');
const fileExists = require('../../../utils/fs/fileExists');

const mkdirpAsync = BbPromise.promisify(mkdirp);

const cachePath = path.join(cachedir('serverless'), 'invokeLocal');

class AwsInvokeLocal {
Expand Down Expand Up @@ -295,7 +293,7 @@ class AwsInvokeLocal {
return dirExists(layerContentsCachePath).then(cacheExists => {
if (!cacheExists) {
this.serverless.cli.log(`Downloading layer ${layer}...`);
return mkdirpAsync(path.join(layerContentsCachePath))
return mkdirp(path.join(layerContentsCachePath))
.then(() =>
this.provider.request('Lambda', 'getLayerVersion', {
LayerName: layerArn,
Expand Down Expand Up @@ -351,8 +349,8 @@ class AwsInvokeLocal {
return imageName;
}
return BbPromise.all([
mkdirpAsync(path.join('.serverless', 'invokeLocal', runtime)),
mkdirpAsync(path.join(cachePath, 'dockerfiles', runtime)),
mkdirp(path.join('.serverless', 'invokeLocal', runtime)),
mkdirp(path.join(cachePath, 'dockerfiles', runtime)),
])
.then(() => {
this.serverless.cli.log('Writing Dockerfile...');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"jwt-decode": "^2.2.0",
"lodash": "^4.17.15",
"memoizee": "^0.4.14",
"mkdirp": "^0.5.1",
"mkdirp": "^1.0.0",
"nanomatch": "^1.2.13",
"ncjsm": "^4.0.1",
"node-fetch": "^1.7.3",
Expand All @@ -205,7 +205,7 @@
"stream-promise": "^3.2.0",
"tabtab": "^3.0.2",
"untildify": "^3.0.3",
"update-notifier": "^2.5.0",
"update-notifier": "^4.0.0",
"uuid": "^2.0.3",
"write-file-atomic": "^2.4.3",
"yaml-ast-parser": "0.0.43",
Expand Down