lambda-runtimes
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -70,9 +70,10 @@ // Canonical runtime list: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html | ||
// Add aliases after the other stuff populated to prevent dupes | ||
runtimes.nodejs = runtimes.node | ||
runtimes['node.js'] = runtimes.node | ||
runtimes.py = runtimes.python | ||
runtimes.rb = runtimes.ruby | ||
runtimes.golang = runtimes.go | ||
runtimes['.net'] = runtimes.dotnet | ||
let aliases = { | ||
nodejs: runtimes.node, | ||
'node.js': runtimes.node, | ||
py: runtimes.python, | ||
rb: runtimes.ruby, | ||
golang: runtimes.go, | ||
'.net': runtimes.dotnet, | ||
} | ||
@@ -109,3 +110,4 @@ let retiredRuntimes = { | ||
architecturesByRuntime, | ||
aliases, | ||
retiredRuntimes, | ||
} |
{ | ||
"name": "lambda-runtimes", | ||
"description": "Canonical list of AWS Lambda runtime identifiers and corresponding CPU architectures", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "module": "./esm/index.js", |
@@ -19,2 +19,3 @@ # AWS Lambda runtimes | ||
architecturesByRuntime, | ||
aliases, | ||
retiredRuntimes, | ||
@@ -31,2 +32,3 @@ } from 'lambda-runtimes' | ||
architecturesByRuntime, | ||
aliases, | ||
retiredRuntimes, | ||
@@ -45,2 +47,3 @@ } = require('lambda-runtimes') | ||
- Example: `architecturesByRuntime['nodejs14.x']` → `[ 'arm64', 'x86_64' ]`) | ||
- **`aliases`** (object) - shorthand or alternate names for runtime aliases (e.g. `py` for `runtimes.python`) | ||
- **`retiredRuntimes`** (object) - retired / EOL Lambda runtime strings, organized by runtime name | ||
@@ -67,2 +70,6 @@ - Example: `retiredRuntimes.node[0]` → `nodejs10.x` | ||
}, | ||
aliases: { | ||
nodejs: [ 'nodejs14.x', 'nodejs12.x' ], | ||
... | ||
}, | ||
retiredRuntimes: { | ||
@@ -69,0 +76,0 @@ node: [ 'nodejs10.x', ... ], |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5258
107
82
0