vue-inbrowser-compiler-utils
Advanced tools
Comparing version 4.43.0 to 4.43.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [4.43.1](https://github.com/vue-styleguidist/vue-styleguidist/compare/v4.43.0...v4.43.1) (2021-12-23) | ||
**Note:** Version bump only for package vue-inbrowser-compiler-utils | ||
# [4.43.0](https://github.com/vue-styleguidist/vue-styleguidist/compare/v4.42.0...v4.43.0) (2021-11-21) | ||
@@ -8,0 +16,0 @@ |
@@ -44,3 +44,3 @@ 'use strict'; | ||
var _a = part.split(/:{1,2}/), main = _a[0], rest = _a.slice(1); | ||
var pseudo = rest.map(function (piece) { return ":" + piece; }).join(''); | ||
var pseudo = rest.map(function (piece) { return ":".concat(piece); }).join(''); | ||
return main + suffix + pseudo; | ||
@@ -69,3 +69,3 @@ }).join(' '); | ||
newstyle.dataset.cssscoper = 'true'; | ||
var csses = scoper(css, "[data-" + suffix + "]"); | ||
var csses = scoper(css, "[data-".concat(suffix, "]")); | ||
var styleany = newstyle; | ||
@@ -179,3 +179,3 @@ if (styleany.styleSheet) { | ||
var value = attrsIn[name]; | ||
var ccName = camelCase__default['default'](name); | ||
var ccName = camelCase__default["default"](name); | ||
if (rootAttributes.indexOf(ccName) > 0) { | ||
@@ -231,3 +231,3 @@ attrsOut[ccName] = value; | ||
var partsRE = PARTS.reduce(function (ret, part) { | ||
ret[part] = new RegExp("<" + part + "[^>]*>((.|\\n|\\r)+)</" + part + ">", 'g'); | ||
ret[part] = new RegExp("<".concat(part, "[^>]*>((.|\\n|\\r)+)</").concat(part, ">"), 'g'); | ||
return ret; | ||
@@ -351,8 +351,8 @@ }, {}); | ||
.map(function (p) { | ||
return " " + (!p || !p.type || p.type.name === 'string' ? '' : ':') + p.name + "=\"" + getDefault(p) + "\""; | ||
return " ".concat(!p || !p.type || p.type.name === 'string' ? '' : ':').concat(p.name, "=\"").concat(getDefault(p), "\""); | ||
}) | ||
: []; | ||
return "<" + cleanedName + propsAttr.join(' ') + (!slots || !slots.filter(function (s) { return s.name === 'default'; }) | ||
return "<".concat(cleanedName).concat(propsAttr.join(' ')).concat(!slots || !slots.filter(function (s) { return s.name === 'default'; }) | ||
? ' />' | ||
: ">" + getDefaultText() + "</" + cleanedName + ">"); | ||
: ">".concat(getDefaultText(), "</").concat(cleanedName, ">")); | ||
}); | ||
@@ -359,0 +359,0 @@ |
@@ -36,3 +36,3 @@ import camelCase from 'camelcase'; | ||
var _a = part.split(/:{1,2}/), main = _a[0], rest = _a.slice(1); | ||
var pseudo = rest.map(function (piece) { return ":" + piece; }).join(''); | ||
var pseudo = rest.map(function (piece) { return ":".concat(piece); }).join(''); | ||
return main + suffix + pseudo; | ||
@@ -61,3 +61,3 @@ }).join(' '); | ||
newstyle.dataset.cssscoper = 'true'; | ||
var csses = scoper(css, "[data-" + suffix + "]"); | ||
var csses = scoper(css, "[data-".concat(suffix, "]")); | ||
var styleany = newstyle; | ||
@@ -222,3 +222,3 @@ if (styleany.styleSheet) { | ||
var partsRE = PARTS.reduce(function (ret, part) { | ||
ret[part] = new RegExp("<" + part + "[^>]*>((.|\\n|\\r)+)</" + part + ">", 'g'); | ||
ret[part] = new RegExp("<".concat(part, "[^>]*>((.|\\n|\\r)+)</").concat(part, ">"), 'g'); | ||
return ret; | ||
@@ -342,10 +342,10 @@ }, {}); | ||
.map(function (p) { | ||
return " " + (!p || !p.type || p.type.name === 'string' ? '' : ':') + p.name + "=\"" + getDefault(p) + "\""; | ||
return " ".concat(!p || !p.type || p.type.name === 'string' ? '' : ':').concat(p.name, "=\"").concat(getDefault(p), "\""); | ||
}) | ||
: []; | ||
return "<" + cleanedName + propsAttr.join(' ') + (!slots || !slots.filter(function (s) { return s.name === 'default'; }) | ||
return "<".concat(cleanedName).concat(propsAttr.join(' ')).concat(!slots || !slots.filter(function (s) { return s.name === 'default'; }) | ||
? ' />' | ||
: ">" + getDefaultText() + "</" + cleanedName + ">"); | ||
: ">".concat(getDefaultText(), "</").concat(cleanedName, ">")); | ||
}); | ||
export { adaptCreateElement, addScopedStyle, cleanName, concatenate, getDefaultExample, isCodeVueSfc, parseComponent }; |
{ | ||
"name": "vue-inbrowser-compiler-utils", | ||
"version": "4.43.0", | ||
"version": "4.43.1", | ||
"description": "use this with vue-inbrowser-compiler to allow jsx compilation", | ||
@@ -28,3 +28,3 @@ "module": "lib/vue-inbrowser-compiler-utils.esm.js", | ||
"@types/domhandler": "2.4.2", | ||
"rollup": "2.56.3", | ||
"rollup": "2.61.1", | ||
"vue": "2.6.14" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "8cc3f87b40979e539f1b44bcf7e2bd268b6548ae" | ||
"gitHead": "7397cd17fc0ebaebaafce8d117b5738b241f228e" | ||
} |
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
61693