New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aws-lambda-nodejs-esbuild

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-nodejs-esbuild - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

10

dist/function.js

@@ -39,3 +39,3 @@ "use strict";

constructor(scope, id, props = {}) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
if (props.runtime && props.runtime.family !== lambda.RuntimeFamily.NODEJS) {

@@ -50,9 +50,9 @@ throw new Error('Only `NODEJS` runtimes are supported.');

const buildOptions = withDefaultOptions((_a = props.esbuildOptions) !== null && _a !== void 0 ? _a : {});
const exclude = ramda_1.union(props.exclude || [], ['aws-sdk']);
const packager = (_b = props.packager) !== null && _b !== void 0 ? _b : true;
const handler = (_c = props.handler) !== null && _c !== void 0 ? _c : 'index.handler';
const exclude = (_b = props.exclude) !== null && _b !== void 0 ? _b : ['aws-sdk'];
const packager = (_c = props.packager) !== null && _c !== void 0 ? _c : true;
const handler = (_d = props.handler) !== null && _d !== void 0 ? _d : 'index.handler';
const defaultRuntime = utils_1.nodeMajorVersion() >= 12
? lambda.Runtime.NODEJS_12_X
: lambda.Runtime.NODEJS_10_X;
const runtime = (_d = props.runtime) !== null && _d !== void 0 ? _d : defaultRuntime;
const runtime = (_e = props.runtime) !== null && _e !== void 0 ? _e : defaultRuntime;
const entry = utils_1.extractFileName(projectRoot, handler);

@@ -59,0 +59,0 @@ es.buildSync(Object.assign(Object.assign({}, buildOptions), { external: ramda_1.union(exclude, buildOptions.external || []), entryPoints: [path.join(projectRoot, entry)], outdir: path.join(projectRoot, BUILD_FOLDER, path.dirname(entry)), platform: 'node' }));

{
"name": "aws-lambda-nodejs-esbuild",
"description": "λ💨 AWS CDK Construct to bundle JavaScript and TypeScript AWS lambdas using extremely fast esbuild",
"version": "1.1.4",
"version": "1.1.5",
"license": "MIT",

@@ -17,3 +17,2 @@ "author": "Victor Korzunin <ifloydrose@gmail.com>",

"prepublishOnly": "npm run build",
"postinstall": "npm run build",
"precommit": "npm run lint",

@@ -20,0 +19,0 @@ "build": "npm run clean && tsc",

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