Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-lambda-helper

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-helper - npm Package Compare versions

Comparing version 2.21.0 to 2.22.0

.env

1

lib/index.js

@@ -389,2 +389,3 @@ 'use strict';

params2.items = results;
params2.provider = AwsHelper._context.functionName;
pushToSNSTopic(params2, function (err, data) {

@@ -391,0 +392,0 @@ if (err) {

2

package.json
{
"name": "aws-lambda-helper",
"version": "2.21.0",
"version": "2.22.0",
"description": "Collection of helper methods for lambda",

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

@@ -11,3 +11,4 @@ // this test needs to run *FIRST* for some reason ... any help figuring out why much appreciated.

AwsHelper.init({
invokedFunctionArn: process.env.INVOKED_FUNCTION_ARN
invokedFunctionArn: process.env.INVOKED_FUNCTION_ARN,
functionName: 'test-lambda'
});

@@ -40,9 +41,8 @@ done();

};
const expected = JSON.stringify({
default: JSON.stringify(params)
});
const expected = Object.assign({ provider: 'test-lambda' }, params);
AwsHelper.pushResultToClient(params, function (err) {
assert(!err);
assert.equal(AWS.SNS.prototype.publish.callCount, 1);
assert.equal(AWS.SNS.prototype.publish.calls[0].args[0].Message, expected);
const message = JSON.parse(JSON.parse(AWS.SNS.prototype.publish.calls[0].args[0].Message).default);
assert.deepEqual(message, expected);
done();

@@ -49,0 +49,0 @@ });

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