Comparing version 1.3.3 to 1.4.0
@@ -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 |
{ | ||
"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]) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7307
116