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

electrodb

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrodb - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

browser.js

2

package.json
{
"name": "electrodb",
"version": "0.11.0",
"version": "0.11.1",
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",

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

@@ -915,2 +915,3 @@ "use strict";

let translatedFields = this.model.schema.translateToFields(setAttributes);
let translatedPrimaryKeys = this.model.schema.translateToFields({...pk, ...sk});

@@ -920,2 +921,3 @@ let item = {

...updatedKeys,
...translatedPrimaryKeys,
};

@@ -927,3 +929,3 @@

ExpressionAttributeValues,
} = this._updateExpressionBuilder(item);
} = this._updateExpressionBuilder(item, Object.keys(translatedPrimaryKeys));

@@ -955,3 +957,3 @@ return {

_updateExpressionBuilder(data) {
_updateExpressionBuilder(data, overrideSkip = []) {
let accessPattern = this.model.translations.indexes.fromIndexToAccessPattern[""]

@@ -963,6 +965,8 @@ let skip = [

this.model.indexes[accessPattern].sk.field
];
].filter(name => !overrideSkip.includes(name));
return this._expressionAttributeBuilder(data, { skip });
}
_getPrimaryKeyFacets
_queryKeyExpressionAttributeBuilder(index, pk, ...sks) {

@@ -969,0 +973,0 @@ let translate = { ...this.model.translations.keys[index] };

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