marko 5.37.41 → 5.37.43
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/translator/taglib/core/parse-class.js +1 -5
- package/dist/translator/taglib/core/parse-export.js +1 -4
- package/dist/translator/taglib/core/parse-import.js +1 -4
- package/dist/translator/taglib/core/parse-static.js +2 -2
- package/package.json +3 -3
- package/src/translator/taglib/core/parse-class.js +1 -5
- package/src/translator/taglib/core/parse-export.js +1 -4
- package/src/translator/taglib/core/parse-import.js +1 -4
- package/src/translator/taglib/core/parse-static.js +2 -2
@@ -5,10 +5,7 @@ function _default(path) {
|
|
5
5
|
node,
|
6
6
|
hub: { file }
|
7
7
|
} = path;
|
8
|
-
const {
|
9
|
-
rawValue,
|
10
|
-
name: { start, end }
|
11
|
-
} = node;
|
8
|
+
const { rawValue, start, end } = node;
|
12
9
|
const [exportNode] = (0, _babelUtils.parseStatements)(file, rawValue, start, end);
|
13
10
|
path.replaceWith(exportNode);
|
14
11
|
}
|
@@ -5,10 +5,7 @@ function _default(path) {
|
|
5
5
|
node,
|
6
6
|
hub: { file }
|
7
7
|
} = path;
|
8
|
-
const {
|
9
|
-
rawValue,
|
10
|
-
name: { start, end }
|
11
|
-
} = node;
|
8
|
+
const { rawValue, start, end } = node;
|
12
9
|
const [importNode] = (0, _babelUtils.parseStatements)(file, rawValue, start, end);
|
13
10
|
path.replaceWith(importNode);
|
14
11
|
}
|
@@ -7,8 +7,8 @@ function _default(path) {
|
|
7
7
|
hub: { file }
|
8
8
|
} = path;
|
9
9
|
const { rawValue, end } = node;
|
10
|
-
const code = rawValue.replace(/^static\s*/, "")
|
11
|
-
const start = node.
|
10
|
+
const code = rawValue.replace(/^static\s*/, "");
|
11
|
+
const start = node.start + (rawValue.length - code.length);
|
12
12
|
let body = (0, _babelUtils.parseStatements)(file, code, start, end);
|
13
13
|
if (body.length === 1 && _compiler.types.isBlockStatement(body[0])) {
|
14
14
|
body = body[0].body;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "5.37.
|
3
|
+
"version": "5.37.43",
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
5
5
|
"keywords": [
|
6
6
|
"front-end",
|
@@ -69,8 +69,8 @@
|
|
69
69
|
"build": "babel ./src --out-dir ./dist --extensions .js --copy-files --config-file ../../babel.config.js --env-name=production"
|
70
70
|
},
|
71
71
|
"dependencies": {
|
72
|
-
"@babel/runtime": "^7.
|
73
|
-
"@marko/compiler": "^5.39.
|
72
|
+
"@babel/runtime": "^7.28.2",
|
73
|
+
"@marko/compiler": "^5.39.32",
|
74
74
|
"app-module-path": "^2.2.0",
|
75
75
|
"argly": "^1.2.0",
|
76
76
|
"browser-refresh-client": "1.1.4",
|
@@ -12,11 +12,7 @@ export default function (path) {
|
|
12
12
|
node,
|
13
13
|
hub: { file },
|
14
14
|
} = path;
|
15
|
-
const {
|
16
|
-
rawValue: code,
|
17
|
-
name: { start },
|
18
|
-
end,
|
19
|
-
} = node;
|
15
|
+
const { rawValue: code, start, end } = node;
|
20
16
|
const meta = file.metadata.marko;
|
21
17
|
|
22
18
|
if (meta.hasComponent) {
|
@@ -5,10 +5,7 @@ export default function (path) {
|
|
5
5
|
node,
|
6
6
|
hub: { file },
|
7
7
|
} = path;
|
8
|
-
const {
|
9
|
-
rawValue,
|
10
|
-
name: { start, end },
|
11
|
-
} = node;
|
8
|
+
const { rawValue, start, end } = node;
|
12
9
|
const [exportNode] = parseStatements(file, rawValue, start, end);
|
13
10
|
path.replaceWith(exportNode);
|
14
11
|
}
|
@@ -5,10 +5,7 @@ export default function (path) {
|
|
5
5
|
node,
|
6
6
|
hub: { file },
|
7
7
|
} = path;
|
8
|
-
const {
|
9
|
-
rawValue,
|
10
|
-
name: { start, end },
|
11
|
-
} = node;
|
8
|
+
const { rawValue, start, end } = node;
|
12
9
|
const [importNode] = parseStatements(file, rawValue, start, end);
|
13
10
|
path.replaceWith(importNode);
|
14
11
|
}
|
@@ -7,8 +7,8 @@ export default function (path) {
|
|
7
7
|
hub: { file },
|
8
8
|
} = path;
|
9
9
|
const { rawValue, end } = node;
|
10
|
-
const code = rawValue.replace(/^static\s*/, "")
|
11
|
-
const start = node.
|
10
|
+
const code = rawValue.replace(/^static\s*/, "");
|
11
|
+
const start = node.start + (rawValue.length - code.length);
|
12
12
|
let body = parseStatements(file, code, start, end);
|
13
13
|
if (body.length === 1 && t.isBlockStatement(body[0])) {
|
14
14
|
body = body[0].body;
|