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

@aws-sdk/util-buffer-from

Package Overview
Dependencies
Maintainers
4
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/util-buffer-from - npm Package Compare versions

Comparing version 3.52.0 to 3.55.0

8

CHANGELOG.md

@@ -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 @@

2

dist-cjs/index.js

@@ -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",

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