@petamoriken/float16
Advanced tools
Comparing version 3.5.8 to 3.5.9
@@ -1,2 +0,2 @@ | ||
/*! @petamoriken/float16 v3.5.8 | MIT License - https://git.io/float16 */ | ||
/*! @petamoriken/float16 v3.5.9 | MIT License - https://git.io/float16 */ | ||
@@ -37,2 +37,3 @@ const float16 = (function (exports) { | ||
} = NativeNumber; | ||
const NativeSymbol = Symbol; | ||
const { | ||
@@ -43,3 +44,7 @@ iterator: SymbolIterator, | ||
for: SymbolFor, | ||
} = Symbol; | ||
} = NativeSymbol; | ||
const SymbolHasInstance = NativeSymbol.hasInstance; | ||
const FunctionPrototypeSymbolHasInstance = uncurryThis( | ||
Function.prototype[SymbolHasInstance] | ||
); | ||
const NativeObject = Object; | ||
@@ -539,3 +544,6 @@ const { | ||
} | ||
if (SetPrototypeHas(TypedArrayPrototypeGetterKeys, key)) { | ||
if ( | ||
SetPrototypeHas(TypedArrayPrototypeGetterKeys, key) && | ||
FunctionPrototypeSymbolHasInstance(TypedArray, target) | ||
) { | ||
return ReflectGet(target, key); | ||
@@ -542,0 +550,0 @@ } |
@@ -44,4 +44,4 @@ /** | ||
/** | ||
* Access item by relative indexing. | ||
* @param index index to access. | ||
* Returns the item located at the specified index. | ||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item. | ||
*/ | ||
@@ -366,2 +366,7 @@ at(index: number): number | undefined; | ||
/** | ||
* Returns the primitive value of the specified object. | ||
*/ | ||
valueOf(): Float16Array; | ||
readonly [Symbol.toStringTag]: "Float16Array"; | ||
@@ -368,0 +373,0 @@ |
{ | ||
"name": "@petamoriken/float16", | ||
"version": "3.5.8", | ||
"version": "3.5.9", | ||
"description": "IEEE 754 half-precision floating-point for JavaScript", | ||
@@ -79,5 +79,5 @@ "keywords": [ | ||
"babel-plugin-replace-import-extension": "^1.1.1", | ||
"browserslist": "^4.17.5", | ||
"browserslist": "^4.17.6", | ||
"concurrently": "^6.3.0", | ||
"eslint": "^8.1.0", | ||
"eslint": "^8.2.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
@@ -84,0 +84,0 @@ "eslint-plugin-jsdoc": "^37.0.3", |
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
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
217611
5720