@marko/compiler 5.27.8 → 5.27.10

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/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- const Config: {
1
+ declare const Config: {
2
2
  output?: "html" | "dom" | "hydrate" | "migrate" | "source";
3
3
  stripTypes?: boolean;
4
4
  runtimeId?: string | null;
@@ -13,7 +13,7 @@ const Config: {
13
13
  resolveVirtualDependency?:
14
14
  | ((
15
15
  filename: string,
16
- dep: { virtualPath: string; code: string; map?: SourceMap }
16
+ dep: { virtualPath: string; code: string; map?: any }
17
17
  ) => string)
18
18
  | null;
19
19
  hydrateIncludeImports?: RegExp | ((request: string) => boolean);
@@ -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
- ..._core.functionCommon.params,
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: array;
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?: array): MarkoTagBody;
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.8",
4
+ "version": "5.27.10",
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": {