Comparing version 1.3.0 to 1.3.1
@@ -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 @@ |
{ | ||
"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) |
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
7024
112