Socket
Socket
Sign inDemoInstall

pvtsutils

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pvtsutils - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

build/index.es.js

@@ -40,3 +40,3 @@ /**

if (typeof Buffer !== "undefined" && Buffer.isBuffer(buffer)) {
return new Uint8Array(buffer);
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
}

@@ -43,0 +43,0 @@ else if (BufferSourceConverter.isArrayBufferView(buffer)) {

@@ -46,3 +46,3 @@ /**

if (typeof Buffer !== "undefined" && Buffer.isBuffer(buffer)) {
return new Uint8Array(buffer);
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
}

@@ -49,0 +49,0 @@ else if (BufferSourceConverter.isArrayBufferView(buffer)) {

export declare type BufferSource = ArrayBuffer | ArrayBufferView;
export declare class BufferSourceConverter {
static isArrayBuffer(data: any): data is ArrayBuffer;
static toArrayBuffer(data: BufferSource): ArrayBuffer;
static toArrayBuffer(data: BufferSource): ArrayBufferLike;
static toUint8Array(data: BufferSource): Uint8Array;

@@ -6,0 +6,0 @@ static isBufferSource(data: any): data is BufferSource;

{
"name": "pvtsutils",
"version": "1.1.2",
"version": "1.1.3",
"description": "pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.",

@@ -59,16 +59,16 @@ "main": "build/index.js",

"dependencies": {
"tslib": "^2.1.0"
"tslib": "^2.2.0"
},
"devDependencies": {
"@types/mocha": "^8.2.0",
"@types/mocha": "^8.2.2",
"@types/node": "^12.19.15",
"coveralls": "^3.1.0",
"mocha": "^8.2.1",
"mocha": "^8.3.2",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.38.3",
"rollup-plugin-typescript2": "^0.29.0",
"rollup": "^2.45.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-node": "^9.1.1",
"tslint": "^6.1.3",
"typescript": "^4.1.3"
"typescript": "^4.2.4"
},

@@ -75,0 +75,0 @@ "nyc": {

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