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.8.4 to 3.8.5

2

browser/float16.js

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

/*! @petamoriken/float16 v3.8.4 | MIT License - https://github.com/petamoriken/float16 */
/*! @petamoriken/float16 v3.8.5 | MIT License - https://github.com/petamoriken/float16 */

@@ -3,0 +3,0 @@ var float16 = (function (exports) {

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

@@ -72,16 +72,16 @@ "keywords": [

"test": "mocha test/*.js",
"test-browser": "nightwatch -e chrome,chrome_old,firefox,firefox_old,firefox_esr,edge,edge_old,safari",
"test-browser": "nightwatch -e chrome,chrome_old,firefox,firefox_old,firefox_esr,safari,safari_old",
"version": "NPM_VERSION_SCRIPT=1 yarn run refresh"
},
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.20",
"@babel/plugin-transform-modules-commonjs": "^7.22.15",
"@types/nightwatch": "^2.3.25",
"babel-plugin-replace-import-extension": "^1.1.3",
"browserslist": "^4.21.9",
"concurrently": "^8.2.1",
"eslint": "^8.49.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.1",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.24.0",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@types/nightwatch": "^2.3.31",
"babel-plugin-replace-import-extension": "^1.1.4",
"browserslist": "^4.23.0",
"concurrently": "^8.2.2",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.0",
"espower-cli": "^1.1.0",

@@ -92,8 +92,8 @@ "espower-loader": "^1.2.2",

"http-server": "^14.1.1",
"mocha": "^10.2.0",
"nightwatch": "^3.1.3",
"mocha": "^10.3.0",
"nightwatch": "^3.4.1",
"nightwatch-saucelabs-endsauce": "^2.3.1",
"nyc": "^15.1.0",
"power-assert": "^1.4.2",
"rollup": "^3.29.2",
"rollup": "^4.12.0",
"rollup-plugin-cleanup": "^3.2.1",

@@ -100,0 +100,0 @@ "source-map-support": "^0.5.21"

# <a href="https://github.com/petamoriken/float16">float16</a>
<p align="center">
IEEE 754 half-precision floating-point for JavaScript<br>
See <a href="https://esdiscuss.org/topic/float16array">the archive of the ES Discuss Float16Array topic</a> for details
IEEE 754 half-precision floating-point ponyfill for JavaScript<br>
See <a href="https://github.com/tc39/proposal-float16array">TC39 proposal</a> or <a href="https://esdiscuss.org/topic/float16array">the archive of the ES Discuss Float16Array topic</a> for details
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@petamoriken/float16">
<img src="https://img.shields.io/npm/dw/@petamoriken/float16?logo=npm&amp;style=flat-square" alt="npm downloads">
</a>
<a href="https://www.jsdelivr.com/package/npm/@petamoriken/float16">
<img src="https://img.shields.io/jsdelivr/npm/hw/@petamoriken/float16?label=hits&amp;logo=jsDelivr&amp;style=flat-square" alt="jsDelivr hits">
</a>
<a href="https://www.npmjs.com/package/@petamoriken/float16">
<img src="https://img.shields.io/npm/v/@petamoriken/float16.svg?label=version&amp;logo=npm&amp;style=flat-square" alt="npm version">
</a>
<a href="https://deno.land/x/float16">
<img src="https://img.shields.io/github/v/tag/petamoriken/float16?label=version&amp;logo=deno&amp;style=flat-square" alt="deno version">
</a>
<a href="https://www.npmjs.com/package/@petamoriken/float16"><img src="https://img.shields.io/npm/dw/@petamoriken/float16?logo=npm&amp;style=flat-square" alt="npm downloads"></a>
<a href="https://www.npmjs.com/package/@petamoriken/float16"><img src="https://img.shields.io/npm/v/@petamoriken/float16.svg?label=version&amp;logo=npm&amp;style=flat-square" alt="npm version"></a>
<a href="https://jsr.io/@petamoriken/float16"><img src="https://jsr.io/badges/@petamoriken/float16?label=version&amp;style=flat-square" alt="jsr version"></a>
<br>
<a href="https://github.com/petamoriken/float16/blob/master/package.json">
<img src="https://img.shields.io/badge/dependencies-none-brightgreen?style=flat-square" alt="dependencies">
</a>
<a href="https://github.com/petamoriken/float16/blob/master/LICENSE">
<img src="https://img.shields.io/npm/l/@petamoriken/float16.svg?style=flat-square" alt="license">
</a>
<a href="https://codecov.io/gh/petamoriken/float16">
<img src="https://img.shields.io/codecov/c/gh/petamoriken/float16?logo=codecov&amp;style=flat-square" alt="codecov">
</a>
<a href="https://github.com/petamoriken/float16/blob/master/package.json"><img src="https://img.shields.io/badge/dependencies-none-brightgreen?style=flat-square" alt="dependencies"></a>
<a href="https://github.com/petamoriken/float16/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/@petamoriken/float16.svg?style=flat-square" alt="license"></a>
<a href="https://codecov.io/gh/petamoriken/float16"><img src="https://img.shields.io/codecov/c/gh/petamoriken/float16?logo=codecov&amp;style=flat-square" alt="codecov"></a>
</p>

@@ -47,4 +32,6 @@

### Deno
```console
yarn add @petamoriken/float16
deno add @petamoriken/float16
```

@@ -60,6 +47,5 @@

### Node.js, Bun or Bundler (webpack, rollup.js, esbuild, etc)
### Node.js, Deno, Bun or Bundler
```js
// ES Modules
import {

@@ -72,24 +58,2 @@ Float16Array, isFloat16Array, isTypedArray,

```js
// CommonJS
const {
Float16Array, isFloat16Array, isTypedArray,
getFloat16, setFloat16,
f16round,
} = require("@petamoriken/float16");
```
### Deno
You can get modules from the [deno.land/x](https://deno.land/x/float16) hosting
service.
```ts
import {
Float16Array, isFloat16Array, isTypedArray,
getFloat16, setFloat16,
f16round,
} from "https://deno.land/x/float16/mod.ts";
```
### Browser

@@ -170,3 +134,2 @@

- Chrome: last 2 versions
- Edge: last 2 versions
- Safari: last 2 versions

@@ -194,2 +157,5 @@

> [!WARNING]
> This API returns `false` for ECMAScript's native `Float16Array`
`isFloat16Array` is a utility function to check whether the value given as an

@@ -354,3 +320,2 @@ argument is an instance of `Float16Array` or not.

```js
// ES Modules
import { Float16Array } from "@petamoriken/float16";

@@ -362,10 +327,2 @@ import { customInspect } from "@petamoriken/float16/inspect";

```js
// CommonJS
const { Float16Array } = require("@petamoriken/float16");
const { customInspect } = require("@petamoriken/float16/inspect");
Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect;
```
### Deno

@@ -372,0 +329,0 @@

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

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