@marko/compiler
Advanced tools
Comparing version 5.37.14 to 5.37.15
@@ -9,3 +9,2 @@ "use strict";exports.__esModule = true;exports.default = exports.MARKO_TYPES = exports.MARKO_ALIAS_TYPES = void 0;var _utils = require("@babel/types/lib/definitions/utils"); | ||
const valueFieldCommon = { | ||
@@ -85,3 +84,3 @@ value: { | ||
body: { | ||
validate: (0, _utils.arrayOfType)(["Statement"]) | ||
validate: arrayOfType(["Statement"]) | ||
}, | ||
@@ -171,3 +170,3 @@ static: { | ||
body: { | ||
validate: (0, _utils.arrayOfType)([ | ||
validate: arrayOfType([ | ||
"MarkoTag", | ||
@@ -201,3 +200,3 @@ "MarkoCDATA", | ||
attributes: { | ||
validate: (0, _utils.arrayOfType)(["MarkoAttribute", "MarkoSpreadAttribute"]), | ||
validate: arrayOfType(["MarkoAttribute", "MarkoSpreadAttribute"]), | ||
default: [] | ||
@@ -237,2 +236,8 @@ }, | ||
) | ||
); | ||
); | ||
// Note this is inline because a change in babel caused a regression with this api. | ||
// TODO: we should not rely on babels validators or builders. | ||
function arrayOfType(types) { | ||
return (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)(...types))); | ||
} |
{ | ||
"name": "@marko/compiler", | ||
"version": "5.37.14", | ||
"version": "5.37.15", | ||
"description": "Marko template to JS compiler.", | ||
@@ -69,3 +69,3 @@ "keywords": [ | ||
"@luxass/strip-json-comments": "^1.3.2", | ||
"@marko/babel-utils": "^6.5.6", | ||
"@marko/babel-utils": "^6.5.7", | ||
"complain": "^1.6.0", | ||
@@ -84,3 +84,3 @@ "he": "^1.2.0", | ||
"devDependencies": { | ||
"@marko/translator-default": "^6.0.15" | ||
"@marko/translator-default": "^6.0.16" | ||
}, | ||
@@ -87,0 +87,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
462765
10800
Updated@marko/babel-utils@^6.5.7