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

@lifeomic/lambda-tools

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lifeomic/lambda-tools - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

{
"name": "@lifeomic/lambda-tools",
"version": "2.3.0",
"version": "2.3.1",
"description": "Common utilities for Lambda testing and development",

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

@@ -39,3 +39,2 @@ const assert = require('assert');

const nodeVersion = options.nodeVersion || DEFAULT_NODE_VERSION;
const outputFile = entrypoints.length === 1 ? path.basename(entrypoints[0]) : '[name]';

@@ -64,3 +63,4 @@ const plugins = [

libraryTarget: 'commonjs',
filename: outputFile
// Zipped bundles use explicit output names to determine the archive name
filename: options.zip ? Object.keys(entry)[0] : '[name]'
},

@@ -67,0 +67,0 @@ devtool: 'source-map',

@@ -180,4 +180,15 @@ const build = require('../src/webpack');

test('Bundles can use custom names', async (test) => {
test('Single entry bundles can use custom names', async (test) => {
const buildResults = await build({
entrypoint: path.join(__dirname, 'fixtures', 'lambda_graphql.js:graphql.js'),
outputPath: test.context.buildDirectory,
serviceName: 'test-service'
});
test.false(buildResults.hasErrors());
test.true(await fs.pathExists(path.join(test.context.buildDirectory, 'graphql.js')));
});
test('Multi-entry bundles can use custom names', async (test) => {
const buildResults = await build({
entrypoint: [

@@ -184,0 +195,0 @@ path.join(__dirname, 'fixtures', 'lambda_graphql.js:graphql.js'),

Sorry, the diff of this file is not supported yet