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.3 to 1.4.0

2

index.js

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

if (src.data) src = src.data
// shortcut uint8s

@@ -16,0 +18,0 @@ if (src instanceof Uint8Array) return src

2

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

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

@@ -5,2 +5,3 @@ 'use strict'

var u8 = require('./')
// var NDArray = require('ndarray')

@@ -33,1 +34,5 @@ a.deepEqual(u8([0,0,0,1, 1,1,1,1]), [0,0,0,255, 255,255,255,255])

a.deepEqual(u8(uint8clamped), uint8)
// detect nested uints
a.deepEqual(u8({data: [0, 1, 1]}), [0, 255, 255])
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