@thi.ng/math 5.10.10 → 5.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +2 -2
- package/abs.d.ts +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -66,10 +66,10 @@ import * as math from "@thi.ng/math";
|
|
|
66
66
|
Browser ESM import:
|
|
67
67
|
|
|
68
68
|
```html
|
|
69
|
-
<script type="module" src="https://
|
|
69
|
+
<script type="module" src="https://esm.run/@thi.ng/math"></script>
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
[
|
|
72
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
73
73
|
|
|
74
74
|
For Node.js REPL:
|
|
75
75
|
|
package/abs.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const absDiff: FnN2;
|
|
|
13
13
|
* @param x
|
|
14
14
|
* @param eps
|
|
15
15
|
*/
|
|
16
|
-
export declare const sign: (x: number, eps?: number) =>
|
|
16
|
+
export declare const sign: (x: number, eps?: number) => 1 | 0 | -1;
|
|
17
17
|
/**
|
|
18
18
|
* Raises `x` to `k` power and multiplies it with the {@link sign} of `x`, using
|
|
19
19
|
* `eps` to determine zero.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/math",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.12",
|
|
4
4
|
"description": "Assorted common math functions & utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"build": "yarn build:esbuild && yarn build:decl",
|
|
31
31
|
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
32
32
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
33
|
-
"clean": "
|
|
33
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
34
34
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
35
35
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
36
36
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
@@ -39,12 +39,11 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.
|
|
42
|
+
"@thi.ng/api": "^8.11.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-extractor": "^7.43.0",
|
|
46
46
|
"esbuild": "^0.20.2",
|
|
47
|
-
"rimraf": "^5.0.5",
|
|
48
47
|
"typedoc": "^0.25.12",
|
|
49
48
|
"typescript": "^5.4.3"
|
|
50
49
|
},
|
|
@@ -143,5 +142,5 @@
|
|
|
143
142
|
"thi.ng": {
|
|
144
143
|
"year": 2013
|
|
145
144
|
},
|
|
146
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
|
|
147
146
|
}
|