@aws-sdk/util-buffer-from
Advanced tools
Comparing version 3.52.0 to 3.55.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21) | ||
**Note:** Version bump only for package @aws-sdk/util-buffer-from | ||
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18) | ||
@@ -8,0 +16,0 @@ |
@@ -7,3 +7,3 @@ "use strict"; | ||
const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { | ||
if (!is_array_buffer_1.isArrayBuffer(input)) { | ||
if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { | ||
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); | ||
@@ -10,0 +10,0 @@ } |
@@ -7,3 +7,3 @@ import { isArrayBuffer } from "@aws-sdk/is-array-buffer"; | ||
if (!isArrayBuffer(input)) { | ||
throw new TypeError("The \"input\" argument must be ArrayBuffer. Received type " + typeof input + " (" + input + ")"); | ||
throw new TypeError("The \"input\" argument must be ArrayBuffer. Received type ".concat(typeof input, " (").concat(input, ")")); | ||
} | ||
@@ -14,5 +14,5 @@ return Buffer.from(input, offset, length); | ||
if (typeof input !== "string") { | ||
throw new TypeError("The \"input\" argument must be of type string. Received type " + typeof input + " (" + input + ")"); | ||
throw new TypeError("The \"input\" argument must be of type string. Received type ".concat(typeof input, " (").concat(input, ")")); | ||
} | ||
return encoding ? Buffer.from(input, encoding) : Buffer.from(input); | ||
}; |
{ | ||
"name": "@aws-sdk/util-buffer-from", | ||
"version": "3.52.0", | ||
"version": "3.55.0", | ||
"scripts": { | ||
@@ -19,4 +19,4 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"dependencies": { | ||
"@aws-sdk/is-array-buffer": "3.52.0", | ||
"tslib": "^2.3.0" | ||
"@aws-sdk/is-array-buffer": "3.55.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -30,3 +30,3 @@ "devDependencies": { | ||
"typedoc": "0.19.2", | ||
"typescript": "~4.3.5" | ||
"typescript": "~4.6.2" | ||
}, | ||
@@ -33,0 +33,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
33814
+ Added@aws-sdk/is-array-buffer@3.55.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.52.0(transitive)
Updatedtslib@^2.3.1