@petamoriken/float16
Advanced tools
Comparing version 1.0.2 to 1.0.3
/** | ||
* @petamoriken/float16 1.0.2 - https://github.com/petamoriken/float16 | ||
* generated at 2017-05-23 03:29 +09:00 | ||
* @petamoriken/float16 1.0.3 - https://github.com/petamoriken/float16 | ||
* generated at 2017-06-06 19:24 +09:00 | ||
* | ||
@@ -5,0 +5,0 @@ * --- |
@@ -7,13 +7,23 @@ "use strict"; | ||
exports.isArrayLike = exports.isArrayBuffer = undefined; | ||
exports.isDataView = isDataView; | ||
exports.isNumberKey = isNumberKey; | ||
exports.isPlusZero = isPlusZero; | ||
var _isArrayBuffer = require("lodash/isArrayBuffer"); | ||
var _isArrayBuffer2 = _interopRequireDefault(_isArrayBuffer); | ||
Object.defineProperty(exports, "isArrayBuffer", { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_isArrayBuffer).default; | ||
} | ||
}); | ||
var _isArrayLike = require("lodash/isArrayLike"); | ||
var _isArrayLike2 = _interopRequireDefault(_isArrayLike); | ||
Object.defineProperty(exports, "isArrayLike", { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_isArrayLike).default; | ||
} | ||
}); | ||
exports.isDataView = isDataView; | ||
exports.isNumberKey = isNumberKey; | ||
exports.isPlusZero = isPlusZero; | ||
@@ -24,4 +34,2 @@ var _spec = require("./spec"); | ||
exports.isArrayBuffer = _isArrayBuffer2.default; | ||
exports.isArrayLike = _isArrayLike2.default; | ||
function isDataView(view) { | ||
@@ -28,0 +36,0 @@ return view instanceof DataView; |
{ | ||
"name": "@petamoriken/float16", | ||
"description": "half precision floating point for JavaScript", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "lib/index.js", | ||
@@ -74,3 +74,3 @@ "jsnext:main": "src/index.js", | ||
"power-assert": "^1.4.2", | ||
"rollup": "^0.41.6", | ||
"rollup": "^0.42.0", | ||
"rollup-load-plugins": "^0.3.0", | ||
@@ -77,0 +77,0 @@ "rollup-plugin-babel": "^2.7.1", |
# float16 | ||
half precision floating point for JavaScript. | ||
see [ES Discuss Float16Array topic](https://esdiscuss.org/topic/float16array). | ||
half precision floating point for JavaScript | ||
see [ES Discuss Float16Array topic](https://esdiscuss.org/topic/float16array) | ||
@@ -14,13 +14,15 @@ [![license](https://img.shields.io/npm/l/@petamoriken/float16.svg?style=flat-square)](https://github.com/petamoriken/float16/blob/master/LICENSE) | ||
[![Sauce Labs browser matrix](https://saucelabs.com/browser-matrix/petamoriken.svg)](https://saucelabs.com/u/petamoriken) | ||
## Supports (at least) | ||
Last 2 versions of modern browser (Chrome, Firefox) and latest version of default browser on Windows 10 or macOS (Edge, Safari) and Node latest. | ||
The last 2 versions of modern browsers (Chrome, Firefox) and the latest version of default browser on Windows 10 or macOS (Edge, Safari) and Node latest. | ||
* Chrome: Last 2 versions | ||
* Firefox: Last 2 versions and ESR | ||
* Edge: Latest version | ||
* Safari: Latest version | ||
* Node.js: Latest version | ||
* Firefox: last 2 versions and ESR | ||
* Chrome: last 2 versions | ||
* Edge: latest version | ||
* Safari: latest version | ||
* Node.js: latest version | ||
@@ -43,2 +45,4 @@ This library's `Float16Array` uses `Proxy`, so IE11 is never supported. | ||
### npm, yarn package | ||
```js | ||
@@ -56,2 +60,13 @@ // ES6 Modules | ||
### Browser | ||
Copy [the build file for browsers](browser/float16.js) to your project directory. | ||
```html | ||
<script src="DEST/TO/float16.js"></script> | ||
<script> | ||
const { Float16Array, getFloat16, setFloat16, hfround } = float16; | ||
</script> | ||
``` | ||
## API | ||
@@ -104,2 +119,6 @@ | ||
## Bug | ||
Some browsers have JavaScript bugs. Please see [Float16Array test code](test/Float16Array.js) and search `this.skip()`. | ||
## Test | ||
@@ -106,0 +125,0 @@ |
"use strict"; | ||
import isArrayBuffer from "lodash-es/isArrayBuffer"; | ||
import isArrayLike from "lodash-es/isArrayLike"; | ||
export { default as isArrayBuffer } from "lodash-es/isArrayBuffer"; | ||
export { default as isArrayLike } from "lodash-es/isArrayLike"; | ||
import { ToInteger } from "./spec"; | ||
export { isArrayBuffer, isArrayLike }; | ||
export function isDataView(view) { | ||
@@ -12,0 +10,0 @@ return view instanceof DataView; |
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
273768
3847
155