@tsonic/frontend 0.0.64 → 0.0.66
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/.tsbuildinfo +1 -1
- package/dist/dependency-graph.d.ts +1 -1
- package/dist/dependency-graph.d.ts.map +1 -1
- package/dist/dependency-graph.js +1 -1
- package/dist/dependency-graph.js.map +1 -1
- package/dist/graph/extraction/imports.d.ts +0 -5
- package/dist/graph/extraction/imports.d.ts.map +1 -1
- package/dist/graph/extraction/imports.js +0 -35
- package/dist/graph/extraction/imports.js.map +1 -1
- package/dist/graph/extraction/index.d.ts +1 -1
- package/dist/graph/extraction/index.d.ts.map +1 -1
- package/dist/graph/extraction/index.js +1 -1
- package/dist/graph/extraction/index.js.map +1 -1
- package/dist/graph/extraction/orchestrator.d.ts.map +1 -1
- package/dist/graph/extraction/orchestrator.js +1 -7
- package/dist/graph/extraction/orchestrator.js.map +1 -1
- package/dist/graph/extraction.d.ts +1 -1
- package/dist/graph/extraction.d.ts.map +1 -1
- package/dist/graph/extraction.js +1 -1
- package/dist/graph/extraction.js.map +1 -1
- package/dist/ir/binding/binding-types.d.ts +2 -2
- package/dist/ir/binding/binding-types.d.ts.map +1 -1
- package/dist/ir/binding-resolution.test.js +176 -48
- package/dist/ir/binding-resolution.test.js.map +1 -1
- package/dist/ir/bindings-disambiguation.test.js +149 -0
- package/dist/ir/bindings-disambiguation.test.js.map +1 -1
- package/dist/ir/builder/imports.d.ts.map +1 -1
- package/dist/ir/builder/imports.js +76 -52
- package/dist/ir/builder/imports.js.map +1 -1
- package/dist/ir/builder.test.js +118 -0
- package/dist/ir/builder.test.js.map +1 -1
- package/dist/ir/converters/expressions/access/access-converter.d.ts.map +1 -1
- package/dist/ir/converters/expressions/access/access-converter.js +1 -1
- package/dist/ir/converters/expressions/access/access-converter.js.map +1 -1
- package/dist/ir/converters/expressions/access/binding-resolution.d.ts +2 -2
- package/dist/ir/converters/expressions/access/binding-resolution.d.ts.map +1 -1
- package/dist/ir/converters/expressions/access/binding-resolution.js +122 -78
- package/dist/ir/converters/expressions/access/binding-resolution.js.map +1 -1
- package/dist/ir/converters/expressions/access/member-resolution.d.ts.map +1 -1
- package/dist/ir/converters/expressions/access/member-resolution.js +8 -0
- package/dist/ir/converters/expressions/access/member-resolution.js.map +1 -1
- package/dist/ir/converters/expressions/calls/call-converter.js +3 -3
- package/dist/ir/converters/expressions/calls/call-converter.js.map +1 -1
- package/dist/ir/converters/expressions/numeric-recovery.test.js +110 -2
- package/dist/ir/converters/expressions/numeric-recovery.test.js.map +1 -1
- package/dist/ir/type-system/internal/type-converter/orchestrator.test.js +8 -0
- package/dist/ir/type-system/internal/type-converter/orchestrator.test.js.map +1 -1
- package/dist/ir/type-system/internal/type-converter/references.js +10 -12
- package/dist/ir/type-system/internal/type-converter/references.js.map +1 -1
- package/dist/ir/type-system/internal/type-registry.d.ts +3 -2
- package/dist/ir/type-system/internal/type-registry.d.ts.map +1 -1
- package/dist/ir/type-system/internal/type-registry.js +7 -3
- package/dist/ir/type-system/internal/type-registry.js.map +1 -1
- package/dist/ir/type-system/internal/universe/alias-table.js +2 -2
- package/dist/ir/type-system/internal/universe/alias-table.js.map +1 -1
- package/dist/ir/type-system/internal/universe/clr-catalog.d.ts.map +1 -1
- package/dist/ir/type-system/internal/universe/clr-catalog.js +16 -2
- package/dist/ir/type-system/internal/universe/clr-catalog.js.map +1 -1
- package/dist/ir/type-system/internal/universe/clr-catalog.test.d.ts +2 -0
- package/dist/ir/type-system/internal/universe/clr-catalog.test.d.ts.map +1 -0
- package/dist/ir/type-system/internal/universe/clr-catalog.test.js +55 -0
- package/dist/ir/type-system/internal/universe/clr-catalog.test.js.map +1 -0
- package/dist/ir/type-system/type-system-call-resolution.d.ts.map +1 -1
- package/dist/ir/type-system/type-system-call-resolution.js +134 -5
- package/dist/ir/type-system/type-system-call-resolution.js.map +1 -1
- package/dist/ir/type-system/type-system-inference.d.ts.map +1 -1
- package/dist/ir/type-system/type-system-inference.js +10 -2
- package/dist/ir/type-system/type-system-inference.js.map +1 -1
- package/dist/ir/type-system/type-system-state.d.ts +5 -0
- package/dist/ir/type-system/type-system-state.d.ts.map +1 -1
- package/dist/ir/type-system/type-system-state.js +33 -17
- package/dist/ir/type-system/type-system-state.js.map +1 -1
- package/dist/ir/type-system/type-system.d.ts.map +1 -1
- package/dist/ir/type-system/type-system.js.map +1 -1
- package/dist/ir/types/expressions.d.ts +1 -0
- package/dist/ir/types/expressions.d.ts.map +1 -1
- package/dist/ir/validation/attribute-collection-pass.test.js +1 -0
- package/dist/ir/validation/attribute-collection-pass.test.js.map +1 -1
- package/dist/ir/validation/soundness-gate.d.ts.map +1 -1
- package/dist/ir/validation/soundness-gate.js +11 -2
- package/dist/ir/validation/soundness-gate.js.map +1 -1
- package/dist/ir/validation/soundness-gate.test.js +23 -0
- package/dist/ir/validation/soundness-gate.test.js.map +1 -1
- package/dist/program/binding-loader.d.ts +3 -3
- package/dist/program/binding-loader.d.ts.map +1 -1
- package/dist/program/binding-loader.js +41 -23
- package/dist/program/binding-loader.js.map +1 -1
- package/dist/program/binding-registry.d.ts +7 -0
- package/dist/program/binding-registry.d.ts.map +1 -1
- package/dist/program/binding-registry.js +52 -1
- package/dist/program/binding-registry.js.map +1 -1
- package/dist/program/binding-types.d.ts +1 -0
- package/dist/program/binding-types.d.ts.map +1 -1
- package/dist/program/binding-types.js.map +1 -1
- package/dist/program/bindings.test.js +210 -0
- package/dist/program/bindings.test.js.map +1 -1
- package/dist/program/creation.d.ts.map +1 -1
- package/dist/program/creation.js +292 -161
- package/dist/program/creation.js.map +1 -1
- package/dist/program/creation.test.js +276 -19
- package/dist/program/creation.test.js.map +1 -1
- package/dist/program/metadata.d.ts.map +1 -1
- package/dist/program/metadata.js +72 -15
- package/dist/program/metadata.js.map +1 -1
- package/dist/program/metadata.test.d.ts +2 -0
- package/dist/program/metadata.test.d.ts.map +1 -0
- package/dist/program/metadata.test.js +104 -0
- package/dist/program/metadata.test.js.map +1 -0
- package/dist/program/package-roots.d.ts +2 -0
- package/dist/program/package-roots.d.ts.map +1 -0
- package/dist/program/package-roots.js +88 -0
- package/dist/program/package-roots.js.map +1 -0
- package/dist/program/types.d.ts +1 -1
- package/dist/program/types.d.ts.map +1 -1
- package/dist/resolver/clr-bindings-resolver.d.ts.map +1 -1
- package/dist/resolver/clr-bindings-resolver.js +42 -4
- package/dist/resolver/clr-bindings-resolver.js.map +1 -1
- package/dist/resolver/import-resolution.d.ts +0 -2
- package/dist/resolver/import-resolution.d.ts.map +1 -1
- package/dist/resolver/import-resolution.js +2 -9
- package/dist/resolver/import-resolution.js.map +1 -1
- package/dist/resolver.test.js +50 -78
- package/dist/resolver.test.js.map +1 -1
- package/dist/surface/profiles.d.ts +6 -3
- package/dist/surface/profiles.d.ts.map +1 -1
- package/dist/surface/profiles.js +177 -28
- package/dist/surface/profiles.js.map +1 -1
- package/dist/surface/profiles.test.js +98 -17
- package/dist/surface/profiles.test.js.map +1 -1
- package/dist/validation/features.d.ts.map +1 -1
- package/dist/validation/features.js +1 -23
- package/dist/validation/features.js.map +1 -1
- package/dist/validation/features.test.js +4 -4
- package/dist/validation/features.test.js.map +1 -1
- package/dist/validation/imports.d.ts.map +1 -1
- package/dist/validation/imports.js +7 -16
- package/dist/validation/imports.js.map +1 -1
- package/dist/validation/imports.test.js +74 -66
- package/dist/validation/imports.test.js.map +1 -1
- package/dist/validator.maximus.test.js +17 -5
- package/dist/validator.maximus.test.js.map +1 -1
- package/package.json +2 -2
- package/dist/ir/converters/context.d.ts +0 -40
- package/dist/ir/converters/context.d.ts.map +0 -1
- package/dist/ir/converters/context.js +0 -25
- package/dist/ir/converters/context.js.map +0 -1
- package/dist/resolver/node-module-aliases.d.ts +0 -6
- package/dist/resolver/node-module-aliases.d.ts.map +0 -1
- package/dist/resolver/node-module-aliases.js +0 -164
- package/dist/resolver/node-module-aliases.js.map +0 -1
- package/dist/resolver/node-module-aliases.test.d.ts +0 -2
- package/dist/resolver/node-module-aliases.test.d.ts.map +0 -1
- package/dist/resolver/node-module-aliases.test.js +0 -64
- package/dist/resolver/node-module-aliases.test.js.map +0 -1
- package/dist/surface/js-surface-shims.d.ts +0 -3
- package/dist/surface/js-surface-shims.d.ts.map +0 -1
- package/dist/surface/js-surface-shims.js +0 -332
- package/dist/surface/js-surface-shims.js.map +0 -1
- package/dist/surface/js-surface-shims.test.d.ts +0 -2
- package/dist/surface/js-surface-shims.test.d.ts.map +0 -1
- package/dist/surface/js-surface-shims.test.js +0 -53
- package/dist/surface/js-surface-shims.test.js.map +0 -1
- package/dist/validation/unsupported-utility-types.d.ts +0 -40
- package/dist/validation/unsupported-utility-types.d.ts.map +0 -1
- package/dist/validation/unsupported-utility-types.js +0 -43
- package/dist/validation/unsupported-utility-types.js.map +0 -1
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
const NODE_SPECIFIER_MAP = new Map([
|
|
2
|
-
[
|
|
3
|
-
"node:assert",
|
|
4
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "assert" },
|
|
5
|
-
],
|
|
6
|
-
[
|
|
7
|
-
"assert",
|
|
8
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "assert" },
|
|
9
|
-
],
|
|
10
|
-
[
|
|
11
|
-
"node:buffer",
|
|
12
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "buffer" },
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"buffer",
|
|
16
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "buffer" },
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"node:child_process",
|
|
20
|
-
{
|
|
21
|
-
canonicalSpecifier: "@tsonic/nodejs/index.js",
|
|
22
|
-
moduleName: "child_process",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
[
|
|
26
|
-
"child_process",
|
|
27
|
-
{
|
|
28
|
-
canonicalSpecifier: "@tsonic/nodejs/index.js",
|
|
29
|
-
moduleName: "child_process",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"node:fs",
|
|
34
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "fs" },
|
|
35
|
-
],
|
|
36
|
-
["fs", { canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "fs" }],
|
|
37
|
-
[
|
|
38
|
-
"node:path",
|
|
39
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "path" },
|
|
40
|
-
],
|
|
41
|
-
[
|
|
42
|
-
"path",
|
|
43
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "path" },
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
"node:crypto",
|
|
47
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "crypto" },
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
"crypto",
|
|
51
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "crypto" },
|
|
52
|
-
],
|
|
53
|
-
[
|
|
54
|
-
"node:dgram",
|
|
55
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "dgram" },
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
"dgram",
|
|
59
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "dgram" },
|
|
60
|
-
],
|
|
61
|
-
[
|
|
62
|
-
"node:dns",
|
|
63
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "dns" },
|
|
64
|
-
],
|
|
65
|
-
["dns", { canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "dns" }],
|
|
66
|
-
[
|
|
67
|
-
"node:events",
|
|
68
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "events" },
|
|
69
|
-
],
|
|
70
|
-
[
|
|
71
|
-
"events",
|
|
72
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "events" },
|
|
73
|
-
],
|
|
74
|
-
[
|
|
75
|
-
"node:net",
|
|
76
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "net" },
|
|
77
|
-
],
|
|
78
|
-
["net", { canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "net" }],
|
|
79
|
-
[
|
|
80
|
-
"node:os",
|
|
81
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "os" },
|
|
82
|
-
],
|
|
83
|
-
["os", { canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "os" }],
|
|
84
|
-
[
|
|
85
|
-
"node:process",
|
|
86
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "process" },
|
|
87
|
-
],
|
|
88
|
-
[
|
|
89
|
-
"process",
|
|
90
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "process" },
|
|
91
|
-
],
|
|
92
|
-
[
|
|
93
|
-
"node:querystring",
|
|
94
|
-
{
|
|
95
|
-
canonicalSpecifier: "@tsonic/nodejs/index.js",
|
|
96
|
-
moduleName: "querystring",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
[
|
|
100
|
-
"querystring",
|
|
101
|
-
{
|
|
102
|
-
canonicalSpecifier: "@tsonic/nodejs/index.js",
|
|
103
|
-
moduleName: "querystring",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
[
|
|
107
|
-
"node:readline",
|
|
108
|
-
{
|
|
109
|
-
canonicalSpecifier: "@tsonic/nodejs/index.js",
|
|
110
|
-
moduleName: "readline",
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
"readline",
|
|
115
|
-
{
|
|
116
|
-
canonicalSpecifier: "@tsonic/nodejs/index.js",
|
|
117
|
-
moduleName: "readline",
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
[
|
|
121
|
-
"node:stream",
|
|
122
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "stream" },
|
|
123
|
-
],
|
|
124
|
-
[
|
|
125
|
-
"stream",
|
|
126
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "stream" },
|
|
127
|
-
],
|
|
128
|
-
[
|
|
129
|
-
"node:timers",
|
|
130
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "timers" },
|
|
131
|
-
],
|
|
132
|
-
[
|
|
133
|
-
"timers",
|
|
134
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "timers" },
|
|
135
|
-
],
|
|
136
|
-
[
|
|
137
|
-
"node:tls",
|
|
138
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "tls" },
|
|
139
|
-
],
|
|
140
|
-
["tls", { canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "tls" }],
|
|
141
|
-
[
|
|
142
|
-
"node:url",
|
|
143
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "url" },
|
|
144
|
-
],
|
|
145
|
-
["url", { canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "url" }],
|
|
146
|
-
[
|
|
147
|
-
"node:util",
|
|
148
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "util" },
|
|
149
|
-
],
|
|
150
|
-
[
|
|
151
|
-
"util",
|
|
152
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "util" },
|
|
153
|
-
],
|
|
154
|
-
[
|
|
155
|
-
"node:zlib",
|
|
156
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "zlib" },
|
|
157
|
-
],
|
|
158
|
-
[
|
|
159
|
-
"zlib",
|
|
160
|
-
{ canonicalSpecifier: "@tsonic/nodejs/index.js", moduleName: "zlib" },
|
|
161
|
-
],
|
|
162
|
-
]);
|
|
163
|
-
export const resolveNodeModuleAlias = (moduleSpecifier) => NODE_SPECIFIER_MAP.get(moduleSpecifier);
|
|
164
|
-
//# sourceMappingURL=node-module-aliases.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-module-aliases.js","sourceRoot":"","sources":["../../src/resolver/node-module-aliases.ts"],"names":[],"mappings":"AAyBA,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAoC;IACpE;QACE,aAAa;QACb,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACxE;IACD;QACE,QAAQ;QACR,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACxE;IACD;QACE,aAAa;QACb,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACxE;IACD;QACE,QAAQ;QACR,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACxE;IACD;QACE,oBAAoB;QACpB;YACE,kBAAkB,EAAE,yBAAyB;YAC7C,UAAU,EAAE,eAAe;SAC5B;KACF;IACD;QACE,eAAe;QACf;YACE,kBAAkB,EAAE,yBAAyB;YAC7C,UAAU,EAAE,eAAe;SAC5B;KACF;IACD;QACE,SAAS;QACT,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,IAAI,EAAE;KACpE;IACD,CAAC,IAAI,EAAE,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IAC3E;QACE,WAAW;QACX,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,EAAE;KACtE;IACD;QACE,MAAM;QACN,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,EAAE;KACtE;IACD;QACE,aAAa;QACb,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACxE;IACD;QACE,QAAQ;QACR,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,UAAU,EAAE,QAAQ,EAAE;KACxE;IACD;Q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sBAAsB,GAAG,CACpC,eAAuB,EACgB,EAAE,CACzC,kBAAkB,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-module-aliases.test.d.ts","sourceRoot":"","sources":["../../src/resolver/node-module-aliases.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { describe, it } from "mocha";
|
|
2
|
-
import { expect } from "chai";
|
|
3
|
-
import { resolveNodeModuleAlias } from "./node-module-aliases.js";
|
|
4
|
-
describe("Node Module Aliases", () => {
|
|
5
|
-
const expectedCanonical = "@tsonic/nodejs/index.js";
|
|
6
|
-
it("should canonicalize all supported node aliases", () => {
|
|
7
|
-
const cases = [
|
|
8
|
-
{ specifier: "node:assert", moduleName: "assert" },
|
|
9
|
-
{ specifier: "assert", moduleName: "assert" },
|
|
10
|
-
{ specifier: "node:buffer", moduleName: "buffer" },
|
|
11
|
-
{ specifier: "buffer", moduleName: "buffer" },
|
|
12
|
-
{ specifier: "node:child_process", moduleName: "child_process" },
|
|
13
|
-
{ specifier: "child_process", moduleName: "child_process" },
|
|
14
|
-
{ specifier: "node:dgram", moduleName: "dgram" },
|
|
15
|
-
{ specifier: "dgram", moduleName: "dgram" },
|
|
16
|
-
{ specifier: "node:dns", moduleName: "dns" },
|
|
17
|
-
{ specifier: "dns", moduleName: "dns" },
|
|
18
|
-
{ specifier: "node:events", moduleName: "events" },
|
|
19
|
-
{ specifier: "events", moduleName: "events" },
|
|
20
|
-
{ specifier: "node:fs", moduleName: "fs" },
|
|
21
|
-
{ specifier: "fs", moduleName: "fs" },
|
|
22
|
-
{ specifier: "node:net", moduleName: "net" },
|
|
23
|
-
{ specifier: "net", moduleName: "net" },
|
|
24
|
-
{ specifier: "node:path", moduleName: "path" },
|
|
25
|
-
{ specifier: "path", moduleName: "path" },
|
|
26
|
-
{ specifier: "node:crypto", moduleName: "crypto" },
|
|
27
|
-
{ specifier: "crypto", moduleName: "crypto" },
|
|
28
|
-
{ specifier: "node:os", moduleName: "os" },
|
|
29
|
-
{ specifier: "os", moduleName: "os" },
|
|
30
|
-
{ specifier: "node:process", moduleName: "process" },
|
|
31
|
-
{ specifier: "process", moduleName: "process" },
|
|
32
|
-
{ specifier: "node:querystring", moduleName: "querystring" },
|
|
33
|
-
{ specifier: "querystring", moduleName: "querystring" },
|
|
34
|
-
{ specifier: "node:readline", moduleName: "readline" },
|
|
35
|
-
{ specifier: "readline", moduleName: "readline" },
|
|
36
|
-
{ specifier: "node:stream", moduleName: "stream" },
|
|
37
|
-
{ specifier: "stream", moduleName: "stream" },
|
|
38
|
-
{ specifier: "node:timers", moduleName: "timers" },
|
|
39
|
-
{ specifier: "timers", moduleName: "timers" },
|
|
40
|
-
{ specifier: "node:tls", moduleName: "tls" },
|
|
41
|
-
{ specifier: "tls", moduleName: "tls" },
|
|
42
|
-
{ specifier: "node:url", moduleName: "url" },
|
|
43
|
-
{ specifier: "url", moduleName: "url" },
|
|
44
|
-
{ specifier: "node:util", moduleName: "util" },
|
|
45
|
-
{ specifier: "util", moduleName: "util" },
|
|
46
|
-
{ specifier: "node:zlib", moduleName: "zlib" },
|
|
47
|
-
{ specifier: "zlib", moduleName: "zlib" },
|
|
48
|
-
];
|
|
49
|
-
for (const testCase of cases) {
|
|
50
|
-
const resolved = resolveNodeModuleAlias(testCase.specifier);
|
|
51
|
-
expect(resolved).to.not.equal(undefined);
|
|
52
|
-
if (!resolved)
|
|
53
|
-
continue;
|
|
54
|
-
expect(resolved.canonicalSpecifier).to.equal(expectedCanonical);
|
|
55
|
-
expect(resolved.moduleName).to.equal(testCase.moduleName);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
it("should return undefined for unsupported modules", () => {
|
|
59
|
-
expect(resolveNodeModuleAlias("node:http")).to.equal(undefined);
|
|
60
|
-
expect(resolveNodeModuleAlias("http")).to.equal(undefined);
|
|
61
|
-
expect(resolveNodeModuleAlias("node:vm")).to.equal(undefined);
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=node-module-aliases.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-module-aliases.test.js","sourceRoot":"","sources":["../../src/resolver/node-module-aliases.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;IAEpD,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACxD,MAAM,KAAK,GAuBN;YACH,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClD,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClD,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC7C,EAAE,SAAS,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAE;YAChE,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE;YAC3D,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE;YAChD,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE;YAC3C,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE;YAC5C,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE;YACvC,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClD,EAAE,SAAS,EAAE,QAAQ,EAAE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AC,SAAS,CAAC,CAAC;QAC3D,MAAM,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const JS_SURFACE_GLOBALS_SHIMS = "\nimport type { int, long, double } from \"@tsonic/core/types.js\";\nimport type { List } from \"@tsonic/dotnet/System.Collections.Generic.js\";\n\ndeclare global {\n interface String {\n readonly length: int;\n toUpperCase(): string;\n toLowerCase(): string;\n trim(): string;\n trimStart(): string;\n trimEnd(): string;\n substring(start: int, end?: int): string;\n slice(start: int, end?: int): string;\n indexOf(searchString: string, position?: int): int;\n lastIndexOf(searchString: string, position?: int): int;\n startsWith(searchString: string, position?: int): boolean;\n endsWith(searchString: string, endPosition?: int): boolean;\n includes(searchString: string, position?: int): boolean;\n replace(searchValue: string, replaceValue: string): string;\n replaceAll(searchValue: string, replaceValue: string): string;\n repeat(count: int): string;\n padStart(targetLength: int, padString?: string): string;\n padEnd(targetLength: int, padString?: string): string;\n charAt(index: int): string;\n charCodeAt(index: int): int;\n split(separator: string, limit?: int): List<string>;\n at(index: int): string;\n concat(...strings: string[]): string;\n localeCompare(compareString: string): int;\n match(pattern: string | RegExp): List<string> | undefined;\n search(pattern: string | RegExp): int;\n }\n\n interface Array<T> {\n readonly length: int;\n at(index: int): T;\n concat(...items: T[]): T[];\n every(callback: (value: T) => boolean): boolean;\n filter(callback: (value: T) => boolean): T[];\n filter(callback: (value: T, index: int) => boolean): T[];\n find(callback: (value: T) => boolean): T | undefined;\n find(callback: (value: T, index: int) => boolean): T | undefined;\n findIndex(callback: (value: T) => boolean): int;\n findIndex(callback: (value: T, index: int) => boolean): int;\n findLast(callback: (value: T) => boolean): T | undefined;\n findLast(callback: (value: T, index: int) => boolean): T | undefined;\n findLastIndex(callback: (value: T) => boolean): int;\n findLastIndex(callback: (value: T, index: int) => boolean): int;\n flat(depth?: int): unknown[];\n forEach(callback: (value: T) => void): void;\n forEach(callback: (value: T, index: int) => void): void;\n includes(searchElement: T): boolean;\n includes(searchElement: T, fromIndex?: int): boolean;\n indexOf(searchElement: T, fromIndex?: int): int;\n join(separator?: string): string;\n lastIndexOf(searchElement: T, fromIndex?: int): int;\n map<TResult>(callback: (value: T) => TResult): TResult[];\n map<TResult>(callback: (value: T, index: int) => TResult): TResult[];\n reduce(callback: (previousValue: T, currentValue: T) => T): T;\n reduce<TResult>(\n callback: (previousValue: TResult, currentValue: T) => TResult,\n initialValue: TResult\n ): TResult;\n reduceRight<TResult>(\n callback: (previousValue: TResult, currentValue: T) => TResult,\n initialValue: TResult\n ): TResult;\n slice(start?: int, end?: int): T[];\n some(callback: (value: T) => boolean): boolean;\n }\n\n interface ReadonlyArray<T> {\n readonly length: int;\n at(index: int): T;\n concat(...items: T[]): T[];\n every(callback: (value: T) => boolean): boolean;\n filter(callback: (value: T) => boolean): T[];\n filter(callback: (value: T, index: int) => boolean): T[];\n find(callback: (value: T) => boolean): T | undefined;\n find(callback: (value: T, index: int) => boolean): T | undefined;\n findIndex(callback: (value: T) => boolean): int;\n findIndex(callback: (value: T, index: int) => boolean): int;\n findLast(callback: (value: T) => boolean): T | undefined;\n findLast(callback: (value: T, index: int) => boolean): T | undefined;\n findLastIndex(callback: (value: T) => boolean): int;\n findLastIndex(callback: (value: T, index: int) => boolean): int;\n flat(depth?: int): unknown[];\n forEach(callback: (value: T) => void): void;\n forEach(callback: (value: T, index: int) => void): void;\n includes(searchElement: T): boolean;\n includes(searchElement: T, fromIndex?: int): boolean;\n indexOf(searchElement: T, fromIndex?: int): int;\n join(separator?: string): string;\n lastIndexOf(searchElement: T, fromIndex?: int): int;\n map<TResult>(callback: (value: T) => TResult): TResult[];\n map<TResult>(callback: (value: T, index: int) => TResult): TResult[];\n reduce(callback: (previousValue: T, currentValue: T) => T): T;\n reduce<TResult>(\n callback: (previousValue: TResult, currentValue: T) => TResult,\n initialValue: TResult\n ): TResult;\n reduceRight<TResult>(\n callback: (previousValue: TResult, currentValue: T) => TResult,\n initialValue: TResult\n ): TResult;\n slice(start?: int, end?: int): T[];\n some(callback: (value: T) => boolean): boolean;\n }\n\n interface Console {\n log(...data: unknown[]): void;\n error(...data: unknown[]): void;\n warn(...data: unknown[]): void;\n info(...data: unknown[]): void;\n debug(...data: unknown[]): void;\n }\n\n const console: Console;\n\n interface Date {\n toString(): string;\n toDateString(): string;\n toTimeString(): string;\n toISOString(): string;\n toUTCString(): string;\n valueOf(): long;\n getTime(): long;\n getFullYear(): int;\n getMonth(): int;\n getDate(): int;\n getDay(): int;\n getHours(): int;\n getMinutes(): int;\n getSeconds(): int;\n getMilliseconds(): int;\n setTime(time: long): long;\n setFullYear(year: int, month?: int, date?: int): long;\n setMonth(month: int, date?: int): long;\n setDate(date: int): long;\n setHours(hours: int, minutes?: int, seconds?: int, ms?: int): long;\n setMinutes(minutes: int, seconds?: int, ms?: int): long;\n setSeconds(seconds: int, ms?: int): long;\n setMilliseconds(ms: int): long;\n }\n\n interface DateConstructor {\n new (): Date;\n new (value: string | number | long): Date;\n new (year: int, monthIndex: int, date?: int): Date;\n now(): long;\n parse(s: string): long;\n UTC(year: int, monthIndex: int, date?: int): long;\n }\n\n const Date: DateConstructor;\n\n interface JSON {\n parse<T = unknown>(text: string): T;\n stringify(\n value: unknown,\n replacer?: ((this: unknown, key: string, value: unknown) => unknown) | readonly (number | string)[] | null,\n space?: string | number | int\n ): string;\n }\n\n const JSON: JSON;\n\n interface Math {\n readonly E: double;\n readonly LN10: double;\n readonly LN2: double;\n readonly LOG2E: double;\n readonly LOG10E: double;\n readonly PI: double;\n readonly SQRT1_2: double;\n readonly SQRT2: double;\n abs(x: double): double;\n acos(x: double): double;\n asin(x: double): double;\n atan(x: double): double;\n atan2(y: double, x: double): double;\n ceil(x: double): double;\n cos(x: double): double;\n exp(x: double): double;\n floor(x: double): double;\n log(x: double): double;\n max(...values: double[]): double;\n min(...values: double[]): double;\n pow(x: double, y: double): double;\n random(): double;\n round(x: double): double;\n sin(x: double): double;\n sqrt(x: double): double;\n tan(x: double): double;\n trunc(x: double): double;\n }\n\n const Math: Math;\n\n interface RegExpMatchArray extends Array<string> {\n index?: int;\n input?: string;\n }\n\n interface RegExp {\n exec(string: string): RegExpMatchArray | null;\n test(string: string): boolean;\n readonly source: string;\n readonly global: boolean;\n readonly ignoreCase: boolean;\n readonly multiline: boolean;\n lastIndex: int;\n }\n\n interface RegExpConstructor {\n new (pattern: string | RegExp, flags?: string): RegExp;\n (pattern: string | RegExp, flags?: string): RegExp;\n }\n\n const RegExp: RegExpConstructor;\n\n interface Map<K, V> {\n readonly size: int;\n clear(): void;\n delete(key: K): boolean;\n forEach(\n callbackfn: (value: V, key: K, map: Map<K, V>) => void,\n thisArg?: unknown\n ): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n set(key: K, value: V): this;\n entries(): IterableIterator<[K, V]>;\n keys(): IterableIterator<K>;\n values(): IterableIterator<V>;\n [Symbol.iterator](): IterableIterator<[K, V]>;\n }\n\n interface MapConstructor {\n new (): Map<unknown, unknown>;\n new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\n }\n\n const Map: MapConstructor;\n\n interface Set<T> {\n readonly size: int;\n add(value: T): this;\n clear(): void;\n delete(value: T): boolean;\n forEach(\n callbackfn: (value: T, value2: T, set: Set<T>) => void,\n thisArg?: unknown\n ): void;\n has(value: T): boolean;\n entries(): IterableIterator<[T, T]>;\n keys(): IterableIterator<T>;\n values(): IterableIterator<T>;\n [Symbol.iterator](): IterableIterator<T>;\n }\n\n interface SetConstructor {\n new (): Set<unknown>;\n new <T = unknown>(values?: readonly T[] | null): Set<T>;\n }\n\n const Set: SetConstructor;\n\n function parseInt(str: string, radix?: int): long | undefined;\n function parseFloat(str: string): double;\n function isFinite(value: double): boolean;\n function isNaN(value: double): boolean;\n function setTimeout(\n handler: (...args: unknown[]) => void,\n timeout?: int,\n ...args: unknown[]\n ): int;\n function clearTimeout(id: int): void;\n function setInterval(\n handler: (...args: unknown[]) => void,\n timeout?: int,\n ...args: unknown[]\n ): int;\n function clearInterval(id: int): void;\n}\n\nexport {};\n";
|
|
2
|
-
export declare const JS_SURFACE_NODE_MODULE_SHIMS = "\ndeclare module \"node:assert\" { export { assert } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"assert\" { export { assert } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:buffer\" { export { buffer } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"buffer\" { export { buffer } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:child_process\" { export { child_process } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"child_process\" { export { child_process } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:crypto\" { export { crypto } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"crypto\" { export { crypto } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:dgram\" { export { dgram } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"dgram\" { export { dgram } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:dns\" { export { dns } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"dns\" { export { dns } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:events\" { export { events } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"events\" { export { events } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:fs\" { export { fs } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"fs\" { export { fs } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:net\" { export { net } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"net\" { export { net } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:os\" { export { os } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"os\" { export { os } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:path\" { export { path } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"path\" { export { path } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:process\" { export { process } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"process\" { export { process } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:querystring\" { export { querystring } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"querystring\" { export { querystring } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:readline\" { export { readline } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"readline\" { export { readline } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:stream\" { export { stream } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"stream\" { export { stream } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:timers\" { export { timers } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"timers\" { export { timers } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:tls\" { export { tls } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"tls\" { export { tls } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:url\" { export { url } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"url\" { export { url } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:util\" { export { util } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"util\" { export { util } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"node:zlib\" { export { zlib } from \"@tsonic/nodejs/index.js\"; }\ndeclare module \"zlib\" { export { zlib } from \"@tsonic/nodejs/index.js\"; }\n";
|
|
3
|
-
//# sourceMappingURL=js-surface-shims.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"js-surface-shims.d.ts","sourceRoot":"","sources":["../../src/surface/js-surface-shims.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,wmTAgSpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mzGAyCxC,CAAC"}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
export const JS_SURFACE_GLOBALS_SHIMS = `
|
|
2
|
-
import type { int, long, double } from "@tsonic/core/types.js";
|
|
3
|
-
import type { List } from "@tsonic/dotnet/System.Collections.Generic.js";
|
|
4
|
-
|
|
5
|
-
declare global {
|
|
6
|
-
interface String {
|
|
7
|
-
readonly length: int;
|
|
8
|
-
toUpperCase(): string;
|
|
9
|
-
toLowerCase(): string;
|
|
10
|
-
trim(): string;
|
|
11
|
-
trimStart(): string;
|
|
12
|
-
trimEnd(): string;
|
|
13
|
-
substring(start: int, end?: int): string;
|
|
14
|
-
slice(start: int, end?: int): string;
|
|
15
|
-
indexOf(searchString: string, position?: int): int;
|
|
16
|
-
lastIndexOf(searchString: string, position?: int): int;
|
|
17
|
-
startsWith(searchString: string, position?: int): boolean;
|
|
18
|
-
endsWith(searchString: string, endPosition?: int): boolean;
|
|
19
|
-
includes(searchString: string, position?: int): boolean;
|
|
20
|
-
replace(searchValue: string, replaceValue: string): string;
|
|
21
|
-
replaceAll(searchValue: string, replaceValue: string): string;
|
|
22
|
-
repeat(count: int): string;
|
|
23
|
-
padStart(targetLength: int, padString?: string): string;
|
|
24
|
-
padEnd(targetLength: int, padString?: string): string;
|
|
25
|
-
charAt(index: int): string;
|
|
26
|
-
charCodeAt(index: int): int;
|
|
27
|
-
split(separator: string, limit?: int): List<string>;
|
|
28
|
-
at(index: int): string;
|
|
29
|
-
concat(...strings: string[]): string;
|
|
30
|
-
localeCompare(compareString: string): int;
|
|
31
|
-
match(pattern: string | RegExp): List<string> | undefined;
|
|
32
|
-
search(pattern: string | RegExp): int;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface Array<T> {
|
|
36
|
-
readonly length: int;
|
|
37
|
-
at(index: int): T;
|
|
38
|
-
concat(...items: T[]): T[];
|
|
39
|
-
every(callback: (value: T) => boolean): boolean;
|
|
40
|
-
filter(callback: (value: T) => boolean): T[];
|
|
41
|
-
filter(callback: (value: T, index: int) => boolean): T[];
|
|
42
|
-
find(callback: (value: T) => boolean): T | undefined;
|
|
43
|
-
find(callback: (value: T, index: int) => boolean): T | undefined;
|
|
44
|
-
findIndex(callback: (value: T) => boolean): int;
|
|
45
|
-
findIndex(callback: (value: T, index: int) => boolean): int;
|
|
46
|
-
findLast(callback: (value: T) => boolean): T | undefined;
|
|
47
|
-
findLast(callback: (value: T, index: int) => boolean): T | undefined;
|
|
48
|
-
findLastIndex(callback: (value: T) => boolean): int;
|
|
49
|
-
findLastIndex(callback: (value: T, index: int) => boolean): int;
|
|
50
|
-
flat(depth?: int): unknown[];
|
|
51
|
-
forEach(callback: (value: T) => void): void;
|
|
52
|
-
forEach(callback: (value: T, index: int) => void): void;
|
|
53
|
-
includes(searchElement: T): boolean;
|
|
54
|
-
includes(searchElement: T, fromIndex?: int): boolean;
|
|
55
|
-
indexOf(searchElement: T, fromIndex?: int): int;
|
|
56
|
-
join(separator?: string): string;
|
|
57
|
-
lastIndexOf(searchElement: T, fromIndex?: int): int;
|
|
58
|
-
map<TResult>(callback: (value: T) => TResult): TResult[];
|
|
59
|
-
map<TResult>(callback: (value: T, index: int) => TResult): TResult[];
|
|
60
|
-
reduce(callback: (previousValue: T, currentValue: T) => T): T;
|
|
61
|
-
reduce<TResult>(
|
|
62
|
-
callback: (previousValue: TResult, currentValue: T) => TResult,
|
|
63
|
-
initialValue: TResult
|
|
64
|
-
): TResult;
|
|
65
|
-
reduceRight<TResult>(
|
|
66
|
-
callback: (previousValue: TResult, currentValue: T) => TResult,
|
|
67
|
-
initialValue: TResult
|
|
68
|
-
): TResult;
|
|
69
|
-
slice(start?: int, end?: int): T[];
|
|
70
|
-
some(callback: (value: T) => boolean): boolean;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface ReadonlyArray<T> {
|
|
74
|
-
readonly length: int;
|
|
75
|
-
at(index: int): T;
|
|
76
|
-
concat(...items: T[]): T[];
|
|
77
|
-
every(callback: (value: T) => boolean): boolean;
|
|
78
|
-
filter(callback: (value: T) => boolean): T[];
|
|
79
|
-
filter(callback: (value: T, index: int) => boolean): T[];
|
|
80
|
-
find(callback: (value: T) => boolean): T | undefined;
|
|
81
|
-
find(callback: (value: T, index: int) => boolean): T | undefined;
|
|
82
|
-
findIndex(callback: (value: T) => boolean): int;
|
|
83
|
-
findIndex(callback: (value: T, index: int) => boolean): int;
|
|
84
|
-
findLast(callback: (value: T) => boolean): T | undefined;
|
|
85
|
-
findLast(callback: (value: T, index: int) => boolean): T | undefined;
|
|
86
|
-
findLastIndex(callback: (value: T) => boolean): int;
|
|
87
|
-
findLastIndex(callback: (value: T, index: int) => boolean): int;
|
|
88
|
-
flat(depth?: int): unknown[];
|
|
89
|
-
forEach(callback: (value: T) => void): void;
|
|
90
|
-
forEach(callback: (value: T, index: int) => void): void;
|
|
91
|
-
includes(searchElement: T): boolean;
|
|
92
|
-
includes(searchElement: T, fromIndex?: int): boolean;
|
|
93
|
-
indexOf(searchElement: T, fromIndex?: int): int;
|
|
94
|
-
join(separator?: string): string;
|
|
95
|
-
lastIndexOf(searchElement: T, fromIndex?: int): int;
|
|
96
|
-
map<TResult>(callback: (value: T) => TResult): TResult[];
|
|
97
|
-
map<TResult>(callback: (value: T, index: int) => TResult): TResult[];
|
|
98
|
-
reduce(callback: (previousValue: T, currentValue: T) => T): T;
|
|
99
|
-
reduce<TResult>(
|
|
100
|
-
callback: (previousValue: TResult, currentValue: T) => TResult,
|
|
101
|
-
initialValue: TResult
|
|
102
|
-
): TResult;
|
|
103
|
-
reduceRight<TResult>(
|
|
104
|
-
callback: (previousValue: TResult, currentValue: T) => TResult,
|
|
105
|
-
initialValue: TResult
|
|
106
|
-
): TResult;
|
|
107
|
-
slice(start?: int, end?: int): T[];
|
|
108
|
-
some(callback: (value: T) => boolean): boolean;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
interface Console {
|
|
112
|
-
log(...data: unknown[]): void;
|
|
113
|
-
error(...data: unknown[]): void;
|
|
114
|
-
warn(...data: unknown[]): void;
|
|
115
|
-
info(...data: unknown[]): void;
|
|
116
|
-
debug(...data: unknown[]): void;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const console: Console;
|
|
120
|
-
|
|
121
|
-
interface Date {
|
|
122
|
-
toString(): string;
|
|
123
|
-
toDateString(): string;
|
|
124
|
-
toTimeString(): string;
|
|
125
|
-
toISOString(): string;
|
|
126
|
-
toUTCString(): string;
|
|
127
|
-
valueOf(): long;
|
|
128
|
-
getTime(): long;
|
|
129
|
-
getFullYear(): int;
|
|
130
|
-
getMonth(): int;
|
|
131
|
-
getDate(): int;
|
|
132
|
-
getDay(): int;
|
|
133
|
-
getHours(): int;
|
|
134
|
-
getMinutes(): int;
|
|
135
|
-
getSeconds(): int;
|
|
136
|
-
getMilliseconds(): int;
|
|
137
|
-
setTime(time: long): long;
|
|
138
|
-
setFullYear(year: int, month?: int, date?: int): long;
|
|
139
|
-
setMonth(month: int, date?: int): long;
|
|
140
|
-
setDate(date: int): long;
|
|
141
|
-
setHours(hours: int, minutes?: int, seconds?: int, ms?: int): long;
|
|
142
|
-
setMinutes(minutes: int, seconds?: int, ms?: int): long;
|
|
143
|
-
setSeconds(seconds: int, ms?: int): long;
|
|
144
|
-
setMilliseconds(ms: int): long;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
interface DateConstructor {
|
|
148
|
-
new (): Date;
|
|
149
|
-
new (value: string | number | long): Date;
|
|
150
|
-
new (year: int, monthIndex: int, date?: int): Date;
|
|
151
|
-
now(): long;
|
|
152
|
-
parse(s: string): long;
|
|
153
|
-
UTC(year: int, monthIndex: int, date?: int): long;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const Date: DateConstructor;
|
|
157
|
-
|
|
158
|
-
interface JSON {
|
|
159
|
-
parse<T = unknown>(text: string): T;
|
|
160
|
-
stringify(
|
|
161
|
-
value: unknown,
|
|
162
|
-
replacer?: ((this: unknown, key: string, value: unknown) => unknown) | readonly (number | string)[] | null,
|
|
163
|
-
space?: string | number | int
|
|
164
|
-
): string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const JSON: JSON;
|
|
168
|
-
|
|
169
|
-
interface Math {
|
|
170
|
-
readonly E: double;
|
|
171
|
-
readonly LN10: double;
|
|
172
|
-
readonly LN2: double;
|
|
173
|
-
readonly LOG2E: double;
|
|
174
|
-
readonly LOG10E: double;
|
|
175
|
-
readonly PI: double;
|
|
176
|
-
readonly SQRT1_2: double;
|
|
177
|
-
readonly SQRT2: double;
|
|
178
|
-
abs(x: double): double;
|
|
179
|
-
acos(x: double): double;
|
|
180
|
-
asin(x: double): double;
|
|
181
|
-
atan(x: double): double;
|
|
182
|
-
atan2(y: double, x: double): double;
|
|
183
|
-
ceil(x: double): double;
|
|
184
|
-
cos(x: double): double;
|
|
185
|
-
exp(x: double): double;
|
|
186
|
-
floor(x: double): double;
|
|
187
|
-
log(x: double): double;
|
|
188
|
-
max(...values: double[]): double;
|
|
189
|
-
min(...values: double[]): double;
|
|
190
|
-
pow(x: double, y: double): double;
|
|
191
|
-
random(): double;
|
|
192
|
-
round(x: double): double;
|
|
193
|
-
sin(x: double): double;
|
|
194
|
-
sqrt(x: double): double;
|
|
195
|
-
tan(x: double): double;
|
|
196
|
-
trunc(x: double): double;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
const Math: Math;
|
|
200
|
-
|
|
201
|
-
interface RegExpMatchArray extends Array<string> {
|
|
202
|
-
index?: int;
|
|
203
|
-
input?: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface RegExp {
|
|
207
|
-
exec(string: string): RegExpMatchArray | null;
|
|
208
|
-
test(string: string): boolean;
|
|
209
|
-
readonly source: string;
|
|
210
|
-
readonly global: boolean;
|
|
211
|
-
readonly ignoreCase: boolean;
|
|
212
|
-
readonly multiline: boolean;
|
|
213
|
-
lastIndex: int;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface RegExpConstructor {
|
|
217
|
-
new (pattern: string | RegExp, flags?: string): RegExp;
|
|
218
|
-
(pattern: string | RegExp, flags?: string): RegExp;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
const RegExp: RegExpConstructor;
|
|
222
|
-
|
|
223
|
-
interface Map<K, V> {
|
|
224
|
-
readonly size: int;
|
|
225
|
-
clear(): void;
|
|
226
|
-
delete(key: K): boolean;
|
|
227
|
-
forEach(
|
|
228
|
-
callbackfn: (value: V, key: K, map: Map<K, V>) => void,
|
|
229
|
-
thisArg?: unknown
|
|
230
|
-
): void;
|
|
231
|
-
get(key: K): V | undefined;
|
|
232
|
-
has(key: K): boolean;
|
|
233
|
-
set(key: K, value: V): this;
|
|
234
|
-
entries(): IterableIterator<[K, V]>;
|
|
235
|
-
keys(): IterableIterator<K>;
|
|
236
|
-
values(): IterableIterator<V>;
|
|
237
|
-
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
interface MapConstructor {
|
|
241
|
-
new (): Map<unknown, unknown>;
|
|
242
|
-
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
const Map: MapConstructor;
|
|
246
|
-
|
|
247
|
-
interface Set<T> {
|
|
248
|
-
readonly size: int;
|
|
249
|
-
add(value: T): this;
|
|
250
|
-
clear(): void;
|
|
251
|
-
delete(value: T): boolean;
|
|
252
|
-
forEach(
|
|
253
|
-
callbackfn: (value: T, value2: T, set: Set<T>) => void,
|
|
254
|
-
thisArg?: unknown
|
|
255
|
-
): void;
|
|
256
|
-
has(value: T): boolean;
|
|
257
|
-
entries(): IterableIterator<[T, T]>;
|
|
258
|
-
keys(): IterableIterator<T>;
|
|
259
|
-
values(): IterableIterator<T>;
|
|
260
|
-
[Symbol.iterator](): IterableIterator<T>;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
interface SetConstructor {
|
|
264
|
-
new (): Set<unknown>;
|
|
265
|
-
new <T = unknown>(values?: readonly T[] | null): Set<T>;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
const Set: SetConstructor;
|
|
269
|
-
|
|
270
|
-
function parseInt(str: string, radix?: int): long | undefined;
|
|
271
|
-
function parseFloat(str: string): double;
|
|
272
|
-
function isFinite(value: double): boolean;
|
|
273
|
-
function isNaN(value: double): boolean;
|
|
274
|
-
function setTimeout(
|
|
275
|
-
handler: (...args: unknown[]) => void,
|
|
276
|
-
timeout?: int,
|
|
277
|
-
...args: unknown[]
|
|
278
|
-
): int;
|
|
279
|
-
function clearTimeout(id: int): void;
|
|
280
|
-
function setInterval(
|
|
281
|
-
handler: (...args: unknown[]) => void,
|
|
282
|
-
timeout?: int,
|
|
283
|
-
...args: unknown[]
|
|
284
|
-
): int;
|
|
285
|
-
function clearInterval(id: int): void;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export {};
|
|
289
|
-
`;
|
|
290
|
-
export const JS_SURFACE_NODE_MODULE_SHIMS = `
|
|
291
|
-
declare module "node:assert" { export { assert } from "@tsonic/nodejs/index.js"; }
|
|
292
|
-
declare module "assert" { export { assert } from "@tsonic/nodejs/index.js"; }
|
|
293
|
-
declare module "node:buffer" { export { buffer } from "@tsonic/nodejs/index.js"; }
|
|
294
|
-
declare module "buffer" { export { buffer } from "@tsonic/nodejs/index.js"; }
|
|
295
|
-
declare module "node:child_process" { export { child_process } from "@tsonic/nodejs/index.js"; }
|
|
296
|
-
declare module "child_process" { export { child_process } from "@tsonic/nodejs/index.js"; }
|
|
297
|
-
declare module "node:crypto" { export { crypto } from "@tsonic/nodejs/index.js"; }
|
|
298
|
-
declare module "crypto" { export { crypto } from "@tsonic/nodejs/index.js"; }
|
|
299
|
-
declare module "node:dgram" { export { dgram } from "@tsonic/nodejs/index.js"; }
|
|
300
|
-
declare module "dgram" { export { dgram } from "@tsonic/nodejs/index.js"; }
|
|
301
|
-
declare module "node:dns" { export { dns } from "@tsonic/nodejs/index.js"; }
|
|
302
|
-
declare module "dns" { export { dns } from "@tsonic/nodejs/index.js"; }
|
|
303
|
-
declare module "node:events" { export { events } from "@tsonic/nodejs/index.js"; }
|
|
304
|
-
declare module "events" { export { events } from "@tsonic/nodejs/index.js"; }
|
|
305
|
-
declare module "node:fs" { export { fs } from "@tsonic/nodejs/index.js"; }
|
|
306
|
-
declare module "fs" { export { fs } from "@tsonic/nodejs/index.js"; }
|
|
307
|
-
declare module "node:net" { export { net } from "@tsonic/nodejs/index.js"; }
|
|
308
|
-
declare module "net" { export { net } from "@tsonic/nodejs/index.js"; }
|
|
309
|
-
declare module "node:os" { export { os } from "@tsonic/nodejs/index.js"; }
|
|
310
|
-
declare module "os" { export { os } from "@tsonic/nodejs/index.js"; }
|
|
311
|
-
declare module "node:path" { export { path } from "@tsonic/nodejs/index.js"; }
|
|
312
|
-
declare module "path" { export { path } from "@tsonic/nodejs/index.js"; }
|
|
313
|
-
declare module "node:process" { export { process } from "@tsonic/nodejs/index.js"; }
|
|
314
|
-
declare module "process" { export { process } from "@tsonic/nodejs/index.js"; }
|
|
315
|
-
declare module "node:querystring" { export { querystring } from "@tsonic/nodejs/index.js"; }
|
|
316
|
-
declare module "querystring" { export { querystring } from "@tsonic/nodejs/index.js"; }
|
|
317
|
-
declare module "node:readline" { export { readline } from "@tsonic/nodejs/index.js"; }
|
|
318
|
-
declare module "readline" { export { readline } from "@tsonic/nodejs/index.js"; }
|
|
319
|
-
declare module "node:stream" { export { stream } from "@tsonic/nodejs/index.js"; }
|
|
320
|
-
declare module "stream" { export { stream } from "@tsonic/nodejs/index.js"; }
|
|
321
|
-
declare module "node:timers" { export { timers } from "@tsonic/nodejs/index.js"; }
|
|
322
|
-
declare module "timers" { export { timers } from "@tsonic/nodejs/index.js"; }
|
|
323
|
-
declare module "node:tls" { export { tls } from "@tsonic/nodejs/index.js"; }
|
|
324
|
-
declare module "tls" { export { tls } from "@tsonic/nodejs/index.js"; }
|
|
325
|
-
declare module "node:url" { export { url } from "@tsonic/nodejs/index.js"; }
|
|
326
|
-
declare module "url" { export { url } from "@tsonic/nodejs/index.js"; }
|
|
327
|
-
declare module "node:util" { export { util } from "@tsonic/nodejs/index.js"; }
|
|
328
|
-
declare module "util" { export { util } from "@tsonic/nodejs/index.js"; }
|
|
329
|
-
declare module "node:zlib" { export { zlib } from "@tsonic/nodejs/index.js"; }
|
|
330
|
-
declare module "zlib" { export { zlib } from "@tsonic/nodejs/index.js"; }
|
|
331
|
-
`;
|
|
332
|
-
//# sourceMappingURL=js-surface-shims.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"js-surface-shims.js","sourceRoot":"","sources":["../../src/surface/js-surface-shims.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgSvC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"js-surface-shims.test.d.ts","sourceRoot":"","sources":["../../src/surface/js-surface-shims.test.ts"],"names":[],"mappings":""}
|