diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/es5-ext/math/sinh | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/es5-ext/math/sinh')
-rw-r--r-- | node_modules/es5-ext/math/sinh/implement.js | 8 | ||||
-rw-r--r-- | node_modules/es5-ext/math/sinh/index.js | 5 | ||||
-rw-r--r-- | node_modules/es5-ext/math/sinh/is-implemented.js | 7 | ||||
-rw-r--r-- | node_modules/es5-ext/math/sinh/shim.js | 18 |
4 files changed, 0 insertions, 38 deletions
diff --git a/node_modules/es5-ext/math/sinh/implement.js b/node_modules/es5-ext/math/sinh/implement.js deleted file mode 100644 index cc4c40bcb..000000000 --- a/node_modules/es5-ext/math/sinh/implement.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "sinh", { value: require("./shim"), - configurable: true, -enumerable: false, -writable: true }); -} diff --git a/node_modules/es5-ext/math/sinh/index.js b/node_modules/es5-ext/math/sinh/index.js deleted file mode 100644 index 2c43dce17..000000000 --- a/node_modules/es5-ext/math/sinh/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? Math.sinh - : require("./shim"); diff --git a/node_modules/es5-ext/math/sinh/is-implemented.js b/node_modules/es5-ext/math/sinh/is-implemented.js deleted file mode 100644 index 5e4ee40c3..000000000 --- a/node_modules/es5-ext/math/sinh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var sinh = Math.sinh; - if (typeof sinh !== "function") return false; - return (sinh(1) === 1.1752011936438014) && (sinh(Number.MIN_VALUE) === 5e-324); -}; diff --git a/node_modules/es5-ext/math/sinh/shim.js b/node_modules/es5-ext/math/sinh/shim.js deleted file mode 100644 index fc6a04776..000000000 --- a/node_modules/es5-ext/math/sinh/shim.js +++ /dev/null @@ -1,18 +0,0 @@ -// Parts of implementation taken from es6-shim project -// See: https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js - -"use strict"; - -var expm1 = require("../expm1") - , abs = Math.abs - , exp = Math.exp - , e = Math.E; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (!isFinite(value)) return value; - if (abs(value) < 1) return (expm1(value) - expm1(-value)) / 2; - return (exp(value - 1) - exp(-value - 1)) * e / 2; -}; |