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

@aws-sdk/util-dynamodb

Package Overview
Dependencies
Maintainers
5
Versions
397
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-dynamodb - npm Package Compare versions

Comparing version 1.0.0-gamma.2 to 1.0.0-rc.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.0.0-rc.1](https://github.com/aws/aws-sdk-js-v3/compare/v1.0.0-gamma.11...v1.0.0-rc.1) (2020-10-19)
### Features
* ready for release candidate ([#1578](https://github.com/aws/aws-sdk-js-v3/issues/1578)) ([519f66c](https://github.com/aws/aws-sdk-js-v3/commit/519f66c6388b91d0bd750a511e6d1af56196835e))
# [1.0.0-gamma.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/util-dynamodb@1.0.0-gamma.1...@aws-sdk/util-dynamodb@1.0.0-gamma.2) (2020-10-07)

@@ -8,0 +19,0 @@

68

dist/cjs/convertToAttr.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertToAttr = void 0;
var tslib_1 = require("tslib");
/**

@@ -11,3 +10,3 @@ * Convert a JavaScript value to its equivalent DynamoDB AttributeValue type

*/
exports.convertToAttr = function (data, options) {
exports.convertToAttr = (data, options) => {
var _a, _b;

@@ -27,6 +26,6 @@ if (Array.isArray(data)) {

};
var convertToListAttr = function (data, options) { return ({
L: data.map(function (item) { return exports.convertToAttr(item, options); }),
}); };
var convertToSetAttr = function (set, options) {
const convertToListAttr = (data, options) => ({
L: data.map((item) => exports.convertToAttr(item, options)),
});
const convertToSetAttr = (set, options) => {
if (set.size === 0) {

@@ -36,5 +35,5 @@ if (options === null || options === void 0 ? void 0 : options.convertEmptyValues) {

}
throw new Error("Please pass a non-empty set, or set convertEmptyValues to true.");
throw new Error(`Please pass a non-empty set, or set convertEmptyValues to true.`);
}
var item = set.values().next().value;
const item = set.values().next().value;
if (typeof item === "number") {

@@ -44,3 +43,3 @@ return {

.map(convertToNumberAttr)
.map(function (item) { return item.N; }),
.map((item) => item.N),
};

@@ -52,3 +51,3 @@ }

.map(convertToBigIntAttr)
.map(function (item) { return item.N; }),
.map((item) => item.N),
};

@@ -60,3 +59,3 @@ }

.map(convertToStringAttr)
.map(function (item) { return item.S; }),
.map((item) => item.S),
};

@@ -70,17 +69,16 @@ }

.map(convertToBinaryAttr)
.map(function (item) { return item.B; }),
.map((item) => item.B),
};
}
else {
throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.");
throw new Error(`Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.`);
}
};
var convertToMapAttr = function (data, options) { return ({
M: Object.entries(data).reduce(function (acc, _a) {
var _b;
var _c = tslib_1.__read(_a, 2), key = _c[0], value = _c[1];
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_b = {}, _b[key] = exports.convertToAttr(value, options), _b)));
}, {}),
}); };
var convertToScalarAttr = function (data, options) {
const convertToMapAttr = (data, options) => ({
M: Object.entries(data).reduce((acc, [key, value]) => ({
...acc,
[key]: exports.convertToAttr(value, options),
}), {}),
});
const convertToScalarAttr = (data, options) => {
if (data === null && typeof data === "object") {

@@ -113,26 +111,26 @@ return convertToNullAttr();

}
throw new Error("Unsupported type passed: " + data);
throw new Error(`Unsupported type passed: ${data}`);
};
// For future-proofing: this functions are called from multiple places
var convertToNullAttr = function () { return ({ NULL: true }); };
var convertToBinaryAttr = function (data) { return ({ B: data }); };
var convertToStringAttr = function (data) { return ({ S: data }); };
var convertToBigIntAttr = function (data) { return ({ N: data.toString() }); };
var validateBigIntAndThrow = function (errorPrefix) {
throw new Error(errorPrefix + " " + (typeof BigInt === "function" ? "Use BigInt." : "Pass string value instead.") + " ");
const convertToNullAttr = () => ({ NULL: true });
const convertToBinaryAttr = (data) => ({ B: data });
const convertToStringAttr = (data) => ({ S: data });
const convertToBigIntAttr = (data) => ({ N: data.toString() });
const validateBigIntAndThrow = (errorPrefix) => {
throw new Error(`${errorPrefix} ${typeof BigInt === "function" ? "Use BigInt." : "Pass string value instead."} `);
};
var convertToNumberAttr = function (num) {
const convertToNumberAttr = (num) => {
if ([Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY].includes(num)) {
throw new Error("Special numeric value " + num + " is not allowed");
throw new Error(`Special numeric value ${num} is not allowed`);
}
else if (num > Number.MAX_SAFE_INTEGER) {
validateBigIntAndThrow("Number " + num + " is greater than Number.MAX_SAFE_INTEGER.");
validateBigIntAndThrow(`Number ${num} is greater than Number.MAX_SAFE_INTEGER.`);
}
else if (num < Number.MIN_SAFE_INTEGER) {
validateBigIntAndThrow("Number " + num + " is lesser than Number.MIN_SAFE_INTEGER.");
validateBigIntAndThrow(`Number ${num} is lesser than Number.MIN_SAFE_INTEGER.`);
}
return { N: num.toString() };
};
var isBinary = function (data) {
var binaryTypes = [
const isBinary = (data) => {
const binaryTypes = [
"ArrayBuffer",

@@ -160,2 +158,2 @@ "Blob",

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydFRvQXR0ci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0VG9BdHRyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFLQTs7Ozs7R0FLRztBQUNVLFFBQUEsYUFBYSxHQUFHLFVBQUMsSUFBMEIsRUFBRSxPQUF5Qjs7SUFDakYsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFO1FBQ3ZCLE9BQU8saUJBQWlCLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0tBQ3pDO1NBQU0sSUFBSSxPQUFBLElBQUksYUFBSixJQUFJLHVCQUFKLElBQUksQ0FBRSxXQUFXLDBDQUFFLElBQUksTUFBSyxLQUFLLEVBQUU7UUFDNUMsT0FBTy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FxuICAgIFwiRmlsZVwiLFxuICAgIFwiSW50OEFycmF5XCIsXG4gICAgXCJVaW50OEFycmF5XCIsXG4gICAgXCJVaW50OENsYW1wZWRBcnJheVwiLFxuICAgIFwiSW50MTZBcnJheVwiLFxuICAgIFwiVWludDE2QXJyYXlcIixcbiAgICBcIkludDMyQXJyYXlcIixcbiAgICBcIlVpbnQzMkFycmF5XCIsXG4gICAgXCJGbG9hdDMyQXJyYXlcIixcbiAgICBcIkZsb2F0NjRBcnJheVwiLFxuICAgIFwiQmlnSW50NjRBcnJheVwiLFxuICAgIFwiQmlnVWludDY0QXJyYXlcIixcbiAgXTtcblxuICBpZiAoZGF0YT8uY29uc3RydWN0b3IpIHtcbiAgICByZXR1cm4gYmluYXJ5VHlwZXMuaW5jbHVkZXMoZGF0YS5jb25zdHJ1Y3Rvci5uYW1lKTtcbiAgfVxuICByZXR1cm4gZmFsc2U7XG59O1xuIl19
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertToNative = void 0;
var tslib_1 = require("tslib");
/**

@@ -11,50 +10,39 @@ * Convert a DynamoDB AttributeValue object to its equivalent JavaScript type.

*/
exports.convertToNative = function (data, options) {
var e_1, _a;
try {
for (var _b = tslib_1.__values(Object.entries(data)), _c = _b.next(); !_c.done; _c = _b.next()) {
var _d = tslib_1.__read(_c.value, 2), key = _d[0], value = _d[1];
if (value !== undefined) {
switch (key) {
case "NULL":
return null;
case "BOOL":
return Boolean(value);
case "N":
return convertNumber(value, options);
case "B":
return convertBinary(value);
case "S":
return convertString(value);
case "L":
return convertList(value, options);
case "M":
return convertMap(value, options);
case "NS":
return new Set(value.map(function (item) { return convertNumber(item, options); }));
case "BS":
return new Set(value.map(convertBinary));
case "SS":
return new Set(value.map(convertString));
default:
throw new Error("Unsupported type passed: " + key);
}
exports.convertToNative = (data, options) => {
for (const [key, value] of Object.entries(data)) {
if (value !== undefined) {
switch (key) {
case "NULL":
return null;
case "BOOL":
return Boolean(value);
case "N":
return convertNumber(value, options);
case "B":
return convertBinary(value);
case "S":
return convertString(value);
case "L":
return convertList(value, options);
case "M":
return convertMap(value, options);
case "NS":
return new Set(value.map((item) => convertNumber(item, options)));
case "BS":
return new Set(value.map(convertBinary));
case "SS":
return new Set(value.map(convertString));
default:
throw new Error(`Unsupported type passed: ${key}`);
}
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
throw new Error("No value defined: " + data);
throw new Error(`No value defined: ${data}`);
};
var convertNumber = function (numString, options) {
const convertNumber = (numString, options) => {
if (options === null || options === void 0 ? void 0 : options.wrapNumbers) {
return { value: numString };
}
var num = Number(numString);
var infinityValues = [Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY];
const num = Number(numString);
const infinityValues = [Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY];
if ((num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) && !infinityValues.includes(num)) {

@@ -65,7 +53,7 @@ if (typeof BigInt === "function") {

else {
throw new Error(numString + " is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.");
throw new Error(`${numString} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);
}
}
else if (num.toString() !== numString) {
throw new Error("Value " + numString + " is outside IEEE 754 Floating-Point Arithmetic. Set options.wrapNumbers to get string value.");
throw new Error(`Value ${numString} is outside IEEE 754 Floating-Point Arithmetic. Set options.wrapNumbers to get string value.`);
}

@@ -75,14 +63,9 @@ return num;

// For future-proofing: Functions from scalar value as well as set value
var convertString = function (stringValue) { return stringValue; };
var convertBinary = function (binaryValue) { return binaryValue; };
var convertList = function (list, options) {
return list.map(function (item) { return exports.convertToNative(item, options); });
};
var convertMap = function (map, options) {
return Object.entries(map).reduce(function (acc, _a) {
var _b;
var _c = tslib_1.__read(_a, 2), key = _c[0], value = _c[1];
return (tslib_1.__assign(tslib_1.__assign({}, acc), (_b = {},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bmddOiBOYXRpdmVBdHRyaWJ1dGVWYWx1ZSB9LCBba2V5LCB2YWx1ZV06IFtzdHJpbmcsIEF0dHJpYnV0ZVZhbHVlXSkgPT4gKHtcbiAgICAgIC4uLmFjYyxcbiAgICAgIFtrZXldOiBjb252ZXJ0VG9OYXRpdmUodmFsdWUsIG9wdGlvbnMpLFxuICAgIH0pLFxuICAgIHt9XG4gICk7XG4iXX0=
const convertString = (stringValue) => stringValue;
const convertBinary = (binaryValue) => binaryValue;
const convertList = (list, options) => list.map((item) => exports.convertToNative(item, options));
const convertMap = (map, options) => Object.entries(map).reduce((acc, [key, value]) => ({
...acc,
[key]: exports.convertToNative(value, options),
}), {});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydFRvTmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnZlcnRUb05hdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFLQTs7Ozs7R0FLRztBQUNVLFFBQUEsZUFBZSxHQUFHLENBQUMsSUFBb0IsRUFBRSxPQUEyQixFQUF3QixFQUFFO0lBQ3pHLEtBQUssTUFBTSxDQUFDLEdBQUcsRUFBRSxLQUFLLENBQUMsSUFBSSxNQUFNLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFO1FBQy9DLElBQUksS0FBSyxLQUFLLFNBQVMsRUFBRTtZQUN2QixRQUFRLEdBQUcsRUFBRTtnQkFDWCxLQUFLLE1BQU07b0JBQ1QsT0FBTyxJQUFJLENBQUM7Z0JBQ2QsS0FBSyxNQUFNO29CQUNULE9BQU8sT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO2dCQUN4QixLQUFLLEdBQUc7b0JBQ04sT0FBTyxhQUFhLENBQUMsS0FBZSxFQUFFLE9BQU8sQ0FBQyxDQUFDO2dCQUNqRCxLQUFLLEdBQUc7b0JBQ04sT0F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Bba2V5OiBzdHJpbmddOiBBdHRyaWJ1dGVWYWx1ZSB9LFxuICBvcHRpb25zPzogdW5tYXJzaGFsbE9wdGlvbnNcbik6IHsgW2tleTogc3RyaW5nXTogTmF0aXZlQXR0cmlidXRlVmFsdWUgfSA9PlxuICBPYmplY3QuZW50cmllcyhtYXApLnJlZHVjZShcbiAgICAoYWNjOiB7IFtrZXk6IHN0cmluZ106IE5hdGl2ZUF0dHJpYnV0ZVZhbHVlIH0sIFtrZXksIHZhbHVlXTogW3N0cmluZywgQXR0cmlidXRlVmFsdWVdKSA9PiAoe1xuICAgICAgLi4uYWNjLFxuICAgICAgW2tleV06IGNvbnZlcnRUb05hdGl2ZSh2YWx1ZSwgb3B0aW9ucyksXG4gICAgfSksXG4gICAge31cbiAgKTtcbiJdfQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./convertToAttr"), exports);

@@ -5,0 +5,0 @@ tslib_1.__exportStar(require("./convertToNative"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.marshall = void 0;
var convertToAttr_1 = require("./convertToAttr");
const convertToAttr_1 = require("./convertToAttr");
/**

@@ -11,3 +11,3 @@ * Convert a JavaScript object into a DynamoDB record.

*/
exports.marshall = function (data, options) { return convertToAttr_1.convertToAttr(data, options).M; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFyc2hhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWFyc2hhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsaURBQWdEO0FBYWhEOzs7OztHQUtHO0FBQ1UsUUFBQSxRQUFRLEdBQUcsVUFDdEIsSUFBNkMsRUFDN0MsT0FBeUIsSUFDYSxPQUFBLDZCQUFhLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUF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fSA9PiBjb252ZXJ0VG9BdHRyKGRhdGEsIG9wdGlvbnMpLk0gYXMgeyBba2V5OiBzdHJpbmddOiBBdHRyaWJ1dGVWYWx1ZSB9O1xuIl19
exports.marshall = (data, options) => convertToAttr_1.convertToAttr(data, options).M;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFyc2hhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWFyc2hhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsbURBQWdEO0FBYWhEOzs7OztHQUtHO0FBQ1UsUUFBQSxRQUFRLEdBQUcsQ0FDdEIsSUFBNkMsRUFDN0MsT0FBeUIsRUFDVSxFQUFFLENBQUMsNkJBQWEsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBc0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEF0dHJpYnV0ZVZhbHVlIH0gZnJvbSBcIkBhd3Mtc2RrL2NsaWVudC1keW5hbW9kYlwiO1xuXG5pbXBvcnQgeyBjb252ZXJ0VG9BdHRyIH0gZnJvbSBcIi4vY29udmVydFRvQXR0clwiO1xuaW1wb3J0IHsgTmF0aXZlQXR0cmlidXRlVmFsdWUgfSBmcm9tIFwiLi9tb2RlbHNcIjtcblxuLyoqXG4gKiBBbiBvcHRpb25hbCBjb25maWd1cmF0aW9uIG9iamVjdCBmb3IgYG1hcnNoYWxsYFxuICovXG5leHBvcnQgaW50ZXJmYWNlIG1hcnNoYWxsT3B0aW9ucyB7XG4gIC8qKlxuICAgKiBXaGV0aGVyIHRvIGF1dG9tYXRpY2FsbHkgY29udmVydCBlbXB0eSBzdHJpbmdzLCBibG9icywgYW5kIHNldHMgdG8gYG51bGxgXG4gICAqL1xuICBjb252ZXJ0RW1wdHlWYWx1ZXM/OiBib29sZWFuO1xufVxuXG4vKipcbiAqIENvbnZlcnQgYSBKYXZhU2NyaXB0IG9iamVjdCBpbnRvIGEgRHluYW1vREIgcmVjb3JkLlxuICpcbiAqIEBwYXJhbSB7YW55fSBkYXRhIC0gVGhlIGRhdGEgdG8gY29udmVydCB0byBhIER5bmFtb0RCIHJlY29yZFxuICogQHBhcmFtIHttYXJzaGFsbE9wdGlvbnN9IG9wdGlvbnMgLSBBbiBvcHRpb25hbCBjb25maWd1cmF0aW9uIG9iamVjdCBmb3IgYG1hcnNoYWxsYFxuICovXG5leHBvcnQgY29uc3QgbWFyc2hhbGwgPSAoXG4gIGRhdGE6IHsgW2tleTogc3RyaW5nXTogTmF0aXZlQXR0cmlidXRlVmFsdWUgfSxcbiAgb3B0aW9ucz86IG1hcnNoYWxsT3B0aW9uc1xuKTogeyBba2V5OiBzdHJpbmddOiBBdHRyaWJ1dGVWYWx1ZSB9ID0+IGNvbnZlcnRUb0F0dHIoZGF0YSwgb3B0aW9ucykuTSBhcyB7IFtrZXk6IHN0cmluZ106IEF0dHJpYnV0ZVZhbHVlIH07XG4iXX0=
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unmarshall = void 0;
var convertToNative_1 = require("./convertToNative");
const convertToNative_1 = require("./convertToNative");
/**

@@ -11,5 +11,3 @@ * Convert a DynamoDB record into a JavaScript object.

*/
exports.unmarshall = function (data, options) {
return convertToNative_1.convertToNative({ M: data }, options);
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5tYXJzaGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91bm1hcnNoYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHFEQUFvRDtBQWNwRDs7Ozs7R0FLRztBQUNVLFFBQUEsVUFBVSxHQUFHLFVBQ3hCLElBQXVDLEVBQ3ZDLE9BQTJCO0lBRTNCLE9BQUEsaUNBQWUsQ0FBQyxFQUFFLENBQUMsR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GF0YTogeyBba2V5OiBzdHJpbmddOiBBdHRyaWJ1dGVWYWx1ZSB9LFxuICBvcHRpb25zPzogdW5tYXJzaGFsbE9wdGlvbnNcbik6IHsgW2tleTogc3RyaW5nXTogTmF0aXZlQXR0cmlidXRlVmFsdWUgfSA9PlxuICBjb252ZXJ0VG9OYXRpdmUoeyBNOiBkYXRhIH0sIG9wdGlvbnMpIGFzIHsgW2tleTogc3RyaW5nXTogTmF0aXZlQXR0cmlidXRlVmFsdWUgfTtcbiJdfQ==
exports.unmarshall = (data, options) => convertToNative_1.convertToNative({ M: data }, options);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5tYXJzaGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91bm1hcnNoYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHVEQUFvRDtBQWNwRDs7Ozs7R0FLRztBQUNVLFFBQUEsVUFBVSxHQUFHLENBQ3hCLElBQXVDLEVBQ3ZDLE9BQTJCLEVBQ2MsRUFBRSxDQUMzQyxpQ0FBZSxDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxFQUFFLE9BQU8sQ0FBNEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEF0dHJpYnV0ZVZhbHVlIH0gZnJvbSBcIkBhd3Mtc2RrL2NsaWVudC1keW5hbW9kYlwiO1xuXG5pbXBvcnQgeyBjb252ZXJ0VG9OYXRpdmUgfSBmcm9tIFwiLi9jb252ZXJ0VG9OYXRpdmVcIjtcbmltcG9ydCB7IE5hdGl2ZUF0dHJpYnV0ZVZhbHVlIH0gZnJvbSBcIi4vbW9kZWxzXCI7XG5cbi8qKlxuICogQW4gb3B0aW9uYWwgY29uZmlndXJhdGlvbiBvYmplY3QgZm9yIGBjb252ZXJ0VG9OYXRpdmVgXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgdW5tYXJzaGFsbE9wdGlvbnMge1xuICAvKipcbiAgICogV2hldGhlciB0byByZXR1cm4gbnVtYmVycyBhcyBhIHN0cmluZyBpbnN0ZWFkIG9mIGNvbnZlcnRpbmcgdGhlbSB0byBuYXRpdmUgSmF2YVNjcmlwdCBudW1iZXJzLlxuICAgKiBUaGlzIGFsbG93cyBmb3IgdGhlIHNhZmUgcm91bmQtdHJpcCB0cmFuc3BvcnQgb2YgbnVtYmVycyBvZiBhcmJpdHJhcnkgc2l6ZS5cbiAgICovXG4gIHdyYXBOdW1iZXJzPzogYm9vbGVhbjtcbn1cblxuLyoqXG4gKiBDb252ZXJ0IGEgRHluYW1vREIgcmVjb3JkIGludG8gYSBKYXZhU2NyaXB0IG9iamVjdC5cbiAqXG4gKiBAcGFyYW0ge2FueX0gZGF0YSAtIFRoZSBEeW5hbW9EQiByZWNvcmRcbiAqIEBwYXJhbSB7dW5tYXJzaGFsbE9wdGlvbnN9IG9wdGlvbnMgLSBBbiBvcHRpb25hbCBjb25maWd1cmF0aW9uIG9iamVjdCBmb3IgYHVubWFyc2hhbGxgXG4gKi9cbmV4cG9ydCBjb25zdCB1bm1hcnNoYWxsID0gKFxuICBkYXRhOiB7IFtrZXk6IHN0cmluZ106IEF0dHJpYnV0ZVZhbHVlIH0sXG4gIG9wdGlvbnM/OiB1bm1hcnNoYWxsT3B0aW9uc1xuKTogeyBba2V5OiBzdHJpbmddOiBOYXRpdmVBdHRyaWJ1dGVWYWx1ZSB9ID0+XG4gIGNvbnZlcnRUb05hdGl2ZSh7IE06IGRhdGEgfSwgb3B0aW9ucykgYXMgeyBba2V5OiBzdHJpbmddOiBOYXRpdmVBdHRyaWJ1dGVWYWx1ZSB9O1xuIl19
{
"name": "@aws-sdk/util-dynamodb",
"version": "1.0.0-gamma.2",
"version": "1.0.0-rc.1",
"scripts": {

@@ -24,7 +24,10 @@ "prepublishOnly": "yarn build:cjs && yarn build:es",

"devDependencies": {
"@aws-sdk/client-dynamodb": "1.0.0-gamma.11",
"@aws-sdk/client-dynamodb": "1.0.0-rc.1",
"@types/jest": "^26.0.4",
"jest": "^26.1.0",
"typescript": "~4.0.2"
},
"engines": {
"node": ">= 10.0.0"
}
}
{
"compilerOptions": {
"declaration": true,
"strict": true,
"sourceMap": false,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"rootDir": "./src",
"outDir": "./dist/cjs",
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": "."

@@ -15,0 +6,0 @@ },

{
"compilerOptions": {
"declaration": true,
"strict": true,
"sourceMap": false,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"rootDir": "./src",
"outDir": "./dist/es",
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": "."

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