@marko/translator-default 5.20.8 → 5.21.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cdata/index.js +1 -2
- package/dist/cdata/index[html].js +1 -2
- package/dist/cdata/index[vdom].js +1 -2
- package/dist/class.js +1 -2
- package/dist/comment/index.js +1 -2
- package/dist/comment/index[html].js +1 -2
- package/dist/comment/index[vdom].js +1 -2
- package/dist/declaration/index.js +1 -2
- package/dist/declaration/index[html].js +1 -2
- package/dist/declaration/index[vdom].js +1 -2
- package/dist/document-type/index.js +1 -2
- package/dist/document-type/index[html].js +1 -2
- package/dist/document-type/index[vdom].js +1 -2
- package/dist/index.js +1 -2
- package/dist/placeholder/index.js +1 -2
- package/dist/placeholder/index[html].js +1 -2
- package/dist/placeholder/index[vdom].js +1 -2
- package/dist/scriptlet.js +1 -2
- package/dist/tag/attribute/directives/class.js +1 -2
- package/dist/tag/attribute/directives/index.js +1 -2
- package/dist/tag/attribute/directives/no-update-body-if.js +1 -2
- package/dist/tag/attribute/directives/no-update-body.js +1 -2
- package/dist/tag/attribute/directives/no-update-if.js +1 -2
- package/dist/tag/attribute/directives/no-update.js +1 -2
- package/dist/tag/attribute/directives/style.js +1 -2
- package/dist/tag/attribute/index.js +1 -2
- package/dist/tag/attribute/modifiers/index.js +1 -2
- package/dist/tag/attribute/modifiers/no-update.js +1 -2
- package/dist/tag/attribute/modifiers/scoped.js +1 -2
- package/dist/tag/attribute-tag.js +1 -2
- package/dist/tag/custom-tag.js +1 -2
- package/dist/tag/dynamic-tag.js +1 -2
- package/dist/tag/index.js +1 -2
- package/dist/tag/macro-tag.js +1 -2
- package/dist/tag/native-tag.js +1 -2
- package/dist/tag/native-tag[html]/attributes.js +1 -2
- package/dist/tag/native-tag[html]/index.js +1 -2
- package/dist/tag/native-tag[vdom]/index.js +1 -2
- package/dist/tag/util.js +1 -2
- package/dist/taglib/core/conditional/translate-else-if.js +1 -2
- package/dist/taglib/core/conditional/translate-else.js +1 -2
- package/dist/taglib/core/conditional/translate-if.js +1 -2
- package/dist/taglib/core/conditional/util.js +1 -2
- package/dist/taglib/core/index.js +11 -26
- package/dist/taglib/core/macro/parse.js +1 -2
- package/dist/taglib/core/macro/translate.js +1 -2
- package/dist/taglib/core/parse-class.js +2 -3
- package/dist/taglib/core/parse-export.js +1 -2
- package/dist/taglib/core/parse-import.js +1 -2
- package/dist/taglib/core/parse-module-code.js +1 -2
- package/dist/taglib/core/parse-static.js +1 -2
- package/dist/taglib/core/parse-style.js +1 -2
- package/dist/taglib/core/transform-style.js +1 -2
- package/dist/taglib/core/translate-await.js +1 -2
- package/dist/taglib/core/translate-body.js +1 -2
- package/dist/taglib/core/translate-for.js +1 -2
- package/dist/taglib/core/translate-html-comment.js +1 -2
- package/dist/taglib/core/translate-include-content.js +1 -2
- package/dist/taglib/core/translate-server-only.js +1 -2
- package/dist/taglib/core/translate-while.js +1 -2
- package/dist/taglib/index.js +1 -2
- package/dist/taglib/migrate/all-templates.js +1 -2
- package/dist/taglib/migrate/index.js +1 -2
- package/dist/text/index.js +1 -2
- package/dist/text/index[html].js +1 -2
- package/dist/text/index[vdom].js +1 -2
- package/dist/util/add-dependencies.js +1 -2
- package/dist/util/get-component-files.js +1 -2
- package/dist/util/html-out-write.js +1 -2
- package/dist/util/key-manager.js +1 -2
- package/dist/util/optimize-html-writes.js +1 -2
- package/dist/util/optimize-vdom-create.js +1 -2
- package/dist/util/plugin-hooks.js +1 -2
- package/dist/util/runtime-flags.js +1 -2
- package/dist/util/vdom-out-write.js +1 -2
- package/dist/util/with-previous-location.js +1 -2
- package/package.json +5 -6
- package/LICENSE +0 -21
- package/dist/cdata/index.js.map +0 -1
- package/dist/cdata/index[html].js.map +0 -1
- package/dist/cdata/index[vdom].js.map +0 -1
- package/dist/class.js.map +0 -1
- package/dist/comment/index.js.map +0 -1
- package/dist/comment/index[html].js.map +0 -1
- package/dist/comment/index[vdom].js.map +0 -1
- package/dist/declaration/index.js.map +0 -1
- package/dist/declaration/index[html].js.map +0 -1
- package/dist/declaration/index[vdom].js.map +0 -1
- package/dist/document-type/index.js.map +0 -1
- package/dist/document-type/index[html].js.map +0 -1
- package/dist/document-type/index[vdom].js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/placeholder/index.js.map +0 -1
- package/dist/placeholder/index[html].js.map +0 -1
- package/dist/placeholder/index[vdom].js.map +0 -1
- package/dist/scriptlet.js.map +0 -1
- package/dist/tag/attribute/directives/class.js.map +0 -1
- package/dist/tag/attribute/directives/index.js.map +0 -1
- package/dist/tag/attribute/directives/no-update-body-if.js.map +0 -1
- package/dist/tag/attribute/directives/no-update-body.js.map +0 -1
- package/dist/tag/attribute/directives/no-update-if.js.map +0 -1
- package/dist/tag/attribute/directives/no-update.js.map +0 -1
- package/dist/tag/attribute/directives/style.js.map +0 -1
- package/dist/tag/attribute/index.js.map +0 -1
- package/dist/tag/attribute/modifiers/index.js.map +0 -1
- package/dist/tag/attribute/modifiers/no-update.js.map +0 -1
- package/dist/tag/attribute/modifiers/scoped.js.map +0 -1
- package/dist/tag/attribute-tag.js.map +0 -1
- package/dist/tag/custom-tag.js.map +0 -1
- package/dist/tag/dynamic-tag.js.map +0 -1
- package/dist/tag/index.js.map +0 -1
- package/dist/tag/macro-tag.js.map +0 -1
- package/dist/tag/native-tag.js.map +0 -1
- package/dist/tag/native-tag[html]/attributes.js.map +0 -1
- package/dist/tag/native-tag[html]/index.js.map +0 -1
- package/dist/tag/native-tag[vdom]/index.js.map +0 -1
- package/dist/tag/util.js.map +0 -1
- package/dist/taglib/core/conditional/translate-else-if.js.map +0 -1
- package/dist/taglib/core/conditional/translate-else.js.map +0 -1
- package/dist/taglib/core/conditional/translate-if.js.map +0 -1
- package/dist/taglib/core/conditional/util.js.map +0 -1
- package/dist/taglib/core/index.js.map +0 -1
- package/dist/taglib/core/macro/parse.js.map +0 -1
- package/dist/taglib/core/macro/translate.js.map +0 -1
- package/dist/taglib/core/parse-class.js.map +0 -1
- package/dist/taglib/core/parse-export.js.map +0 -1
- package/dist/taglib/core/parse-import.js.map +0 -1
- package/dist/taglib/core/parse-module-code.js.map +0 -1
- package/dist/taglib/core/parse-static.js.map +0 -1
- package/dist/taglib/core/parse-style.js.map +0 -1
- package/dist/taglib/core/transform-style.js.map +0 -1
- package/dist/taglib/core/translate-await.js.map +0 -1
- package/dist/taglib/core/translate-body.js.map +0 -1
- package/dist/taglib/core/translate-for.js.map +0 -1
- package/dist/taglib/core/translate-html-comment.js.map +0 -1
- package/dist/taglib/core/translate-include-content.js.map +0 -1
- package/dist/taglib/core/translate-server-only.js.map +0 -1
- package/dist/taglib/core/translate-while.js.map +0 -1
- package/dist/taglib/index.js.map +0 -1
- package/dist/taglib/migrate/all-templates.js.map +0 -1
- package/dist/taglib/migrate/index.js.map +0 -1
- package/dist/text/index.js.map +0 -1
- package/dist/text/index[html].js.map +0 -1
- package/dist/text/index[vdom].js.map +0 -1
- package/dist/util/add-dependencies.js.map +0 -1
- package/dist/util/get-component-files.js.map +0 -1
- package/dist/util/html-out-write.js.map +0 -1
- package/dist/util/key-manager.js.map +0 -1
- package/dist/util/optimize-html-writes.js.map +0 -1
- package/dist/util/optimize-vdom-create.js.map +0 -1
- package/dist/util/plugin-hooks.js.map +0 -1
- package/dist/util/runtime-flags.js.map +0 -1
- package/dist/util/vdom-out-write.js.map +0 -1
- package/dist/util/with-previous-location.js.map +0 -1
package/dist/cdata/index.js
CHANGED
package/dist/class.js
CHANGED
package/dist/comment/index.js
CHANGED
package/dist/index.js
CHANGED
@@ -513,5 +513,4 @@ function resolveRelativeTagEntry(file, tagDef) {
|
|
513
513
|
// TODO: support transform and other entries.
|
514
514
|
const entry = tagDef.template || tagDef.renderer;
|
515
515
|
return entry && (0, _babelUtils.resolveRelativePath)(file, entry);
|
516
|
-
}
|
517
|
-
//# sourceMappingURL=index.js.map
|
516
|
+
}
|
package/dist/scriptlet.js
CHANGED
@@ -11,5 +11,4 @@ var _noUpdateBodyIf = _interopRequireDefault(require("./no-update-body-if"));var
|
|
11
11
|
"no-update": _noUpdate.default,
|
12
12
|
"no-update-if": _noUpdateIf.default,
|
13
13
|
"no-update-body": _noUpdateBody.default,
|
14
|
-
"no-update-body-if": _noUpdateBodyIf.default };exports.default = _default;
|
15
|
-
//# sourceMappingURL=index.js.map
|
14
|
+
"no-update-body-if": _noUpdateBodyIf.default };exports.default = _default;
|
@@ -4,5 +4,4 @@ var _babelUtils = require("@marko/babel-utils");var _default =
|
|
4
4
|
{
|
5
5
|
exit(tag, attr, value) {
|
6
6
|
_noUpdate.default.exit(tag, attr, value, { if: (0, _babelUtils.getArgOrSequence)(attr) });
|
7
|
-
} };exports.default = _default;
|
8
|
-
//# sourceMappingURL=no-update-if.js.map
|
7
|
+
} };exports.default = _default;
|
@@ -3,5 +3,4 @@ var _noUpdate = _interopRequireDefault(require("./no-update"));var _default =
|
|
3
3
|
|
4
4
|
{
|
5
5
|
scoped: _scoped.default,
|
6
|
-
"no-update": _noUpdate.default };exports.default = _default;
|
7
|
-
//# sourceMappingURL=index.js.map
|
6
|
+
"no-update": _noUpdate.default };exports.default = _default;
|
package/dist/tag/custom-tag.js
CHANGED
package/dist/tag/dynamic-tag.js
CHANGED
package/dist/tag/index.js
CHANGED
package/dist/tag/macro-tag.js
CHANGED
package/dist/tag/native-tag.js
CHANGED
package/dist/tag/util.js
CHANGED
@@ -23,11 +23,8 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
23
23
|
"<import>": {
|
24
24
|
"node-factory": parseImport,
|
25
25
|
"parse-options": {
|
26
|
-
|
27
|
-
rawOpenTag: true,
|
28
|
-
openTagOnly: true,
|
29
|
-
ignoreAttributes: true,
|
30
|
-
relaxRequireCommas: true },
|
26
|
+
statement: true,
|
27
|
+
rawOpenTag: true },
|
31
28
|
|
32
29
|
autocomplete: [
|
33
30
|
{
|
@@ -43,11 +40,8 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
43
40
|
"<export>": {
|
44
41
|
"node-factory": parseExport,
|
45
42
|
"parse-options": {
|
46
|
-
|
47
|
-
rawOpenTag: true,
|
48
|
-
openTagOnly: true,
|
49
|
-
ignoreAttributes: true,
|
50
|
-
relaxRequireCommas: true },
|
43
|
+
statement: true,
|
44
|
+
rawOpenTag: true },
|
51
45
|
|
52
46
|
autocomplete: [
|
53
47
|
{
|
@@ -63,10 +57,8 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
63
57
|
"<class>": {
|
64
58
|
"node-factory": parseClass,
|
65
59
|
"parse-options": {
|
66
|
-
|
67
|
-
rawOpenTag: true,
|
68
|
-
openTagOnly: true,
|
69
|
-
ignoreAttributes: true },
|
60
|
+
statement: true,
|
61
|
+
rawOpenTag: true },
|
70
62
|
|
71
63
|
autocomplete: [
|
72
64
|
{
|
@@ -82,10 +74,8 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
82
74
|
"<static>": {
|
83
75
|
"node-factory": parseStatic,
|
84
76
|
"parse-options": {
|
85
|
-
|
86
|
-
rawOpenTag: true,
|
87
|
-
openTagOnly: true,
|
88
|
-
ignoreAttributes: true },
|
77
|
+
statement: true,
|
78
|
+
rawOpenTag: true },
|
89
79
|
|
90
80
|
autocomplete: [
|
91
81
|
{
|
@@ -262,7 +252,7 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
262
252
|
"<html-comment>": {
|
263
253
|
"code-generator": translateHTMLComment,
|
264
254
|
"parse-options": {
|
265
|
-
|
255
|
+
text: true },
|
266
256
|
|
267
257
|
attributes: {},
|
268
258
|
autocomplete: [
|
@@ -390,11 +380,7 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
390
380
|
"<module-code>": {
|
391
381
|
"node-factory": parseModuleCode,
|
392
382
|
"parse-options": {
|
393
|
-
|
394
|
-
rawOpenTag: true,
|
395
|
-
openTagOnly: true,
|
396
|
-
ignoreAttributes: true,
|
397
|
-
relaxRequireCommas: true } },
|
383
|
+
rawOpenTag: true } },
|
398
384
|
|
399
385
|
|
400
386
|
"<*>": {
|
@@ -478,5 +464,4 @@ var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));fu
|
|
478
464
|
{
|
479
465
|
snippet: "no-update-body-if(${1:condition})",
|
480
466
|
descriptionMoreURL:
|
481
|
-
"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render" }] } } };exports.default = _default;
|
482
|
-
//# sourceMappingURL=index.js.map
|
467
|
+
"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render" }] } } };exports.default = _default;
|
@@ -29,7 +29,7 @@ function _default(path) {
|
|
29
29
|
|
30
30
|
}
|
31
31
|
|
32
|
-
const parsed = (0, _babelUtils.parseExpression)(file, code, start);
|
32
|
+
const parsed = (0, _babelUtils.parseExpression)(file, code.replace(/;\s*$/, ""), start);
|
33
33
|
|
34
34
|
if (parsed.id) {
|
35
35
|
throw file.buildCodeFrameError(
|
@@ -57,5 +57,4 @@ function _default(path) {
|
|
57
57
|
|
58
58
|
meta.hasComponent = true;
|
59
59
|
path.replaceWith(_compiler.types.markoClass(parsed.body));
|
60
|
-
}
|
61
|
-
//# sourceMappingURL=parse-class.js.map
|
60
|
+
}
|
package/dist/taglib/index.js
CHANGED
@@ -2,5 +2,4 @@
|
|
2
2
|
var _migrate = _interopRequireDefault(require("./migrate"));var _default =
|
3
3
|
[
|
4
4
|
["marko/core", _core.default],
|
5
|
-
["marko/migrate", _migrate.default]];exports.default = _default;
|
6
|
-
//# sourceMappingURL=index.js.map
|
5
|
+
["marko/migrate", _migrate.default]];exports.default = _default;
|
@@ -6,5 +6,4 @@ var _withPreviousLocation = _interopRequireDefault(require("../../util/with-prev
|
|
6
6
|
if (path.node.name === "data" && !path.scope.hasBinding("data")) {
|
7
7
|
path.replaceWith((0, _withPreviousLocation.default)(_compiler.types.identifier("input"), path.node));
|
8
8
|
}
|
9
|
-
} };exports.default = _default;
|
10
|
-
//# sourceMappingURL=all-templates.js.map
|
9
|
+
} };exports.default = _default;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
"use strict";exports.__esModule = true;exports.default = void 0;var migrateAllTemplates = _interopRequireWildcard(require("./all-templates"));function _getRequireWildcardCache(nodeInterop) {if (typeof WeakMap !== "function") return null;var cacheBabelInterop = new WeakMap();var cacheNodeInterop = new WeakMap();return (_getRequireWildcardCache = function (nodeInterop) {return nodeInterop ? cacheNodeInterop : cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj, nodeInterop) {if (!nodeInterop && obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache(nodeInterop);if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}var _default =
|
2
2
|
{
|
3
3
|
"taglib-id": "marko-default-migrate",
|
4
|
-
migrator: migrateAllTemplates };exports.default = _default;
|
5
|
-
//# sourceMappingURL=index.js.map
|
4
|
+
migrator: migrateAllTemplates };exports.default = _default;
|
package/dist/text/index.js
CHANGED
package/dist/text/index[html].js
CHANGED
package/dist/text/index[vdom].js
CHANGED