@marko/compiler 5.39.64 → 5.39.66
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/babel-plugin/parser.js +10 -0
- package/dist/babel.js +2 -1
- package/dist/babel.web.js +2 -1
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
|
@@ -629,6 +629,16 @@ function parseMarko(file) {
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
if (isControlFlow) {
|
|
632
|
+
if (!parentTag) {
|
|
633
|
+
onNext();
|
|
634
|
+
throw file.buildCodeFrameError(
|
|
635
|
+
attributeTags.find(
|
|
636
|
+
(child) => _babel.types.isMarkoTag(child) && isAttrTag(child)
|
|
637
|
+
)?.name || node.name,
|
|
638
|
+
"@tags must be nested within another element."
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
632
642
|
currentTag.remove();
|
|
633
643
|
parentTag.pushContainer("attributeTags", node);
|
|
634
644
|
}
|
package/dist/babel.js
CHANGED
package/dist/babel.web.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1812,7 +1812,8 @@ type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression |
|
|
|
1812
1812
|
type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | ImportExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSInstantiationExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression
|
|
1813
1813
|
| MarkoParseError;
|
|
1814
1814
|
type Binary = BinaryExpression | LogicalExpression;
|
|
1815
|
-
type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock
|
|
1815
|
+
type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock
|
|
1816
|
+
| MarkoTagBody;
|
|
1816
1817
|
type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock
|
|
1817
1818
|
| MarkoTagBody;
|
|
1818
1819
|
type Block = BlockStatement | Program | TSModuleBlock;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.39.
|
|
3
|
+
"version": "5.39.66",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"source-map-support": "^0.5.21"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"marko": "^5.39.
|
|
86
|
+
"marko": "^5.39.11"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": "18 || 20 || >=22"
|