@lwc/engine-core 8.1.0-alpha.3 → 8.1.0-alpha.4
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 +8 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -380,10 +380,13 @@ function trackTargetForMutationLogging(key, target) {
|
|
|
380
380
|
// Track only own property names and symbols (including non-enumerated)
|
|
381
381
|
// This is consistent with what observable-membrane does:
|
|
382
382
|
// https://github.com/salesforce/observable-membrane/blob/b85417f/src/base-handler.ts#L142-L143
|
|
383
|
-
|
|
384
|
-
for (const prop of
|
|
383
|
+
// Note this code path is very hot, hence doing two separate for-loops rather than creating a new array.
|
|
384
|
+
for (const prop of getOwnPropertyNames$1(target)) {
|
|
385
385
|
trackTargetForMutationLogging(`${toString$1(key)}.${toString$1(prop)}`, target[prop]);
|
|
386
386
|
}
|
|
387
|
+
for (const prop of getOwnPropertySymbols$1(target)) {
|
|
388
|
+
trackTargetForMutationLogging(`${toString$1(key)}[${toString$1(prop)}]`, target[prop]);
|
|
389
|
+
}
|
|
387
390
|
}
|
|
388
391
|
}
|
|
389
392
|
}
|
|
@@ -5933,7 +5936,7 @@ function getMutationProperties(mutationLogs) {
|
|
|
5933
5936
|
const usePlural = tagNames.length > 1 || tagNamesToIdsAndProps.get(tagNames[0]).ids.size > 1;
|
|
5934
5937
|
const result = [
|
|
5935
5938
|
[
|
|
5936
|
-
`
|
|
5939
|
+
`Component${usePlural ? 's' : ''}`,
|
|
5937
5940
|
ArrayJoin.call(ArrayMap.call(tagNames, (_) => tagNamesToDisplayTagNames.get(_)), ', '),
|
|
5938
5941
|
],
|
|
5939
5942
|
];
|
|
@@ -6017,8 +6020,7 @@ function logGlobalOperationEnd(opId, mutationLogs) {
|
|
|
6017
6020
|
const opName = getOperationName(opId);
|
|
6018
6021
|
const markName = opName;
|
|
6019
6022
|
end(opName, markName, {
|
|
6020
|
-
|
|
6021
|
-
color: 'error',
|
|
6023
|
+
color: 'tertiary',
|
|
6022
6024
|
tooltipText: getTooltipText(opName, opId),
|
|
6023
6025
|
properties: getMutationProperties(mutationLogs),
|
|
6024
6026
|
});
|
|
@@ -8347,5 +8349,5 @@ function readonly(obj) {
|
|
|
8347
8349
|
}
|
|
8348
8350
|
|
|
8349
8351
|
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 };
|
|
8350
|
-
/** version: 8.1.0-alpha.
|
|
8352
|
+
/** version: 8.1.0-alpha.4 */
|
|
8351
8353
|
//# sourceMappingURL=index.js.map
|