🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@aws/dynamodb-expressions

Package Overview
Dependencies
Maintainers
13
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/dynamodb-expressions - npm Package Compare versions

Comparing version

to
0.2.0

23

build/AttributePath.js
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var ATTRIBUTE_PATH_TAG = 'AmazonDynamoDbAttributePath';

@@ -40,3 +21,3 @@ var EXPECTED_TAG = "[object " + ATTRIBUTE_PATH_TAG + "]";

else {
this.elements = __spread(path);
this.elements = tslib_1.__spread(path);
}

@@ -43,0 +24,0 @@ }

"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var AttributePath_1 = require("./AttributePath");

@@ -124,3 +115,3 @@ var FunctionExpression_1 = require("./FunctionExpression");

try {
for (var _a = __values(arg.conditions), _b = _a.next(); !_b.done; _b = _a.next()) {
for (var _a = tslib_1.__values(arg.conditions), _b = _a.next(); !_b.done; _b = _a.next()) {
var condition = _b.value;

@@ -127,0 +118,0 @@ if (!isConditionExpression(condition)) {

"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var AttributePath_1 = require("./AttributePath");

@@ -38,3 +29,3 @@ var AttributeValue_1 = require("./AttributeValue");

try {
for (var _a = __values(path.elements), _b = _a.next(); !_b.done; _b = _a.next()) {
for (var _a = tslib_1.__values(path.elements), _b = _a.next(); !_b.done; _b = _a.next()) {
var element = _b.value;

@@ -41,0 +32,0 @@ if (element.type === 'AttributeName') {

20

build/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./AttributePath"));
__export(require("./AttributeValue"));
__export(require("./ConditionExpression"));
__export(require("./ExpressionAttributes"));
__export(require("./FunctionExpression"));
__export(require("./MathematicalExpression"));
__export(require("./ProjectionExpression"));
__export(require("./UpdateExpression"));
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./AttributePath"), exports);
tslib_1.__exportStar(require("./AttributeValue"), exports);
tslib_1.__exportStar(require("./ConditionExpression"), exports);
tslib_1.__exportStar(require("./ExpressionAttributes"), exports);
tslib_1.__exportStar(require("./FunctionExpression"), exports);
tslib_1.__exportStar(require("./MathematicalExpression"), exports);
tslib_1.__exportStar(require("./ProjectionExpression"), exports);
tslib_1.__exportStar(require("./UpdateExpression"), exports);
//# sourceMappingURL=index.js.map
"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/**

@@ -21,3 +12,3 @@ * Convert the supplied projection expression to the string format

try {
for (var projection_1 = __values(projection), projection_1_1 = projection_1.next(); !projection_1_1.done; projection_1_1 = projection_1.next()) {
for (var projection_1 = tslib_1.__values(projection), projection_1_1 = projection_1.next(); !projection_1_1.done; projection_1_1 = projection_1.next()) {
var projected = projection_1_1.value;

@@ -24,0 +15,0 @@ serialized.push(attributes.addName(projected));

"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var FunctionExpression_1 = require("./FunctionExpression");

@@ -69,10 +44,10 @@ var MathematicalExpression_1 = require("./MathematicalExpression");

try {
for (var _a = __values([
for (var _a = tslib_1.__values([
[this.toAdd, 'ADD'],
[this.toDelete, 'DELETE'],
]), _b = _a.next(); !_b.done; _b = _a.next()) {
var _c = __read(_b.value, 2), mapping = _c[0], verb = _c[1];
var _c = tslib_1.__read(_b.value, 2), mapping = _c[0], verb = _c[1];
try {
for (var _d = __values(mapping.entries()), _e = _d.next(); !_e.done; _e = _d.next()) {
var _f = __read(_e.value, 2), key = _f[0], value = _f[1];
for (var _d = tslib_1.__values(mapping.entries()), _e = _d.next(); !_e.done; _e = _d.next()) {
var _f = tslib_1.__read(_e.value, 2), key = _f[0], value = _f[1];
phrases.push(attributes.addName(key) + " " + attributes.addValue(value));

@@ -102,4 +77,4 @@ }

try {
for (var _j = __values(this.toSet.entries()), _k = _j.next(); !_k.done; _k = _j.next()) {
var _l = __read(_k.value, 2), key = _l[0], value = _l[1];
for (var _j = tslib_1.__values(this.toSet.entries()), _k = _j.next(); !_k.done; _k = _j.next()) {
var _l = tslib_1.__read(_k.value, 2), key = _l[0], value = _l[1];
phrases.push(attributes.addName(key) + " = " + (FunctionExpression_1.FunctionExpression.isFunctionExpression(value) || MathematicalExpression_1.MathematicalExpression.isMathematicalExpression(value)

@@ -121,3 +96,3 @@ ? value.serialize(attributes) : attributes.addValue(value)));

try {
for (var _o = __values(this.toRemove), _p = _o.next(); !_p.done; _p = _o.next()) {
for (var _o = tslib_1.__values(this.toRemove), _p = _o.next(); !_p.done; _p = _o.next()) {
var keyToRemove = _p.value;

@@ -124,0 +99,0 @@ phrases.push(attributes.addName(keyToRemove));

{
"name": "@aws/dynamodb-expressions",
"version": "0.1.1",
"version": "0.2.0",
"description": "Composable expression objects for Amazon DynamoDB",

@@ -18,7 +18,7 @@ "main": "./build/index.js",

"devDependencies": {
"@types/jest": "^20.0.2",
"@types/jest": "^21",
"@types/node": "^8.0.4",
"aws-sdk": "^2.7.0",
"jest": "^20.0.4",
"typescript": "^2.5.2"
"jest": "^21",
"typescript": "^2.6"
},

@@ -29,4 +29,5 @@ "peerDependencies": {

"dependencies": {
"@aws/dynamodb-auto-marshaller": "^0.1.0"
"@aws/dynamodb-auto-marshaller": "^0.2.0",
"tslib": "^1.8"
}
}

@@ -12,2 +12,3 @@ {

"downlevelIteration": true,
"importHelpers": true,
"module": "commonjs",

@@ -14,0 +15,0 @@ "strict": true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet