Socket
Socket
Sign inDemoInstall

serverless-build-plugin

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-build-plugin - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

1

config.d.ts

@@ -25,3 +25,2 @@ /// <reference types="archiver" />

zip: ArchiverOptions;
followSymlinks: boolean;
functions: any;

@@ -28,0 +27,0 @@ synchronous: boolean;

@@ -23,3 +23,2 @@ "use strict";

zip: { gzip: true, gzipOptions: { level: 5 } },
followSymlinks: true,
functions: {},

@@ -26,0 +25,0 @@ synchronous: true,

@@ -25,3 +25,2 @@ /// <reference types="archiver" />

uglify: IUglifyParams;
followSymlinks: boolean;
constructor(config: {

@@ -32,3 +31,2 @@ logger: Logger;

uglify?: IUglifyParams;
followSymlinks?: boolean;
});

@@ -35,0 +33,0 @@ /**

@@ -86,3 +86,2 @@ "use strict";

function ModuleBundler(config) {
this.followSymlinks = true;
Object.assign(this, config);

@@ -89,0 +88,0 @@ }

2

package.json
{
"name": "serverless-build-plugin",
"version": "2.0.2",
"version": "2.0.3",
"description": "A Node.js focused build optimizer plugin for serverless",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -0,13 +1,15 @@

[![NPM](https://img.shields.io/npm/v/serverless-build-plugin.svg)](https://nodei.co/npm/serverless-build-plugin/) &nbsp; [![Build Status](https://travis-ci.org/nfour/serverless-build-plugin.svg?branch=master)](https://travis-ci.org/nfour/serverless-build-plugin)
![Serverless Build Plugin](https://i.imgur.com/6ARU4Xm.png)
A **Node.js** focused build optimizer plugin for [serverless](https://github.com/serverless/serverless).
> A **Node.js** focused build optimizer plugin for [serverless](https://github.com/serverless/serverless).
**Version**: 2.0.0-0 (pre-release)
Replaces packaging functionality for Node.JS functions. \
Typically this will result in significant size reductions, especially with **webpack**
`serverless-build-plugin` replaces packaging functionality for functions, allowing for:
- Bundling of functions in a Node.js friendly way
- Or, building via `webpack` and any arbitrary build file
- **Bundling** of functions in a Node.js friendly way
- Arbitrary builds, with your own build file or a **webpack** config.
Docs:
- [Installation & Configuration](https://github.com/nfour/serverless-build-plugin/blob/master/docs/Install%20&%20Config.md)
- [Usage](https://github.com/nfour/serverless-build-plugin/blob/master/docs/Usage.md)
- [Installation & Configuration](./docs/Install%20&%20Config.md)
- [Usage](./docs/Usage.md)

@@ -109,3 +109,2 @@ "use strict";

'modules', 'zip',
'followSymlinks',
]));

@@ -121,3 +120,2 @@ }

'modules', 'include', 'exclude', 'zip',
'followSymlinks',
]));

@@ -304,3 +302,2 @@ }

servicePath: this.servicePath,
followSymlinks: this.config.followSymlinks,
});

@@ -338,3 +335,2 @@ this.logger.log('');

archive: artifact,
followSymlinks: this.config.followSymlinks,
}).bundle(__assign({ include: Array.from(moduleIncludes || []) }, this.config.modules))];

@@ -341,0 +337,0 @@ case 6:

@@ -17,3 +17,2 @@ /// <reference types="archiver" />

transformExtensions: string[];
followSymlinks: boolean;
constructor(config: {

@@ -27,3 +26,2 @@ logger: Logger;

transformExtensions?: string[];
followSymlinks?: boolean;
});

@@ -30,0 +28,0 @@ /**

@@ -55,3 +55,2 @@ "use strict";

this.transformExtensions = ['ts', 'js', 'jsx', 'tsx'];
this.followSymlinks = true;
Object.assign(this, config);

@@ -58,0 +57,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc