@mojir/lits 2.1.15 → 2.1.16

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.
Files changed (2) hide show
  1. package/dist/cli/cli.js +4 -4
  2. package/package.json +2 -2
package/dist/cli/cli.js CHANGED
@@ -92,7 +92,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
92
92
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
93
93
  };
94
94
 
95
- var version = "2.1.15";
95
+ var version = "2.1.16";
96
96
 
97
97
  function getCodeMarker(sourceCodeInfo) {
98
98
  if (!sourceCodeInfo.position || !sourceCodeInfo.code)
@@ -32426,10 +32426,10 @@ class ExpressionParser {
32426
32426
  * @returns A string containing the symbolic representation
32427
32427
  */
32428
32428
  function prettyPi(num, config = {}) {
32429
- if (isNaN(num)) {
32430
- return "NaN";
32431
- }
32432
32429
  if (!isFinite(num)) {
32430
+ if (isNaN(num)) {
32431
+ return "NaN";
32432
+ }
32433
32433
  return num > 0 ? "∞" : "-∞";
32434
32434
  }
32435
32435
  setConfig(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojir/lits",
3
- "version": "2.1.15",
3
+ "version": "2.1.16",
4
4
  "description": "Lits is a Lisp dialect implemented in TypeScript",
5
5
  "author": "Albert Mojir",
6
6
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "lcov": "open-cli ./coverage/index.html"
51
51
  },
52
52
  "dependencies": {
53
- "@mojir/pretty-pi": "0.0.9"
53
+ "@mojir/pretty-pi": "0.0.12"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@antfu/eslint-config": "2.21.1",