Socket
Socket
Sign inDemoInstall

serverless-plugin-include-dependencies

Package Overview
Dependencies
148
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.1 to 4.0.0

8

get-dependency-list.js

@@ -11,6 +11,4 @@ 'use strict';

const alwaysIgnored = new Set(['aws-sdk']);
function ignoreMissing(dependency, optional) {
return alwaysIgnored.has(dependency) || (optional && dependency in optional);
return optional && dependency in optional;
}

@@ -30,6 +28,2 @@

if (alwaysIgnored.has(moduleName)) {
return;
}
try {

@@ -36,0 +30,0 @@ const pathToModule = resolve.sync(path.join(moduleName, 'package.json'), { basedir });

2

include-dependencies.js

@@ -57,3 +57,3 @@ 'use strict';

if (runtime.match(/nodejs*/)) {
if (runtime === 'provided' || runtime.match(/nodejs*/)) {
this.processIncludes(functionObject);

@@ -60,0 +60,0 @@ this.processNodeFunction(functionObject);

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

@@ -53,4 +53,4 @@ "node": ">=4.0"

"contributors": [
"Doug Moscrop (https://github.com/dougmoscrop)",
"Nicole Simone (https://github.com/nsimone)",
"Doug Moscrop (https://twitter.com/dougmoscrop)",
"(https://github.com/apps/dependabot)",
"Joscha Feth (http://www.feth.com)",

@@ -60,4 +60,5 @@ "DIALLO Mamadou Bobo (https://github.com/ecstasy2)",

"Russell Schick (https://github.com/rschick)",
"Saverio Valerio (https://github.com/sav-valerio)",
"Tommy Brunn (http://tommybrunn.com)"
]
}
# serverless-plugin-include-dependencies
> Note: This plugin no longer excludes the `aws-sdk` to stay in line with AWS best practices (bring your own SDK)
This is a Serverless plugin that should make your deployed functions smaller.

@@ -7,2 +9,11 @@

If you use this plugin, you should disable the built-in Serverless option for excluding development dependencies, which is slower anyway:
```yml
package:
excludeDevDependencies: false
```
Also consider using `serverless-plugin-common-excludes` for even greater package size reduction, and `serverless-plugin-package-size` to add guards against your deployed functions so that they do not exceed a size limit that you set.
## Installation

@@ -9,0 +20,0 @@

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