@marko/compiler 5.27.8 → 5.27.9
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.
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var _core = require("@babel/types/lib/definitions/core");
|
|
10
9
|
const valueFieldCommon = {
|
|
11
10
|
value: {
|
|
12
11
|
validate: (0, _utils.assertValueType)("string")
|
|
@@ -135,7 +134,10 @@ const MarkoDefinitions = {
|
|
|
135
134
|
visitor: ["params", "body"],
|
|
136
135
|
fields: {
|
|
137
136
|
params: {
|
|
138
|
-
|
|
137
|
+
validate: (0, _utils.chain)(
|
|
138
|
+
(0, _utils.assertValueType)("array"),
|
|
139
|
+
(0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier", "Pattern", "RestElement"))),
|
|
140
|
+
|
|
139
141
|
default: []
|
|
140
142
|
},
|
|
141
143
|
body: {
|
package/dist/types.d.ts
CHANGED
|
@@ -1710,7 +1710,7 @@ export interface MarkoSpreadAttribute extends BaseNode {
|
|
|
1710
1710
|
export interface MarkoTagBody extends BaseNode {
|
|
1711
1711
|
type: "MarkoTagBody";
|
|
1712
1712
|
body: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>;
|
|
1713
|
-
params:
|
|
1713
|
+
params: Array<Identifier | Pattern | RestElement>;
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
1716
1716
|
export interface MarkoTag extends BaseNode {
|
|
@@ -2110,7 +2110,7 @@ export function markoScriptlet(body: Array<Statement>, _static?: boolean): Marko
|
|
|
2110
2110
|
export function markoClass(body: ClassBody): MarkoClass;
|
|
2111
2111
|
export function markoAttribute(name: string, value: Expression, modifier?: string | null, _arguments?: Array<Expression | SpreadElement> | null, _default?: boolean | null, bound?: boolean | null): MarkoAttribute;
|
|
2112
2112
|
export function markoSpreadAttribute(value: Expression): MarkoSpreadAttribute;
|
|
2113
|
-
export function markoTagBody(body?: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>, params?:
|
|
2113
|
+
export function markoTagBody(body?: Array<MarkoTag | MarkoCDATA | MarkoText | MarkoPlaceholder | MarkoScriptlet | MarkoComment>, params?: Array<Identifier | Pattern | RestElement>): MarkoTagBody;
|
|
2114
2114
|
export function markoTag(name: Expression, attributes: Array<MarkoAttribute | MarkoSpreadAttribute> | undefined, body: MarkoTagBody, _arguments?: Array<Expression | SpreadElement> | null, _var?: LVal | null): MarkoTag;
|
|
2115
2115
|
export function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor;
|
|
2116
2116
|
export function assertAccessor(node: object | null | undefined, opts?: object | null): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
3
|
"description": "Marko template to JS compiler.",
|
|
4
|
-
"version": "5.27.
|
|
4
|
+
"version": "5.27.9",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
|
|
7
7
|
"dependencies": {
|