@marko/compiler 5.38.4 → 5.38.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;exports.getMarkoFile = getMarkoFile;var _traverse = require("@babel/traverse");
|
|
1
|
+
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;exports.getMarkoFile = getMarkoFile;var _traverse = _interopRequireDefault(require("@babel/traverse"));
|
|
2
2
|
var _babelUtils = require("@marko/babel-utils");
|
|
3
3
|
var _crypto = require("crypto");
|
|
4
4
|
var _path = _interopRequireDefault(require("path"));
|
|
@@ -358,27 +358,23 @@ function mergeVisitors(all) {
|
|
|
358
358
|
if (all.length === 1) {
|
|
359
359
|
all = all[0];
|
|
360
360
|
} else {
|
|
361
|
-
return _traverse.visitors.merge(all);
|
|
361
|
+
return _traverse.default.visitors.merge(all);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
return _traverse.visitors.explode(all);
|
|
365
|
+
return _traverse.default.visitors.explode(all);
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
function traverseAll(file, visitors) {
|
|
369
369
|
const program = file.path;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
if (Program && Program.exit) {
|
|
379
|
-
program._call(Program.exit);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
370
|
+
(0, _traverse.default)(
|
|
371
|
+
program.node,
|
|
372
|
+
mergeVisitors(visitors),
|
|
373
|
+
program.scope,
|
|
374
|
+
program.state = {},
|
|
375
|
+
program,
|
|
376
|
+
true
|
|
377
|
+
);
|
|
382
378
|
}
|
|
383
379
|
|
|
384
380
|
function addPlugin(meta, arr, plugin) {
|
|
@@ -136,7 +136,7 @@ Object.assign(_printer.default.prototype, {
|
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
MarkoTagBody(node) {
|
|
139
|
-
this.printSequence(node.body,
|
|
139
|
+
this.printSequence(node.body, true);
|
|
140
140
|
},
|
|
141
141
|
MarkoTag(node) {
|
|
142
142
|
const isDynamicTag = !t.isStringLiteral(node.name);
|
|
@@ -216,7 +216,7 @@ Object.assign(_printer.default.prototype, {
|
|
|
216
216
|
this.token(" ");
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
this.printJoin(attributes,
|
|
219
|
+
this.printJoin(attributes, undefined, undefined, spaceSeparator);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
|
|
@@ -230,9 +230,7 @@ Object.assign(_printer.default.prototype, {
|
|
|
230
230
|
} else {
|
|
231
231
|
this.token(">");
|
|
232
232
|
this.newline();
|
|
233
|
-
this.printSequence(bodyOverride || zipAttributeTagsAndBody(node),
|
|
234
|
-
indent: true
|
|
235
|
-
});
|
|
233
|
+
this.printSequence(bodyOverride || zipAttributeTagsAndBody(node), true);
|
|
236
234
|
this.token("</");
|
|
237
235
|
if (!isDynamicTag) {
|
|
238
236
|
this.token(tagName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.38.
|
|
3
|
+
"version": "5.38.5",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -57,20 +57,20 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/code-frame": "^7.26.2",
|
|
59
59
|
"@babel/core": "^7.26.0",
|
|
60
|
-
"@babel/generator": "^7.26.
|
|
61
|
-
"@babel/parser": "^7.26.
|
|
60
|
+
"@babel/generator": "^7.26.3",
|
|
61
|
+
"@babel/parser": "^7.26.3",
|
|
62
62
|
"@babel/plugin-syntax-typescript": "^7.25.9",
|
|
63
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
64
|
-
"@babel/plugin-transform-typescript": "^7.
|
|
63
|
+
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
64
|
+
"@babel/plugin-transform-typescript": "^7.26.3",
|
|
65
65
|
"@babel/runtime": "^7.26.0",
|
|
66
|
-
"@babel/traverse": "^7.
|
|
67
|
-
"@babel/types": "^7.26.
|
|
66
|
+
"@babel/traverse": "^7.26.4",
|
|
67
|
+
"@babel/types": "^7.26.3",
|
|
68
68
|
"@luxass/strip-json-comments": "^1.3.2",
|
|
69
|
-
"@marko/babel-utils": "^6.6.
|
|
69
|
+
"@marko/babel-utils": "^6.6.3",
|
|
70
70
|
"complain": "^1.6.1",
|
|
71
71
|
"he": "^1.2.0",
|
|
72
|
-
"htmljs-parser": "^5.5.
|
|
73
|
-
"jsesc": "^3.0
|
|
72
|
+
"htmljs-parser": "^5.5.3",
|
|
73
|
+
"jsesc": "^3.1.0",
|
|
74
74
|
"kleur": "^4.1.5",
|
|
75
75
|
"lasso-package-root": "^1.0.1",
|
|
76
76
|
"raptor-regexp": "^1.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"source-map-support": "^0.5.21"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@marko/translator-default": "^6.1.
|
|
83
|
+
"@marko/translator-default": "^6.1.3"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|