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

@petamoriken/float16

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@petamoriken/float16 - npm Package Compare versions

Comparing version 3.5.7 to 3.5.8

26

browser/float16.js

@@ -1,2 +0,2 @@

/*! @petamoriken/float16 v3.5.7 | MIT License - https://git.io/float16 */
/*! @petamoriken/float16 v3.5.8 | MIT License - https://git.io/float16 */

@@ -73,2 +73,3 @@ const float16 = (function (exports) {

const TypedArrayPrototype = TypedArray.prototype;
const NativeTypedArrayPrototypeSymbolIterator = TypedArrayPrototype[SymbolIterator];
const TypedArrayPrototypeKeys = uncurryThis(TypedArrayPrototype.keys);

@@ -327,3 +328,3 @@ const TypedArrayPrototypeValues = uncurryThis(

function isIterable(value) {
return typeof value[SymbolIterator] === "function";
return value != null && typeof value[SymbolIterator] === "function";
}

@@ -334,7 +335,7 @@ function isOrdinaryArray(value) {

}
if (value[SymbolIterator] === NativeArrayPrototypeSymbolIterator) {
return true;
}
const iterator = value[SymbolIterator]();
if (iterator[SymbolToStringTag] !== "Array Iterator") {
return false;
}
return true;
return iterator[SymbolToStringTag] === "Array Iterator";
}

@@ -345,7 +346,7 @@ function isOrdinaryTypedArray(value) {

}
if (value[SymbolIterator] === NativeTypedArrayPrototypeSymbolIterator) {
return true;
}
const iterator = value[SymbolIterator]();
if (iterator[SymbolToStringTag] !== "Array Iterator") {
return false;
}
return true;
return iterator[SymbolToStringTag] === "Array Iterator";
}

@@ -363,6 +364,3 @@ function isCanonicalIntegerIndexString(value) {

}
if (number !== MathTrunc(number)) {
return false;
}
return true;
return number === MathTrunc(number);
}

@@ -369,0 +367,0 @@

@@ -47,3 +47,3 @@ /**

*/
at(index: number): number;
at(index: number): number | undefined;

@@ -154,5 +154,5 @@ /**

* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.

@@ -176,3 +176,3 @@ */

* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
* search starts at index 0.
*/

@@ -179,0 +179,0 @@ indexOf(searchElement: number, fromIndex?: number): number;

{
"name": "@petamoriken/float16",
"version": "3.5.7",
"version": "3.5.8",
"description": "IEEE 754 half-precision floating-point for JavaScript",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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