@aws-sdk/util-dynamodb
Advanced tools
Comparing version 1.0.0-gamma.1 to 1.0.0-gamma.2
@@ -6,2 +6,13 @@ # Change Log | ||
# [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) | ||
### Bug Fixes | ||
* **util-dynamodb:** create BigInt from string value instead of number ([#1544](https://github.com/aws/aws-sdk-js-v3/issues/1544)) ([76c0068](https://github.com/aws/aws-sdk-js-v3/commit/76c0068cccc7447f8db95e81d98c37db6e87af32)) | ||
# 1.0.0-gamma.1 (2020-09-29) | ||
@@ -8,0 +19,0 @@ |
@@ -61,3 +61,3 @@ "use strict"; | ||
if (typeof BigInt === "function") { | ||
return BigInt(num); | ||
return BigInt(numString); | ||
} | ||
@@ -86,2 +86,2 @@ else { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydFRvTmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnZlcnRUb05hdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBS0E7Ozs7O0dBS0c7QUFDVSxRQUFBLGVBQWUsR0FBRyxVQUFDLElBQW9CLEVBQUUsT0FBMkI7OztRQUMvRSxLQUEyQixJQUFBLEtBQUEsaUJBQUEsTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQSxnQkFBQSw0QkFBRTtZQUF0QyxJQUFBLEtBQUEsMkJBQVksRUFBWCxHQUFHLFFBQUEsRUFBRSxLQUFLLFFBQUE7WUFDcEIsSUFBSSxLQUFLLEtBQUssU0FBUyxFQUFFO2dCQUN2QixRQUFRLEdBQUcsRUFBRTtvQkFDWCxLQUFLLE1BQU07d0JBQ1QsT0FBTyxJQUFJLENBQUM7b0JBQ2QsS0FBSyxNQ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VmFsdWU6IHN0cmluZyk6IHN0cmluZyA9PiBzdHJpbmdWYWx1ZTtcbmNvbnN0IGNvbnZlcnRCaW5hcnkgPSAoYmluYXJ5VmFsdWU6IFVpbnQ4QXJyYXkpOiBVaW50OEFycmF5ID0+IGJpbmFyeVZhbHVlO1xuXG5jb25zdCBjb252ZXJ0TGlzdCA9IChsaXN0OiBBdHRyaWJ1dGVWYWx1ZVtdLCBvcHRpb25zPzogdW5tYXJzaGFsbE9wdGlvbnMpOiBOYXRpdmVBdHRyaWJ1dGVWYWx1ZVtdID0+XG4gIGxpc3QubWFwKChpdGVtKSA9PiBjb252ZXJ0VG9OYXRpdmUoaXRlbSwgb3B0aW9ucykpO1xuXG5jb25zdCBjb252ZXJ0TWFwID0gKFxuICBtYXA6IHsgW2tleTogc3RyaW5nXTogQXR0cmlidXRlVmFsdWUgfSxcbiAgb3B0aW9ucz86IHVubWFyc2hhbGxPcHRpb25zXG4pOiB7IFtrZXk6IHN0cmluZ106IE5hdGl2ZUF0dHJpYnV0ZVZhbHVlIH0gPT5cbiAgT2JqZWN0LmVudHJpZXMobWFwKS5yZWR1Y2UoXG4gICAgKGFjYzogeyBba2V5OiBzdHJpbmddOiBOYXRpdmVBdHRyaWJ1dGVWYWx1ZSB9LCBba2V5LCB2YWx1ZV06IFtzdHJpbmcsIEF0dHJpYnV0ZVZhbHVlXSkgPT4gKHtcbiAgICAgIC4uLmFjYyxcbiAgICAgIFtrZXldOiBjb252ZXJ0VG9OYXRpdmUodmFsdWUsIG9wdGlvbnMpLFxuICAgIH0pLFxuICAgIHt9XG4gICk7XG4iXX0= |
@@ -58,3 +58,3 @@ import { __assign, __read, __values } from "tslib"; | ||
if (typeof BigInt === "function") { | ||
return BigInt(num); | ||
return BigInt(numString); | ||
} | ||
@@ -83,2 +83,2 @@ else { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydFRvTmF0aXZlLmpzIiwic291cmNlUm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nV0ZVZhbHVlIH0gPT5cbiAgT2JqZWN0LmVudHJpZXMobWFwKS5yZWR1Y2UoXG4gICAgKGFjYzogeyBba2V5OiBzdHJpbmddOiBOYXRpdmVBdHRyaWJ1dGVWYWx1ZSB9LCBba2V5LCB2YWx1ZV06IFtzdHJpbmcsIEF0dHJpYnV0ZVZhbHVlXSkgPT4gKHtcbiAgICAgIC4uLmFjYyxcbiAgICAgIFtrZXldOiBjb252ZXJ0VG9OYXRpdmUodmFsdWUsIG9wdGlvbnMpLFxuICAgIH0pLFxuICAgIHt9XG4gICk7XG4iXX0= |
{ | ||
"name": "@aws-sdk/util-dynamodb", | ||
"version": "1.0.0-gamma.1", | ||
"version": "1.0.0-gamma.2", | ||
"scripts": { | ||
@@ -24,3 +24,3 @@ "prepublishOnly": "yarn build:cjs && yarn build:es", | ||
"devDependencies": { | ||
"@aws-sdk/client-dynamodb": "1.0.0-gamma.10", | ||
"@aws-sdk/client-dynamodb": "1.0.0-gamma.11", | ||
"@types/jest": "^26.0.4", | ||
@@ -27,0 +27,0 @@ "jest": "^26.1.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
109591
36
1042