@aws/dynamodb-expressions
Advanced tools
Comparing version
@@ -0,0 +0,0 @@ import { ExpressionAttributes } from "./ExpressionAttributes"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=AttributeBearingExpression.js.map |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AttributeValue as BaseAttributeValue } from 'aws-sdk/clients/dynamodb'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AttributePath } from "./AttributePath"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AttributePath } from "./AttributePath"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AttributeBearingExpression } from "./AttributeBearingExpression"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './AttributePath'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AttributeBearingExpression } from "./AttributeBearingExpression"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { AttributePath } from "./AttributePath"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -11,6 +11,6 @@ import { AttributeBearingExpression } from "./AttributeBearingExpression"; | ||
export declare class UpdateExpression implements AttributeBearingExpression { | ||
private readonly toAdd; | ||
private readonly toDelete; | ||
private readonly toRemove; | ||
private readonly toSet; | ||
readonly toAdd: Map<AttributePath, any>; | ||
readonly toDelete: Map<AttributePath, any>; | ||
readonly toRemove: Set<AttributePath>; | ||
readonly toSet: Map<AttributePath, any>; | ||
/** | ||
@@ -17,0 +17,0 @@ * Add a directive to the expression's `add` clause. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var AttributePath_1 = require("./AttributePath"); | ||
var FunctionExpression_1 = require("./FunctionExpression"); | ||
@@ -20,3 +21,3 @@ var MathematicalExpression_1 = require("./MathematicalExpression"); | ||
UpdateExpression.prototype.add = function (path, value) { | ||
this.toAdd.set(path, value); | ||
this.toAdd.set(AttributePath_1.AttributePath.isAttributePath(path) ? path : new AttributePath_1.AttributePath(path), value); | ||
}; | ||
@@ -27,3 +28,3 @@ /** | ||
UpdateExpression.prototype.delete = function (path, value) { | ||
this.toDelete.set(path, value); | ||
this.toDelete.set(AttributePath_1.AttributePath.isAttributePath(path) ? path : new AttributePath_1.AttributePath(path), value); | ||
}; | ||
@@ -34,3 +35,3 @@ /** | ||
UpdateExpression.prototype.remove = function (path) { | ||
this.toRemove.add(path); | ||
this.toRemove.add(AttributePath_1.AttributePath.isAttributePath(path) ? path : new AttributePath_1.AttributePath(path)); | ||
}; | ||
@@ -41,3 +42,3 @@ /** | ||
UpdateExpression.prototype.set = function (path, value) { | ||
this.toSet.set(path, value); | ||
this.toSet.set(AttributePath_1.AttributePath.isAttributePath(path) ? path : new AttributePath_1.AttributePath(path), value); | ||
}; | ||
@@ -44,0 +45,0 @@ UpdateExpression.prototype.serialize = function (attributes) { |
{ | ||
"name": "@aws/dynamodb-expressions", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Composable expression objects for Amazon DynamoDB", | ||
@@ -31,6 +31,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/jest": "^21", | ||
"@types/jest": "^22", | ||
"@types/node": "^8.0.4", | ||
"aws-sdk": "^2.7.0", | ||
"jest": "^21", | ||
"jest": "^22", | ||
"typedoc": "^0.11.0", | ||
@@ -43,5 +43,5 @@ "typescript": "^2.7" | ||
"dependencies": { | ||
"@aws/dynamodb-auto-marshaller": "^0.4.1", | ||
"@aws/dynamodb-auto-marshaller": "^0.5.0", | ||
"tslib": "^1.8.1" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # Amazon DynamoDB Expressions |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
82712
3.12%942
0.11%+ Added
- Removed