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.1 to 1.1.2

9

build/index.es.js

@@ -6,2 +6,5 @@ /**

class BufferSourceConverter {
static isArrayBuffer(data) {
return Object.prototype.toString.call(data) === '[object ArrayBuffer]';
}
static toArrayBuffer(data) {

@@ -21,3 +24,3 @@ const buf = this.toUint8Array(data);

}
if (data instanceof ArrayBuffer) {
if (this.isArrayBuffer(data)) {
return new Uint8Array(data);

@@ -29,7 +32,7 @@ }

return this.isArrayBufferView(data)
|| data instanceof ArrayBuffer;
|| this.isArrayBuffer(data);
}
static isArrayBufferView(data) {
return ArrayBuffer.isView(data)
|| (data && data.buffer instanceof ArrayBuffer);
|| (data && this.isArrayBuffer(data.buffer));
}

@@ -36,0 +39,0 @@ }

@@ -12,2 +12,5 @@ /**

class BufferSourceConverter {
static isArrayBuffer(data) {
return Object.prototype.toString.call(data) === '[object ArrayBuffer]';
}
static toArrayBuffer(data) {

@@ -27,3 +30,3 @@ const buf = this.toUint8Array(data);

}
if (data instanceof ArrayBuffer) {
if (this.isArrayBuffer(data)) {
return new Uint8Array(data);

@@ -35,7 +38,7 @@ }

return this.isArrayBufferView(data)
|| data instanceof ArrayBuffer;
|| this.isArrayBuffer(data);
}
static isArrayBufferView(data) {
return ArrayBuffer.isView(data)
|| (data && data.buffer instanceof ArrayBuffer);
|| (data && this.isArrayBuffer(data.buffer));
}

@@ -42,0 +45,0 @@ }

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

@@ -4,0 +5,0 @@ static toUint8Array(data: BufferSource): Uint8Array;

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

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

"dependencies": {
"tslib": "^2.0.3"
"tslib": "^2.1.0"
},
"devDependencies": {
"@types/mocha": "^8.0.3",
"@types/node": "^12.19.3",
"@types/mocha": "^8.2.0",
"@types/node": "^12.19.15",
"coveralls": "^3.1.0",

@@ -69,7 +69,7 @@ "mocha": "^8.2.1",

"rimraf": "^3.0.2",
"rollup": "^2.33.1",
"rollup": "^2.38.3",
"rollup-plugin-typescript2": "^0.29.0",
"ts-node": "^9.0.0",
"ts-node": "^9.1.1",
"tslint": "^6.1.3",
"typescript": "^4.0.5"
"typescript": "^4.1.3"
},

@@ -76,0 +76,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