@lwc/signals 8.20.3 → 8.20.5
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 -2
- package/dist/index.js +8 -2
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
@@ -40,12 +40,18 @@ let trustedSignals;
|
|
40
40
|
function setTrustedSignalSet(signals) {
|
41
41
|
isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
|
42
42
|
trustedSignals = signals;
|
43
|
+
// Only used in LWC's Karma. Contained within the set function as there are multiple imports of
|
44
|
+
// this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
|
45
|
+
if (process.env.NODE_ENV === 'test-karma-lwc') {
|
46
|
+
// Used to reset the global state between test runs
|
47
|
+
globalThis.__lwcResetTrustedSignalsSetForTest = () => (trustedSignals = undefined);
|
48
|
+
}
|
43
49
|
}
|
44
50
|
function addTrustedSignal(signal) {
|
45
51
|
// This should be a no-op when the trustedSignals set isn't set by runtime
|
46
52
|
trustedSignals?.add(signal);
|
47
53
|
}
|
48
|
-
/** version: 8.20.
|
54
|
+
/** version: 8.20.5 */
|
49
55
|
|
50
56
|
/*
|
51
57
|
* Copyright (c) 2023, salesforce.com, inc.
|
@@ -75,5 +81,5 @@ class SignalBaseClass {
|
|
75
81
|
|
76
82
|
exports.SignalBaseClass = SignalBaseClass;
|
77
83
|
exports.setTrustedSignalSet = setTrustedSignalSet;
|
78
|
-
/** version: 8.20.
|
84
|
+
/** version: 8.20.5 */
|
79
85
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.js
CHANGED
@@ -36,12 +36,18 @@ let trustedSignals;
|
|
36
36
|
function setTrustedSignalSet(signals) {
|
37
37
|
isFalse$1(trustedSignals, 'Trusted Signal Set is already set!');
|
38
38
|
trustedSignals = signals;
|
39
|
+
// Only used in LWC's Karma. Contained within the set function as there are multiple imports of
|
40
|
+
// this module. Placing it here ensures we reference the import where the trustedSignals set is maintained
|
41
|
+
if (process.env.NODE_ENV === 'test-karma-lwc') {
|
42
|
+
// Used to reset the global state between test runs
|
43
|
+
globalThis.__lwcResetTrustedSignalsSetForTest = () => (trustedSignals = undefined);
|
44
|
+
}
|
39
45
|
}
|
40
46
|
function addTrustedSignal(signal) {
|
41
47
|
// This should be a no-op when the trustedSignals set isn't set by runtime
|
42
48
|
trustedSignals?.add(signal);
|
43
49
|
}
|
44
|
-
/** version: 8.20.
|
50
|
+
/** version: 8.20.5 */
|
45
51
|
|
46
52
|
/*
|
47
53
|
* Copyright (c) 2023, salesforce.com, inc.
|
@@ -70,5 +76,5 @@ class SignalBaseClass {
|
|
70
76
|
}
|
71
77
|
|
72
78
|
export { SignalBaseClass, setTrustedSignalSet };
|
73
|
-
/** version: 8.20.
|
79
|
+
/** version: 8.20.5 */
|
74
80
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
5
5
|
],
|
6
6
|
"name": "@lwc/signals",
|
7
|
-
"version": "8.20.
|
7
|
+
"version": "8.20.5",
|
8
8
|
"description": "Provides the interface to interact with reactivity from outside the framework",
|
9
9
|
"keywords": [
|
10
10
|
"lwc"
|
@@ -46,6 +46,6 @@
|
|
46
46
|
}
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@lwc/shared": "8.20.
|
49
|
+
"@lwc/shared": "8.20.5"
|
50
50
|
}
|
51
|
-
}
|
51
|
+
}
|