@marko/language-tools 2.1.8 → 2.1.10
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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1677,6 +1677,7 @@ var REG_OBJECT_PROPERTY = /^[_$a-z][_$a-z0-9]*$/i;
|
|
|
1677
1677
|
var REG_COMMENT_PRAGMA = /\/\/(?:\s*@ts-|\/\s*<)/y;
|
|
1678
1678
|
var IF_TAG_ALTERNATES = /* @__PURE__ */ new WeakMap();
|
|
1679
1679
|
var WROTE_COMMENT = /* @__PURE__ */ new WeakSet();
|
|
1680
|
+
var START_OF_FILE = { start: 0, end: 0 };
|
|
1680
1681
|
var ScriptLang = /* @__PURE__ */ ((ScriptLang2) => {
|
|
1681
1682
|
ScriptLang2["js"] = "js";
|
|
1682
1683
|
ScriptLang2["ts"] = "ts";
|
|
@@ -1907,6 +1908,7 @@ function ${templateName}() {
|
|
|
1907
1908
|
-1
|
|
1908
1909
|
)}>${renderAndReturn};` : `(): () => <${internalInputWithExtends}>${renderAndReturn};`}
|
|
1909
1910
|
}>`;
|
|
1911
|
+
this.#extractor.copy(START_OF_FILE);
|
|
1910
1912
|
if (this.#scriptLang === "ts" /* ts */) {
|
|
1911
1913
|
this.#extractor.write(`export default new (
|
|
1912
1914
|
class Template extends ${templateOverrideClass} {}
|
package/dist/index.mjs
CHANGED
|
@@ -1645,6 +1645,7 @@ var REG_OBJECT_PROPERTY = /^[_$a-z][_$a-z0-9]*$/i;
|
|
|
1645
1645
|
var REG_COMMENT_PRAGMA = /\/\/(?:\s*@ts-|\/\s*<)/y;
|
|
1646
1646
|
var IF_TAG_ALTERNATES = /* @__PURE__ */ new WeakMap();
|
|
1647
1647
|
var WROTE_COMMENT = /* @__PURE__ */ new WeakSet();
|
|
1648
|
+
var START_OF_FILE = { start: 0, end: 0 };
|
|
1648
1649
|
var ScriptLang = /* @__PURE__ */ ((ScriptLang2) => {
|
|
1649
1650
|
ScriptLang2["js"] = "js";
|
|
1650
1651
|
ScriptLang2["ts"] = "ts";
|
|
@@ -1875,6 +1876,7 @@ function ${templateName}() {
|
|
|
1875
1876
|
-1
|
|
1876
1877
|
)}>${renderAndReturn};` : `(): () => <${internalInputWithExtends}>${renderAndReturn};`}
|
|
1877
1878
|
}>`;
|
|
1879
|
+
this.#extractor.copy(START_OF_FILE);
|
|
1878
1880
|
if (this.#scriptLang === "ts" /* ts */) {
|
|
1879
1881
|
this.#extractor.write(`export default new (
|
|
1880
1882
|
class Template extends ${templateOverrideClass} {}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-tools",
|
|
3
3
|
"description": "Marko Language Tools",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.10",
|
|
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.6",
|
|
12
12
|
"htmljs-parser": "^5.5.1",
|
|
13
|
+
"strip-json-comments": "^3.1.1",
|
|
13
14
|
"relative-import-path": "^1.0.0"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"@types/babel__code-frame": "^7.0.6",
|
|
20
21
|
"@types/babel__helper-validator-identifier": "^7.15.2",
|
|
21
22
|
"@typescript/vfs": "^1.5.0",
|
|
22
|
-
"marko": "^5.32.
|
|
23
|
+
"marko": "^5.32.1",
|
|
23
24
|
"mitata": "^0.1.6",
|
|
24
25
|
"tsx": "^4.6.2"
|
|
25
26
|
},
|