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

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.3.4 to 1.3.5

13

build/index.d.ts

@@ -56,6 +56,11 @@ /*!

/**
* Converts BufferSource to ArrayBufferView specified view
* @param data Buffer source
* @param type Type of ArrayBufferView
* @returns Specified ArrayBufferView
* Converts a given `BufferSource` to the specified `ArrayBufferView` type.
* @param data The `BufferSource` to convert.
* @param type The `ArrayBufferView` constructor to use for the conversion.
* @returns The converted `ArrayBufferView`.
* @throws {TypeError} If the provided value is not of type `(ArrayBuffer or ArrayBufferView)`.
* @remarks If incoming data is ArrayBufferView and it's type is equal to specified type
* then it returns it without copying, otherwise it copies data into new ArrayBufferView
* because incoming data can be ArrayBufferView with offset and length which is not equal
* to buffer length
*/

@@ -62,0 +67,0 @@ static toView<T extends ArrayBufferView>(data: BufferSource, type: ArrayBufferViewConstructor<T>): T;

@@ -49,3 +49,3 @@ /*!

static toView(data, type) {
if (data instanceof type) {
if (data.constructor === type) {
return data;

@@ -52,0 +52,0 @@ }

@@ -51,3 +51,3 @@ /*!

static toView(data, type) {
if (data instanceof type) {
if (data.constructor === type) {
return data;

@@ -54,0 +54,0 @@ }

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

@@ -5,0 +5,0 @@ "main": "build/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