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 0.1.0-preview.1 to 0.1.0-preview.2

CHANGELOG.md

2

build/index.d.ts
/// <reference types="node" />
export declare function fromArrayBuffer(input: ArrayBuffer, offset?: number, length?: number): Buffer;
export declare function fromString(input: string, encoding?: 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'base64' | 'latin1' | 'binary' | 'hex' | string): Buffer;
export declare function fromString(input: string, encoding?: "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex" | string): Buffer;

@@ -9,5 +9,5 @@ "use strict";

if (!is_array_buffer_1.isArrayBuffer(input)) {
throw new Error('argument passed to fromArrayBuffer was not an ArrayBuffer');
throw new Error("argument passed to fromArrayBuffer was not an ArrayBuffer");
}
if (typeof buffer_1.Buffer.from === 'function' && buffer_1.Buffer.from !== Uint8Array.from) {
if (typeof buffer_1.Buffer.from === "function" && buffer_1.Buffer.from !== Uint8Array.from) {
return buffer_1.Buffer.from(input, offset, length);

@@ -26,6 +26,6 @@ }

function fromString(input, encoding) {
if (typeof input !== 'string') {
throw new Error('argument passed to fromString was not a string');
if (typeof input !== "string") {
throw new Error("argument passed to fromString was not a string");
}
if (typeof buffer_1.Buffer.from === 'function' && buffer_1.Buffer.from !== Uint8Array.from) {
if (typeof buffer_1.Buffer.from === "function" && buffer_1.Buffer.from !== Uint8Array.from) {
return buffer_1.Buffer.from(input, encoding);

@@ -32,0 +32,0 @@ }

{
"name": "@aws-sdk/util-buffer-from",
"version": "0.1.0-preview.1",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest"
},
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "aws-sdk-js@amazon.com",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/is-array-buffer": "^0.1.0-preview.1",
"tslib": "^1.8.0"
},
"devDependencies": {
"@types/jest": "^20.0.2",
"@types/node": "^8.10.29",
"jest": "^20.0.4",
"typescript": "^3.0.0"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"gitHead": "960970c0c25938a8d51d1a243d3f21f05acea92e"
"name": "@aws-sdk/util-buffer-from",
"version": "0.1.0-preview.2",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest"
},
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/is-array-buffer": "^0.1.0-preview.2",
"tslib": "^1.8.0"
},
"devDependencies": {
"@types/jest": "^24.0.12",
"@types/node": "^10.0.0",
"jest": "^24.7.1",
"typescript": "~3.4.0"
},
"main": "./build/index.js",
"types": "./build/index.d.ts"
}
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"sourceMap": true,
"strict": true,
"lib": [
"es5",
"es2015.collection"
],
"sourceRoot": "./src",
"outDir": "./build",
"importHelpers": true,
"noEmitHelpers": true
}
}
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"sourceMap": true,
"strict": true,
"lib": ["es5", "es2015.collection"],
"sourceRoot": "./src",
"outDir": "./build",
"importHelpers": true,
"noEmitHelpers": true
}
}

Sorry, the diff of this file is not supported yet

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