@marko/compiler 5.37.5 → 5.37.6

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,6 +6,7 @@
6
6
 
7
7
 
8
8
 
9
+
9
10
  const valueFieldCommon = {
10
11
  value: {
11
12
  validate: (0, _utils.assertValueType)("string")
@@ -87,7 +88,7 @@ const MarkoDefinitions = {
87
88
  default: false
88
89
  },
89
90
  target: {
90
- validate: (0, _utils.assertValueType)("string"),
91
+ validate: (0, _utils.assertOneOf)("server", "client"),
91
92
  optional: true
92
93
  }
93
94
  }
package/dist/types.d.ts CHANGED
@@ -1706,7 +1706,7 @@ export interface MarkoScriptlet extends BaseNode {
1706
1706
  type: "MarkoScriptlet";
1707
1707
  body: Array<Statement>;
1708
1708
  static: boolean;
1709
- target: string | null;
1709
+ target: "server" | "client" | null;
1710
1710
  }
1711
1711
 
1712
1712
  export interface MarkoClass extends BaseNode {
@@ -2134,7 +2134,7 @@ export function markoCDATA(value: string): MarkoCDATA;
2134
2134
  export function markoComment(value: string): MarkoComment;
2135
2135
  export function markoText(value: string): MarkoText;
2136
2136
  export function markoPlaceholder(value: Expression, escape?: boolean): MarkoPlaceholder;
2137
- export function markoScriptlet(body: Array<Statement>, _static?: boolean, target?: string | null): MarkoScriptlet;
2137
+ export function markoScriptlet(body: Array<Statement>, _static?: boolean, target?: "server" | "client" | null): MarkoScriptlet;
2138
2138
  export function markoClass(body: ClassBody): MarkoClass;
2139
2139
  export function markoAttribute(name: string, value: Expression, modifier?: string | null, _arguments?: Array<Expression | SpreadElement> | null, _default?: boolean | null, bound?: boolean | null): MarkoAttribute;
2140
2140
  export function markoSpreadAttribute(value: Expression): MarkoSpreadAttribute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
- "version": "5.37.5",
3
+ "version": "5.37.6",
4
4
  "description": "Marko template to JS compiler.",
5
5
  "keywords": [
6
6
  "babel",
@@ -66,7 +66,7 @@
66
66
  "@babel/traverse": "^7.25.3",
67
67
  "@babel/types": "^7.25.2",
68
68
  "@luxass/strip-json-comments": "^1.3.2",
69
- "@marko/babel-utils": "^6.5.2",
69
+ "@marko/babel-utils": "^6.5.3",
70
70
  "complain": "^1.6.0",
71
71
  "he": "^1.2.0",
72
72
  "htmljs-parser": "^5.5.2",
@@ -80,7 +80,7 @@
80
80
  "source-map-support": "^0.5.21"
81
81
  },
82
82
  "devDependencies": {
83
- "@marko/translator-default": "^6.0.7"
83
+ "@marko/translator-default": "^6.0.8"
84
84
  },
85
85
  "publishConfig": {
86
86
  "access": "public"