@lwc/engine-core 7.2.4 → 7.2.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.
- package/dist/index.cjs.js +10 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5852,6 +5852,12 @@ function getVMBeingRendered() {
|
|
|
5852
5852
|
function setVMBeingRendered(vm) {
|
|
5853
5853
|
vmBeingRendered = vm;
|
|
5854
5854
|
}
|
|
5855
|
+
const VALID_SCOPE_TOKEN_REGEX = /^[a-zA-Z0-9\-_.]+$/;
|
|
5856
|
+
// See W-16614556
|
|
5857
|
+
// TODO [#2826]: freeze the template object
|
|
5858
|
+
function isValidScopeToken(token) {
|
|
5859
|
+
return isString(token) && VALID_SCOPE_TOKEN_REGEX.test(token);
|
|
5860
|
+
}
|
|
5855
5861
|
function validateSlots(vm) {
|
|
5856
5862
|
assertNotProd(); // this method should never leak to prod
|
|
5857
5863
|
const { cmpSlots } = vm;
|
|
@@ -6004,9 +6010,9 @@ function buildParseFragmentFn(createFragmentFn) {
|
|
|
6004
6010
|
}
|
|
6005
6011
|
}
|
|
6006
6012
|
// See W-16614556
|
|
6007
|
-
if ((hasStyleToken && !
|
|
6008
|
-
(hasLegacyToken && !
|
|
6009
|
-
throw new Error('stylesheet token must be a string');
|
|
6013
|
+
if ((hasStyleToken && !isValidScopeToken(stylesheetToken)) ||
|
|
6014
|
+
(hasLegacyToken && !isValidScopeToken(legacyStylesheetToken))) {
|
|
6015
|
+
throw new Error('stylesheet token must be a valid string');
|
|
6010
6016
|
}
|
|
6011
6017
|
// If legacy stylesheet tokens are required, then add them to the rendered string
|
|
6012
6018
|
const stylesheetTokenToRender = stylesheetToken + (hasLegacyToken ? ` ${legacyStylesheetToken}` : '');
|
|
@@ -8087,5 +8093,5 @@ function readonly(obj) {
|
|
|
8087
8093
|
}
|
|
8088
8094
|
|
|
8089
8095
|
export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, setHooks, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
8090
|
-
/** version: 7.2.
|
|
8096
|
+
/** version: 7.2.6 */
|
|
8091
8097
|
//# sourceMappingURL=index.js.map
|