cmath-js 5.2.1 → 5.3.1

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/README.md CHANGED
@@ -10,6 +10,7 @@ Implementation of parts of C++'s numerics libraries in TypeScript/JavaScript, in
10
10
  - [`frexp`](https://en.cppreference.com/w/c/numeric/math/frexp)
11
11
  - [`hypot`](https://en.cppreference.com/w/cpp/numeric/math/hypot)
12
12
  - [`iscanonical`](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf#subsection.7.12.3)
13
+ - [`isinf`](https://en.cppreference.com/w/c/numeric/math/isinf)
13
14
  - [`ldexp`](https://en.cppreference.com/w/c/numeric/math/ldexp)
14
15
  - [`nan`](https://en.cppreference.com/w/c/numeric/math/nan)
15
16
  - [`nextafter`](https://en.cppreference.com/w/c/numeric/math/nextafter)
@@ -62,6 +63,4 @@ The test coverage is a perfect 100% and enforced by the publishing and pull requ
62
63
 
63
64
  ## Contributing
64
65
 
65
- Contributions are welcomed! Feel free to make a pull request. Please add your name to `contributors` in `package.json` and run `npm run build-and-verify` before submitting your PR. By opening a pull request you agree to license your contribution under [the CC0 license](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en#legal-code-title) unless you specify otherwise.
66
-
67
- ESLint is used to enforce code quality and consistent formatting (with the help of Prettier). If ESLint complains when you run `npm run build-and-verify`, you can run `npm run lint-fix` to apply automatic fixes, and then fix the rest of the errors manually. It is recommend to configure your IDE for ESLint and Prettier. If you are using Visual Studio Code, simply installing [Microsoft's ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and [the official Prettier extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) takes care of that.
66
+ Contributions are welcomed! See [CONTRIBUTING.md](./CONTRIBUTING.md) for more info.
@@ -1 +1 @@
1
- {"version":3,"file":"hypot.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/hypot.ts"],"names":[],"mappings":"AAeA,MAAM,U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QAC3C,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC"}
@@ -4,6 +4,7 @@ export { fpclassify } from "./fpclassify.ts";
4
4
  export { frexp, type FrexpResult } from "./frexp.ts";
5
5
  export { hypot } from "./hypot.ts";
6
6
  export { iscanonical } from "./iscanonical.ts";
7
+ export { isinf } from "./isinf.ts";
7
8
  export { ldexp } from "./ldexp.ts";
8
9
  export * from "./macros.ts";
9
10
  export { nan } from "./nan.ts";
@@ -4,6 +4,7 @@ export { fpclassify } from "./fpclassify.js";
4
4
  export { frexp } from "./frexp.js";
5
5
  export { hypot } from "./hypot.js";
6
6
  export { iscanonical } from "./iscanonical.js";
7
+ export { isinf } from "./isinf.js";
7
8
  export { ldexp } from "./ldexp.js";
8
9
  export * from "./macros.js";
9
10
  export { nan } from "./nan.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function isinf(num: number): boolean;
@@ -0,0 +1,4 @@
1
+ export function isinf(num) {
2
+ return num === Infinity || num === -Infinity;
3
+ }
4
+ //# sourceMappingURL=isinf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isinf.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/isinf.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,KAAK,CAAC,GAAW;IAChC,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;AAC9C,CAAC"}
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/oskarlh/cmath-js.git"
7
7
  },
8
- "version": "5.2.1",
8
+ "version": "5.3.1",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/index.d.ts",