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

to-uint8

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-uint8 - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

4

index.js

@@ -14,2 +14,6 @@ /* @module to-float32 */

// shortcut uint8s
if (src instanceof Uint8Array) return src
if (src instanceof Uint8ClampedArray) return new Uint8Array(src.buffer)
if (detectFloat == null) detectFloat = true

@@ -16,0 +20,0 @@

2

package.json
{
"name": "to-uint8",
"version": "1.3.0",
"version": "1.3.1",
"description": "Convert data to Uint8Array",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,1 +26,7 @@ 'use strict'

a.equal(u8(/abc/), null)
var uint8 = new Uint8Array([1, 2, 3])
var uint8clamped = new Uint8ClampedArray(uint8.buffer)
a.equal(u8(uint8), uint8)
a.deepEqual(u8(uint8clamped), uint8)
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