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

cruft-ddb

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cruft-ddb - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

7

lib/update.js

@@ -22,4 +22,8 @@ "use strict";

.filter(key => key !== 'created');
const updateExpression = fieldNames.map(key => `${key}=:${key}`)
const updateExpression = fieldNames.map(key => `#${key}=:${key}`)
.join(', ');
const updateExpressionAttributeNames = fieldNames.reduce((obj, key) => {
obj[`#${key}`] = key;
return obj;
}, {});
const updateExpressionAttributeValues = fieldNames.reduce((obj, key) => {

@@ -42,2 +46,3 @@ obj[`:${key}`] = updatedItem[key];

UpdateExpression: `set ${updateExpression}`,
ExpressionAttributeNames: updateExpressionAttributeNames,
ExpressionAttributeValues: expressionAttributeValues,

@@ -44,0 +49,0 @@ ReturnValues: 'ALL_NEW'

2

package.json
{
"name": "cruft-ddb",
"version": "1.0.4",
"version": "1.0.5",
"description": "A simple optimistic-locking abstraction over Dynamo DB",

@@ -5,0 +5,0 @@ "main": "lib/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