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

dynamodb-builder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-builder - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "dynamodb-builder",
"version": "0.1.1",
"version": "0.1.2",
"description": "Dynamodb builder",

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

@@ -101,3 +101,5 @@ "use strict";

array.forEach(value => {
arrayConditions.push("(" + this.formatRec(value, prefix).str + ")");
if (typeof value == "object") {
arrayConditions.push("(" + this.formatRec(value, prefix).str + ")");
}
});

@@ -104,0 +106,0 @@ let str = arrayConditions

@@ -132,2 +132,18 @@ const DynamoDBExpressionBuilder = require("../src/DynamoDBExpressionBuilder");

});
it("9.", function() {
let filter = {
gee: "ree",
fee: { lee: { "($OR)": ["fee", "foo", "faa"] } }
};
let DDBExprParser = new DynamoDBExpressionBuilder(filter);
DDBExprParser.debug().should.equal("#gee = ree");
});
it("10.", function() {
let filter = {
gee: "ree",
fee: { lee: { "($OR)": [1, { foo: "faa" }, { fuu: "faa" }] } }
};
let DDBExprParser = new DynamoDBExpressionBuilder(filter);
DDBExprParser.debug().should.equal("#gee = ree AND ((#fee.#lee.#foo = faa) OR (#fee.#lee.#fuu = faa))");
});
});

@@ -134,0 +150,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