@marko/language-tools 2.2.3 → 2.2.5
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 +4 -3
- package/dist/index.mjs +3 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1864,12 +1864,13 @@ function ${templateName}() {
|
|
|
1864
1864
|
this.#extractor.write(` const input = ${this.#getCastedType(`Input${typeArgsStr}`)};
|
|
1865
1865
|
const component = ${this.#getCastedType(`Component${typeArgsStr}`)};
|
|
1866
1866
|
const state = ${varShared("state")}(component);
|
|
1867
|
+
const $signal = ${this.#getCastedType("AbortSignal")};
|
|
1867
1868
|
const $global = ${varShared("getGlobal")}(
|
|
1868
1869
|
// @ts-expect-error We expect the compiler to error because we are checking if the MarkoRun.Context is defined.
|
|
1869
1870
|
(${varShared("error")}, ${this.#getCastedType("MarkoRun.Context")})
|
|
1870
1871
|
);
|
|
1871
1872
|
const out = ${varShared("out")};
|
|
1872
|
-
${varShared("noop")}({ input, component, state, out, $global });
|
|
1873
|
+
${varShared("noop")}({ input, component, state, out, $global, $signal });
|
|
1873
1874
|
`);
|
|
1874
1875
|
const body = this.#processBody(program);
|
|
1875
1876
|
if (body == null ? void 0 : body.renderBody) {
|
|
@@ -2941,7 +2942,7 @@ __export(project_exports, {
|
|
|
2941
2942
|
});
|
|
2942
2943
|
var import_path2 = __toESM(require("path"));
|
|
2943
2944
|
var import_module = require("module");
|
|
2944
|
-
var import_strip_json_comments =
|
|
2945
|
+
var import_strip_json_comments = require("@luxass/strip-json-comments");
|
|
2945
2946
|
var defaultTypeLibs = {};
|
|
2946
2947
|
var defaultMeta;
|
|
2947
2948
|
var ignoreErrors = (_err) => {
|
|
@@ -3146,7 +3147,7 @@ function clearCacheForMeta(meta) {
|
|
|
3146
3147
|
}
|
|
3147
3148
|
function tryParseJSONWithComments(content) {
|
|
3148
3149
|
try {
|
|
3149
|
-
return JSON.parse((0, import_strip_json_comments.
|
|
3150
|
+
return JSON.parse((0, import_strip_json_comments.strip)(content));
|
|
3150
3151
|
} catch {
|
|
3151
3152
|
return void 0;
|
|
3152
3153
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1832,12 +1832,13 @@ function ${templateName}() {
|
|
|
1832
1832
|
this.#extractor.write(` const input = ${this.#getCastedType(`Input${typeArgsStr}`)};
|
|
1833
1833
|
const component = ${this.#getCastedType(`Component${typeArgsStr}`)};
|
|
1834
1834
|
const state = ${varShared("state")}(component);
|
|
1835
|
+
const $signal = ${this.#getCastedType("AbortSignal")};
|
|
1835
1836
|
const $global = ${varShared("getGlobal")}(
|
|
1836
1837
|
// @ts-expect-error We expect the compiler to error because we are checking if the MarkoRun.Context is defined.
|
|
1837
1838
|
(${varShared("error")}, ${this.#getCastedType("MarkoRun.Context")})
|
|
1838
1839
|
);
|
|
1839
1840
|
const out = ${varShared("out")};
|
|
1840
|
-
${varShared("noop")}({ input, component, state, out, $global });
|
|
1841
|
+
${varShared("noop")}({ input, component, state, out, $global, $signal });
|
|
1841
1842
|
`);
|
|
1842
1843
|
const body = this.#processBody(program);
|
|
1843
1844
|
if (body == null ? void 0 : body.renderBody) {
|
|
@@ -2909,7 +2910,7 @@ __export(project_exports, {
|
|
|
2909
2910
|
});
|
|
2910
2911
|
import path2 from "path";
|
|
2911
2912
|
import { createRequire } from "module";
|
|
2912
|
-
import stripJSONComments from "strip-json-comments";
|
|
2913
|
+
import { strip as stripJSONComments } from "@luxass/strip-json-comments";
|
|
2913
2914
|
var defaultTypeLibs = {};
|
|
2914
2915
|
var defaultMeta;
|
|
2915
2916
|
var ignoreErrors = (_err) => {
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-tools",
|
|
3
3
|
"description": "Marko Language Tools",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.5",
|
|
5
5
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@marko/compiler": "^5.28.4"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@babel/helper-validator-identifier": "^7.22.20",
|
|
11
|
-
"@babel/parser": "^7.23.
|
|
11
|
+
"@babel/parser": "^7.23.9",
|
|
12
|
+
"@luxass/strip-json-comments": "^1.2.0",
|
|
12
13
|
"htmljs-parser": "^5.5.2",
|
|
13
|
-
"strip-json-comments": "^3.1.1",
|
|
14
14
|
"relative-import-path": "^1.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/code-frame": "^7.23.5",
|
|
18
|
-
"@marko/compiler": "^5.34.
|
|
19
|
-
"@marko/translator-default": "^5.31.
|
|
18
|
+
"@marko/compiler": "^5.34.6",
|
|
19
|
+
"@marko/translator-default": "^5.31.13",
|
|
20
20
|
"@types/babel__code-frame": "^7.0.6",
|
|
21
21
|
"@types/babel__helper-validator-identifier": "^7.15.2",
|
|
22
22
|
"@typescript/vfs": "^1.5.0",
|
|
23
|
-
"marko": "^5.32.
|
|
24
|
-
"mitata": "^0.1.
|
|
23
|
+
"marko": "^5.32.7",
|
|
24
|
+
"mitata": "^0.1.8",
|
|
25
25
|
"tsx": "^4.7.0"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|