Socket
Socket
Sign inDemoInstall

serverless-plugin-include-dependencies

Package Overview
Dependencies
102
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

4

get-dependency-list.js

@@ -33,2 +33,4 @@ 'use strict';

modulesToProcess.push(pkg);
} else {
// TODO: should we warn here?
}

@@ -85,3 +87,3 @@ } catch (e) {

const packageJson = currentModule.pkg;
const { packageJson } = currentModule;

@@ -88,0 +90,0 @@ ['dependencies', 'peerDependencies', 'optionalDependencies'].forEach(key => {

@@ -142,10 +142,8 @@ 'use strict';

const relativeDependencies = dependencies.map(p => path.relative(servicePath, p));
const exclusions = exclude.filter(e => {
return !(e.indexOf('node_modules') !== 0 || e === 'node_modules' || e === 'node_modules/**');
});
return relativeDependencies.filter(p => {
return !exclude.some(e => {
if (e.indexOf('node_modules') !== 0 || e === 'node_modules' || e === 'node_modules/**') {
return false;
}
return micromatch.contains(p, e);
});
return !micromatch.some(p, exclusions);
});

@@ -152,0 +150,0 @@ }

{
"name": "serverless-plugin-include-dependencies",
"version": "4.0.0",
"version": "4.0.1",
"engines": {

@@ -21,23 +21,26 @@ "node": ">=4.0"

"test": "NODE_PATH=\"__tests__/fixtures/additional_node_path:${NODE_PATH:-}\" nyc --all ava",
"posttest": "eslint .",
"preversion": "update contributors"
"posttest": "eslint ."
},
"devDependencies": {
"ava": "^0.25.0",
"eslint": "^5.9.0",
"ava": "^3.0.0",
"eslint": "^6.8.0",
"lodash": "^4.17.11",
"nyc": "^13.1.0",
"sinon": "^7.1.1",
"update": "^0.7.4",
"nyc": "^15.0.0",
"sinon": "^8.1.1",
"updater-contributors": "^0.1.2"
},
"dependencies": {
"glob": "^7.1.3",
"micromatch": "^3.1.0",
"precinct": "^5.1.0",
"read-pkg-up": "^4.0.0",
"glob": "^7.1.6",
"micromatch": "^4.0.2",
"precinct": "^6.2.0",
"read-pkg-up": "^7.0.1",
"require-package-name": "^2.0.1",
"resolve": "^1.3.2",
"semver": "^5.6.0"
"resolve": "^1.15.0",
"semver": "^7.1.1"
},
"ava": {
"files": [
"__tests__/*.js"
]
},
"nyc": {

@@ -44,0 +47,0 @@ "reporter": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc