chrome-aws-lambda
Advanced tools
Comparing version 1.11.0 to 1.11.1
{ | ||
"name": "chrome-aws-lambda", | ||
"private": false, | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"author": { | ||
@@ -11,2 +11,3 @@ "name": "Alix Axel" | ||
"main": "source/index.js", | ||
"types": "source/index.d.ts", | ||
"files": [ | ||
@@ -13,0 +14,0 @@ "bin", |
@@ -19,2 +19,18 @@ # chrome-aws-lambda | ||
## AWS Lambda Layers | ||
[Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) is a new convenient way to manage common dependencies between different Lambda Functions. | ||
The following set of commands will create a well-structured layer of this package: | ||
```shell | ||
npm pack && \ | ||
mkdir --parents nodejs/node_modules/chrome-aws-lambda/ && \ | ||
tar --directory nodejs/node_modules/chrome-aws-lambda/ --extract --file chrome-aws-lambda-*.tgz --strip-components=1 && \ | ||
rm chrome-aws-lambda-*.tgz && \ | ||
zip -9 --filesync --move --recurse-paths _/chrome-aws-lambda.layer.zip nodejs/ | ||
``` | ||
The above will create a `_/chrome-aws-lambda.layer.zip` file, which can be uploaded to your Layers console. | ||
## API | ||
@@ -110,3 +126,3 @@ | ||
| ------------------- | --------------------------------------------- | ---------------------------------------------------- | | ||
| `1.11.0` | `npm i chrome-aws-lambda@1.11.0 --save-exact` | [`609904`](https://crrev.com/609904) (`72.0.3618.0`) | | ||
| `1.11.0` | `npm i chrome-aws-lambda@1.11.1 --save-exact` | [`609904`](https://crrev.com/609904) (`72.0.3618.0`) | | ||
| `1.10.0` | `npm i chrome-aws-lambda@1.10.1 --save-exact` | [`604907`](https://crrev.com/604907) (`72.0.3582.0`) | | ||
@@ -113,0 +129,0 @@ | `1.9.0` | `npm i chrome-aws-lambda@1.9.1 --save-exact` | [`594312`](https://crrev.com/594312) (`71.0.3563.0`) | |
@@ -13,3 +13,2 @@ const fs = require('fs'); | ||
'--disable-accelerated-2d-canvas', | ||
'--disable-background-networking', | ||
'--disable-background-timer-throttling', | ||
@@ -16,0 +15,0 @@ '--disable-breakpad', |
36711571
11
761
184