@aws-sdk/util-buffer-from
Advanced tools
Comparing version 3.29.0 to 3.32.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17) | ||
**Note:** Version bump only for package @aws-sdk/util-buffer-from | ||
# [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02) | ||
@@ -8,0 +16,0 @@ |
@@ -7,3 +7,3 @@ "use strict"; | ||
const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { | ||
if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { | ||
if (!is_array_buffer_1.isArrayBuffer(input)) { | ||
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); | ||
@@ -21,2 +21,2 @@ } | ||
exports.fromString = fromString; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBQXlEO0FBQ3pELG1DQUFnQztBQUV6QixNQUFNLGVBQWUsR0FBRyxDQUFDLEtBQWtCLEVBQUUsTUFBTSxHQUFHLENBQUMsRUFBRSxTQUFpQixLQUFLLENBQUMsVUFBVSxHQUFHLE1BQU0sRUFBVSxFQUFFO0lBQ3BILElBQUksQ0FBQyxJQUFBLCtCQUFhLEVBQUMsS0FBSyxDQUFDLEVBQUU7UUFDekIsTUFBTSxJQUFJLFNBQVMsQ0FBQywyREFBMkQsT0FBTyxLQUFLLEtBQUssS0FBSyxHQUFHLENBQUMsQ0FBQztLQUMzRztJQUVELE9BQU8sZUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0FBQzVDLENBQUMsQ0FBQztBQU5XLFF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dXR9ICgke2lucHV0fSlgKTtcbiAgfVxuXG4gIHJldHVybiBCdWZmZXIuZnJvbShpbnB1dCwgb2Zmc2V0LCBsZW5ndGgpO1xufTtcblxuZXhwb3J0IHR5cGUgU3RyaW5nRW5jb2RpbmcgPSBcImFzY2lpXCIgfCBcInV0ZjhcIiB8IFwidXRmMTZsZVwiIHwgXCJ1Y3MyXCIgfCBcImJhc2U2NFwiIHwgXCJsYXRpbjFcIiB8IFwiYmluYXJ5XCIgfCBcImhleFwiO1xuXG5leHBvcnQgY29uc3QgZnJvbVN0cmluZyA9IChpbnB1dDogc3RyaW5nLCBlbmNvZGluZz86IFN0cmluZ0VuY29kaW5nKTogQnVmZmVyID0+IHtcbiAgaWYgKHR5cGVvZiBpbnB1dCAhPT0gXCJzdHJpbmdcIikge1xuICAgIHRocm93IG5ldyBUeXBlRXJyb3IoYFRoZSBcImlucHV0XCIgYXJndW1lbnQgbXVzdCBiZSBvZiB0eXBlIHN0cmluZy4gUmVjZWl2ZWQgdHlwZSAke3R5cGVvZiBpbnB1dH0gKCR7aW5wdXR9KWApO1xuICB9XG5cbiAgcmV0dXJuIGVuY29kaW5nID8gQnVmZmVyLmZyb20oaW5wdXQsIGVuY29kaW5nKSA6IEJ1ZmZlci5mcm9tKGlucHV0KTtcbn07XG4iXX0= |
{ | ||
"name": "@aws-sdk/util-buffer-from", | ||
"version": "3.29.0", | ||
"version": "3.32.0", | ||
"scripts": { | ||
@@ -17,3 +17,3 @@ "build:cjs": "tsc -p tsconfig.cjs.json", | ||
"dependencies": { | ||
"@aws-sdk/is-array-buffer": "3.29.0", | ||
"@aws-sdk/is-array-buffer": "3.32.0", | ||
"tslib": "^2.3.0" | ||
@@ -25,3 +25,3 @@ }, | ||
"jest": "^26.1.0", | ||
"typescript": "~4.4.2" | ||
"typescript": "~4.3.5" | ||
}, | ||
@@ -28,0 +28,0 @@ "main": "./dist/cjs/index.js", |
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
37160
+ Added@aws-sdk/is-array-buffer@3.32.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.29.0(transitive)