2
This commit is contained in:
16
normal-admin/node_modules/math-intrinsics/.eslintrc
generated
vendored
Normal file
16
normal-admin/node_modules/math-intrinsics/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"eqeqeq": ["error", "allow-null"],
|
||||
"id-length": "off",
|
||||
"new-cap": ["error", {
|
||||
"capIsNewExceptions": [
|
||||
"RequireObjectCoercible",
|
||||
"ToObject",
|
||||
],
|
||||
}],
|
||||
},
|
||||
}
|
||||
12
normal-admin/node_modules/math-intrinsics/.github/FUNDING.yml
generated
vendored
Normal file
12
normal-admin/node_modules/math-intrinsics/.github/FUNDING.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/math-intrinsics
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with a single custom sponsorship URL
|
||||
24
normal-admin/node_modules/math-intrinsics/CHANGELOG.md
generated
vendored
Normal file
24
normal-admin/node_modules/math-intrinsics/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.1.0](https://github.com/es-shims/math-intrinsics/compare/v1.0.0...v1.1.0) - 2024-12-18
|
||||
|
||||
### Commits
|
||||
|
||||
- [New] add `round` [`7cfb044`](https://github.com/es-shims/math-intrinsics/commit/7cfb04460c0fbdf1ca101eecbac3f59d11994130)
|
||||
- [Tests] add attw [`e96be8f`](https://github.com/es-shims/math-intrinsics/commit/e96be8fbf58449eafe976446a0470e6ea561ad8d)
|
||||
- [Dev Deps] update `@types/tape` [`30d0023`](https://github.com/es-shims/math-intrinsics/commit/30d00234ce8a3fa0094a61cd55d6686eb91e36ec)
|
||||
|
||||
## v1.0.0 - 2024-12-11
|
||||
|
||||
### Commits
|
||||
|
||||
- Initial implementation, tests, readme, types [`b898caa`](https://github.com/es-shims/math-intrinsics/commit/b898caae94e9994a94a42b8740f7bbcfd0a868fe)
|
||||
- Initial commit [`02745b0`](https://github.com/es-shims/math-intrinsics/commit/02745b03a62255af8a332771987b55d127538d9c)
|
||||
- [New] add `constants/maxArrayLength`, `mod` [`b978178`](https://github.com/es-shims/math-intrinsics/commit/b978178a57685bd23ed1c7efe2137f3784f5fcc5)
|
||||
- npm init [`a39fc57`](https://github.com/es-shims/math-intrinsics/commit/a39fc57e5639a645d0bd52a0dc56202480223be2)
|
||||
- Only apps should have lockfiles [`9451580`](https://github.com/es-shims/math-intrinsics/commit/94515800fb34db4f3cc7e99290042d45609ac7bd)
|
||||
21
normal-admin/node_modules/math-intrinsics/LICENSE
generated
vendored
Normal file
21
normal-admin/node_modules/math-intrinsics/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 ECMAScript Shims
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
50
normal-admin/node_modules/math-intrinsics/README.md
generated
vendored
Normal file
50
normal-admin/node_modules/math-intrinsics/README.md
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
# math-intrinsics <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
||||
|
||||
[![github actions][actions-image]][actions-url]
|
||||
[![coverage][codecov-image]][codecov-url]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][npm-badge-png]][package-url]
|
||||
|
||||
ES Math-related intrinsics and helpers, robustly cached.
|
||||
|
||||
- `abs`
|
||||
- `floor`
|
||||
- `isFinite`
|
||||
- `isInteger`
|
||||
- `isNaN`
|
||||
- `isNegativeZero`
|
||||
- `max`
|
||||
- `min`
|
||||
- `mod`
|
||||
- `pow`
|
||||
- `round`
|
||||
- `sign`
|
||||
- `constants/maxArrayLength`
|
||||
- `constants/maxSafeInteger`
|
||||
- `constants/maxValue`
|
||||
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
## Security
|
||||
|
||||
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
||||
|
||||
[package-url]: https://npmjs.org/package/math-intrinsics
|
||||
[npm-version-svg]: https://versionbadg.es/es-shims/math-intrinsics.svg
|
||||
[deps-svg]: https://david-dm.org/es-shims/math-intrinsics.svg
|
||||
[deps-url]: https://david-dm.org/es-shims/math-intrinsics
|
||||
[dev-deps-svg]: https://david-dm.org/es-shims/math-intrinsics/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/es-shims/math-intrinsics#info=devDependencies
|
||||
[npm-badge-png]: https://nodei.co/npm/math-intrinsics.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/math-intrinsics.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/es-object.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=math-intrinsics
|
||||
[codecov-image]: https://codecov.io/gh/es-shims/math-intrinsics/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/es-shims/math-intrinsics/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/math-intrinsics
|
||||
[actions-url]: https://github.com/es-shims/math-intrinsics/actions
|
||||
1
normal-admin/node_modules/math-intrinsics/abs.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/abs.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Math.abs;
|
||||
4
normal-admin/node_modules/math-intrinsics/abs.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/abs.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./abs')} */
|
||||
module.exports = Math.abs;
|
||||
3
normal-admin/node_modules/math-intrinsics/constants/maxArrayLength.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/constants/maxArrayLength.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const MAX_ARRAY_LENGTH: 4294967295;
|
||||
|
||||
export = MAX_ARRAY_LENGTH;
|
||||
4
normal-admin/node_modules/math-intrinsics/constants/maxArrayLength.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/constants/maxArrayLength.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./maxArrayLength')} */
|
||||
module.exports = 4294967295; // Math.pow(2, 32) - 1;
|
||||
3
normal-admin/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const MAX_SAFE_INTEGER: 9007199254740991;
|
||||
|
||||
export = MAX_SAFE_INTEGER;
|
||||
5
normal-admin/node_modules/math-intrinsics/constants/maxSafeInteger.js
generated
vendored
Normal file
5
normal-admin/node_modules/math-intrinsics/constants/maxSafeInteger.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./maxSafeInteger')} */
|
||||
// eslint-disable-next-line no-extra-parens
|
||||
module.exports = /** @type {import('./maxSafeInteger')} */ (Number.MAX_SAFE_INTEGER) || 9007199254740991; // Math.pow(2, 53) - 1;
|
||||
3
normal-admin/node_modules/math-intrinsics/constants/maxValue.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/constants/maxValue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare const MAX_VALUE: 1.7976931348623157e+308;
|
||||
|
||||
export = MAX_VALUE;
|
||||
5
normal-admin/node_modules/math-intrinsics/constants/maxValue.js
generated
vendored
Normal file
5
normal-admin/node_modules/math-intrinsics/constants/maxValue.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./maxValue')} */
|
||||
// eslint-disable-next-line no-extra-parens
|
||||
module.exports = /** @type {import('./maxValue')} */ (Number.MAX_VALUE) || 1.7976931348623157e+308;
|
||||
1
normal-admin/node_modules/math-intrinsics/floor.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/floor.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Math.floor;
|
||||
4
normal-admin/node_modules/math-intrinsics/floor.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/floor.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./floor')} */
|
||||
module.exports = Math.floor;
|
||||
3
normal-admin/node_modules/math-intrinsics/isFinite.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/isFinite.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function isFinite(x: unknown): x is number | bigint;
|
||||
|
||||
export = isFinite;
|
||||
12
normal-admin/node_modules/math-intrinsics/isFinite.js
generated
vendored
Normal file
12
normal-admin/node_modules/math-intrinsics/isFinite.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
var $isNaN = require('./isNaN');
|
||||
|
||||
/** @type {import('./isFinite')} */
|
||||
module.exports = function isFinite(x) {
|
||||
return (typeof x === 'number' || typeof x === 'bigint')
|
||||
&& !$isNaN(x)
|
||||
&& x !== Infinity
|
||||
&& x !== -Infinity;
|
||||
};
|
||||
|
||||
3
normal-admin/node_modules/math-intrinsics/isInteger.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/isInteger.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function isInteger(argument: unknown): argument is number;
|
||||
|
||||
export = isInteger;
|
||||
16
normal-admin/node_modules/math-intrinsics/isInteger.js
generated
vendored
Normal file
16
normal-admin/node_modules/math-intrinsics/isInteger.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var $abs = require('./abs');
|
||||
var $floor = require('./floor');
|
||||
|
||||
var $isNaN = require('./isNaN');
|
||||
var $isFinite = require('./isFinite');
|
||||
|
||||
/** @type {import('./isInteger')} */
|
||||
module.exports = function isInteger(argument) {
|
||||
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
|
||||
return false;
|
||||
}
|
||||
var absValue = $abs(argument);
|
||||
return $floor(absValue) === absValue;
|
||||
};
|
||||
1
normal-admin/node_modules/math-intrinsics/isNaN.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/isNaN.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Number.isNaN;
|
||||
6
normal-admin/node_modules/math-intrinsics/isNaN.js
generated
vendored
Normal file
6
normal-admin/node_modules/math-intrinsics/isNaN.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./isNaN')} */
|
||||
module.exports = Number.isNaN || function isNaN(a) {
|
||||
return a !== a;
|
||||
};
|
||||
3
normal-admin/node_modules/math-intrinsics/isNegativeZero.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/isNegativeZero.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function isNegativeZero(x: unknown): boolean;
|
||||
|
||||
export = isNegativeZero;
|
||||
6
normal-admin/node_modules/math-intrinsics/isNegativeZero.js
generated
vendored
Normal file
6
normal-admin/node_modules/math-intrinsics/isNegativeZero.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./isNegativeZero')} */
|
||||
module.exports = function isNegativeZero(x) {
|
||||
return x === 0 && 1 / x === 1 / -0;
|
||||
};
|
||||
1
normal-admin/node_modules/math-intrinsics/max.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/max.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Math.max;
|
||||
4
normal-admin/node_modules/math-intrinsics/max.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/max.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./max')} */
|
||||
module.exports = Math.max;
|
||||
1
normal-admin/node_modules/math-intrinsics/min.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/min.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Math.min;
|
||||
4
normal-admin/node_modules/math-intrinsics/min.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/min.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./min')} */
|
||||
module.exports = Math.min;
|
||||
3
normal-admin/node_modules/math-intrinsics/mod.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/mod.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function mod(number: number, modulo: number): number;
|
||||
|
||||
export = mod;
|
||||
9
normal-admin/node_modules/math-intrinsics/mod.js
generated
vendored
Normal file
9
normal-admin/node_modules/math-intrinsics/mod.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var $floor = require('./floor');
|
||||
|
||||
/** @type {import('./mod')} */
|
||||
module.exports = function mod(number, modulo) {
|
||||
var remain = number % modulo;
|
||||
return $floor(remain >= 0 ? remain : remain + modulo);
|
||||
};
|
||||
86
normal-admin/node_modules/math-intrinsics/package.json
generated
vendored
Normal file
86
normal-admin/node_modules/math-intrinsics/package.json
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"name": "math-intrinsics",
|
||||
"version": "1.1.0",
|
||||
"description": "ES Math-related intrinsics and helpers, robustly cached.",
|
||||
"main": false,
|
||||
"exports": {
|
||||
"./abs": "./abs.js",
|
||||
"./floor": "./floor.js",
|
||||
"./isFinite": "./isFinite.js",
|
||||
"./isInteger": "./isInteger.js",
|
||||
"./isNaN": "./isNaN.js",
|
||||
"./isNegativeZero": "./isNegativeZero.js",
|
||||
"./max": "./max.js",
|
||||
"./min": "./min.js",
|
||||
"./mod": "./mod.js",
|
||||
"./pow": "./pow.js",
|
||||
"./sign": "./sign.js",
|
||||
"./round": "./round.js",
|
||||
"./constants/maxArrayLength": "./constants/maxArrayLength.js",
|
||||
"./constants/maxSafeInteger": "./constants/maxSafeInteger.js",
|
||||
"./constants/maxValue": "./constants/maxValue.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"posttest": "npx npm@'>= 10.2' audit --production",
|
||||
"prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"postlint": "tsc && attw -P",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/es-shims/math-intrinsics.git"
|
||||
},
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/es-shims/math-intrinsics/issues"
|
||||
},
|
||||
"homepage": "https://github.com/es-shims/math-intrinsics#readme",
|
||||
"devDependencies": {
|
||||
"@arethetypeswrong/cli": "^0.17.1",
|
||||
"@ljharb/eslint-config": "^21.1.1",
|
||||
"@ljharb/tsconfig": "^0.2.2",
|
||||
"@types/for-each": "^0.3.3",
|
||||
"@types/object-inspect": "^1.13.0",
|
||||
"@types/tape": "^5.8.0",
|
||||
"auto-changelog": "^2.5.0",
|
||||
"eclint": "^2.8.1",
|
||||
"es-value-fixtures": "^1.5.0",
|
||||
"eslint": "^8.8.0",
|
||||
"evalmd": "^0.0.19",
|
||||
"for-each": "^0.3.3",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"object-inspect": "^1.13.3",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.9.0",
|
||||
"typescript": "next"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true
|
||||
},
|
||||
"publishConfig": {
|
||||
"ignore": [
|
||||
".github/workflows"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
}
|
||||
1
normal-admin/node_modules/math-intrinsics/pow.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/pow.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Math.pow;
|
||||
4
normal-admin/node_modules/math-intrinsics/pow.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/pow.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./pow')} */
|
||||
module.exports = Math.pow;
|
||||
1
normal-admin/node_modules/math-intrinsics/round.d.ts
generated
vendored
Normal file
1
normal-admin/node_modules/math-intrinsics/round.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export = Math.round;
|
||||
4
normal-admin/node_modules/math-intrinsics/round.js
generated
vendored
Normal file
4
normal-admin/node_modules/math-intrinsics/round.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('./round')} */
|
||||
module.exports = Math.round;
|
||||
3
normal-admin/node_modules/math-intrinsics/sign.d.ts
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/sign.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare function sign(x: number): number;
|
||||
|
||||
export = sign;
|
||||
11
normal-admin/node_modules/math-intrinsics/sign.js
generated
vendored
Normal file
11
normal-admin/node_modules/math-intrinsics/sign.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var $isNaN = require('./isNaN');
|
||||
|
||||
/** @type {import('./sign')} */
|
||||
module.exports = function sign(number) {
|
||||
if ($isNaN(number) || number === 0) {
|
||||
return number;
|
||||
}
|
||||
return number < 0 ? -1 : +1;
|
||||
};
|
||||
3
normal-admin/node_modules/math-intrinsics/tsconfig.json
generated
vendored
Normal file
3
normal-admin/node_modules/math-intrinsics/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "@ljharb/tsconfig",
|
||||
}
|
||||
Reference in New Issue
Block a user