@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.cjs.js
CHANGED
|
@@ -384,10 +384,13 @@ function trackTargetForMutationLogging(key, target) {
|
|
|
384
384
|
// Track only own property names and symbols (including non-enumerated)
|
|
385
385
|
// This is consistent with what observable-membrane does:
|
|
386
386
|
// https://github.com/salesforce/observable-membrane/blob/b85417f/src/base-handler.ts#L142-L143
|
|
387
|
-
|
|
388
|
-
for (const prop of
|
|
387
|
+
// Note this code path is very hot, hence doing two separate for-loops rather than creating a new array.
|
|
388
|
+
for (const prop of shared.getOwnPropertyNames(target)) {
|
|
389
389
|
trackTargetForMutationLogging(`${shared.toString(key)}.${shared.toString(prop)}`, target[prop]);
|
|
390
390
|
}
|
|
391
|
+
for (const prop of shared.getOwnPropertySymbols(target)) {
|
|
392
|
+
trackTargetForMutationLogging(`${shared.toString(key)}[${shared.toString(prop)}]`, target[prop]);
|
|
393
|
+
}
|
|
391
394
|
}
|
|
392
395
|
}
|
|
393
396
|
}
|
|
@@ -5937,7 +5940,7 @@ function getMutationProperties(mutationLogs) {
|
|
|
5937
5940
|
const usePlural = tagNames.length > 1 || tagNamesToIdsAndProps.get(tagNames[0]).ids.size > 1;
|
|
5938
5941
|
const result = [
|
|
5939
5942
|
[
|
|
5940
|
-
`
|
|
5943
|
+
`Component${usePlural ? 's' : ''}`,
|
|
5941
5944
|
shared.ArrayJoin.call(shared.ArrayMap.call(tagNames, (_) => tagNamesToDisplayTagNames.get(_)), ', '),
|
|
5942
5945
|
],
|
|
5943
5946
|
];
|
|
@@ -6021,8 +6024,7 @@ function logGlobalOperationEnd(opId, mutationLogs) {
|
|
|
6021
6024
|
const opName = getOperationName(opId);
|
|
6022
6025
|
const markName = opName;
|
|
6023
6026
|
end(opName, markName, {
|
|
6024
|
-
|
|
6025
|
-
color: 'error',
|
|
6027
|
+
color: 'tertiary',
|
|
6026
6028
|
tooltipText: getTooltipText(opName, opId),
|
|
6027
6029
|
properties: getMutationProperties(mutationLogs),
|
|
6028
6030
|
});
|
|
@@ -8394,5 +8396,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
8394
8396
|
exports.track = track;
|
|
8395
8397
|
exports.unwrap = unwrap;
|
|
8396
8398
|
exports.wire = wire;
|
|
8397
|
-
/** version: 8.1.0-alpha.
|
|
8399
|
+
/** version: 8.1.0-alpha.4 */
|
|
8398
8400
|
//# sourceMappingURL=index.cjs.js.map
|