dynamodb-builder
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24393
547