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

@xapp/dynamo-service

Package Overview
Dependencies
Maintainers
5
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xapp/dynamo-service - npm Package Compare versions

Comparing version 0.0.36 to 0.0.37

xapp-dynamo-service-0.0.36.tgz

17

dist/service/DynamoService.js

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

update(table, key, update, conditionOrReturns = "NONE", returns = "NONE") {
const updateExpression = getUpdateParameters(update);
const updateExpression = getUpdateParameters(transferUndefinedToRemove(update));
const conditionExpression = (typeof conditionOrReturns === "object") ? conditionOrReturns : {};

@@ -183,1 +183,16 @@ const ReturnValues = (typeof conditionOrReturns === "object") ? returns : conditionOrReturns;

}
function transferUndefinedToRemove(body) {
const set = Object.assign({}, body.set);
const remove = (body.remove || []).slice();
const setKeys = Object.keys(set);
for (const key of setKeys) {
const item = set[key];
if (!item) {
if (typeof item !== typeof true && item !== 0) {
remove.push(key);
delete set[key];
}
}
}
return Object.assign({}, body, { set, remove });
}

2

package.json
{
"name": "@xapp/dynamo-service",
"version": "0.0.36",
"version": "0.0.37",
"description": "A dynamo help class which will help maintain data integrity.",

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

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