Skip to content

Commit

Permalink
fix: update dependencies to address high severity vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
nolde committed Mar 29, 2022
1 parent 868253c commit 5ba17e4
Show file tree
Hide file tree
Showing 4 changed files with 13,309 additions and 1,774 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ version: 2
jobs:
run_tests:
docker:
- image: circleci/node:10
- image: circleci/node:14
steps:
- checkout
- run: npm ci --verbose
- run: npm test

release:
docker:
- image: circleci/node:10
- image: circleci/node:12
steps:
- checkout
- run: npm ci --verbose
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Serverless Browserifier Plugin
[![NPM downloads][downloads-badge]][npm-url]
[![standardjs][standardjs-badge]][standardjs-url]

> A [Serverless](https://serverless.com) v1 and v2 plugin that uses [`browserify`][browserify-url] to bundle your Node.js Lambda functions.
> A [Serverless](https://serverless.com) plugin that uses [`browserify`][browserify-url] to bundle your Node.js Lambda functions. Works with serverless versions 1 to 3.
1. [Supported Commands](#supported-commands)
1. [Motivation](#motivation)
Expand Down Expand Up @@ -190,9 +190,9 @@ const s3 = new S3()

#### Ignore AWS SDK v2!

Although you can use discrete clients (see item above), AWS Lambda service always bundles up the latest SDK version in its Lambda container image. That means that, even if you don't add AWS SDK to your bundle, it will still be available in runtime.
Although you can use discrete clients (see item above), AWS Lambda service always bundles up the latest v2 SDK version in its Lambda container image. That means that, even if you don't add AWS SDK to your bundle, it will still be available in for your code in runtime.

Therefore, if you don't need any specific AWS SDK version, you can add the following to your plugin config:
Therefore, if you don't need any specific AWS SDK v2 version, you can add the following to your plugin config:

```yml
custom:
Expand All @@ -218,8 +218,9 @@ const fs = require('fs')
const path = require('path')
module.exports = function browserifyOptions () {
// may contain any option defined in
// https://github.com/substack/node-browserify#browserifyfiles--opts
return {
// any other valid browserify configuration...
noParse: ['/**/*.json'],
exclude: ['aws-sdk', ...getAllAwsSdkClients()]
}
Expand All @@ -246,7 +247,7 @@ You should be able to use [`uglify-es`][uglify-url] through [`uglifyify`][uglify

__This other plugin I use is not playing ball with `serverless-plugin-browserifier`! What's up?__

This plugin _hijacks_ the normal serverless packaging process, so it will probably conflict with other plugins that use similar mechanisms. Please avoid mixing this plugin with other plugins that modify serverless' packaging behaviour.
This plugin *hijacks* the normal serverless packaging process, so it will probably conflict with other plugins that use similar mechanisms. Please avoid mixing this plugin with other plugins that modify serverless' packaging behaviour.


Useful Information
Expand Down
Loading

0 comments on commit 5ba17e4

Please sign in to comment.