@nudojs/harvester 0.3.1 → 0.3.3
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/dist/index.js +1 -11
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5,15 +5,13 @@ import {
|
|
|
5
5
|
abs as makeAbs,
|
|
6
6
|
lit as termLit,
|
|
7
7
|
v as termVar,
|
|
8
|
-
numLit,
|
|
9
|
-
strLit,
|
|
10
|
-
boolLit,
|
|
11
8
|
objOf,
|
|
12
9
|
joinAbs,
|
|
13
10
|
relationFn,
|
|
14
11
|
getFnImpl,
|
|
15
12
|
substAbs
|
|
16
13
|
} from "@nudojs/core";
|
|
14
|
+
import { absLit } from "@nudojs/core/internal";
|
|
17
15
|
var MAX_ALIAS_DEPTH = 8;
|
|
18
16
|
function scopeKey(scope) {
|
|
19
17
|
return scope.moduleName ?? "\0global";
|
|
@@ -36,14 +34,6 @@ function absNullLit() {
|
|
|
36
34
|
function absUndefLit() {
|
|
37
35
|
return makeAbs({ k: "unknown" }, termLit(void 0), void 0, "exact");
|
|
38
36
|
}
|
|
39
|
-
function absLit(value) {
|
|
40
|
-
if (typeof value === "number") return numLit(value);
|
|
41
|
-
if (typeof value === "string") return strLit(value);
|
|
42
|
-
if (typeof value === "boolean") return boolLit(value);
|
|
43
|
-
if (typeof value === "bigint") return absPrim("bigint");
|
|
44
|
-
if (value === null) return absNullLit();
|
|
45
|
-
return absUndefLit();
|
|
46
|
-
}
|
|
47
37
|
function absArr(element) {
|
|
48
38
|
return absExact({ k: "arr", element });
|
|
49
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nudojs/harvester",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"registry": "https://registry.npmjs.org"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nudojs/core": "1.7.
|
|
33
|
-
"@nudojs/parser": "
|
|
34
|
-
"@nudojs/env": "0.4.
|
|
32
|
+
"@nudojs/core": "1.7.2",
|
|
33
|
+
"@nudojs/parser": "2.0.0",
|
|
34
|
+
"@nudojs/env": "0.4.17",
|
|
35
35
|
"@babel/types": "^8.0.6",
|
|
36
36
|
"typescript": "^6.0.3"
|
|
37
37
|
},
|