@lwc/synthetic-shadow 2.35.0 → 2.35.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/synthetic-shadow.js +9 -40
- package/package.json +3 -3
package/dist/synthetic-shadow.js
CHANGED
@@ -88,41 +88,11 @@ function toString(obj) {
|
|
88
88
|
* SPDX-License-Identifier: MIT
|
89
89
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
90
90
|
*/
|
91
|
-
//
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
}
|
97
|
-
let _globalThis;
|
98
|
-
try {
|
99
|
-
// eslint-disable-next-line no-extend-native
|
100
|
-
Object.defineProperty(Object.prototype, '__magic__', {
|
101
|
-
get: function () {
|
102
|
-
return this;
|
103
|
-
},
|
104
|
-
configurable: true,
|
105
|
-
});
|
106
|
-
// __magic__ is undefined in Safari 10 and IE10 and older.
|
107
|
-
// @ts-ignore
|
108
|
-
// eslint-disable-next-line no-undef
|
109
|
-
_globalThis = __magic__;
|
110
|
-
// @ts-ignore
|
111
|
-
delete Object.prototype.__magic__;
|
112
|
-
}
|
113
|
-
catch (ex) {
|
114
|
-
// In IE8, Object.defineProperty only works on DOM objects.
|
115
|
-
}
|
116
|
-
finally {
|
117
|
-
// If the magic above fails for some reason we assume that we are in a legacy browser.
|
118
|
-
// Assume `window` exists in this case.
|
119
|
-
if (typeof _globalThis === 'undefined') {
|
120
|
-
// @ts-ignore
|
121
|
-
_globalThis = window;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
return _globalThis;
|
125
|
-
})();
|
91
|
+
// See browser support for globalThis:
|
92
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility
|
93
|
+
/* istanbul ignore next */
|
94
|
+
// @ts-ignore
|
95
|
+
const _globalThis = typeof globalThis === 'object' ? globalThis : window;
|
126
96
|
|
127
97
|
/*
|
128
98
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -150,7 +120,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
|
|
150
120
|
// We use this to detect symbol support in order to avoid the expensive symbol polyfill. Note that
|
151
121
|
// we can't use typeof since it will fail when transpiling.
|
152
122
|
const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === 'Symbol(x)')();
|
153
|
-
/** version: 2.35.
|
123
|
+
/** version: 2.35.1 */
|
154
124
|
|
155
125
|
/*
|
156
126
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -465,7 +435,7 @@ if (!_globalThis.lwcRuntimeFlags) {
|
|
465
435
|
Object.defineProperty(_globalThis, 'lwcRuntimeFlags', { value: create(null) });
|
466
436
|
}
|
467
437
|
const lwcRuntimeFlags = _globalThis.lwcRuntimeFlags;
|
468
|
-
/** version: 2.35.
|
438
|
+
/** version: 2.35.1 */
|
469
439
|
|
470
440
|
/*
|
471
441
|
* Copyright (c) 2018, salesforce.com, inc.
|
@@ -4712,8 +4682,7 @@ defineProperty(Element.prototype, '$domManual$', {
|
|
4712
4682
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
4713
4683
|
*/
|
4714
4684
|
// Only used in LWC's Karma tests
|
4715
|
-
|
4716
|
-
if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
4685
|
+
if (process.env.NODE_ENV === 'test-karma-lwc') {
|
4717
4686
|
window.addEventListener('test-dummy-flag', () => {
|
4718
4687
|
let hasFlag = false;
|
4719
4688
|
if (lwcRuntimeFlags.DUMMY_TEST_FLAG) {
|
@@ -4727,4 +4696,4 @@ if (process.env.NODE_ENV !== 'production' && typeof __karma__ !== 'undefined') {
|
|
4727
4696
|
}));
|
4728
4697
|
});
|
4729
4698
|
}
|
4730
|
-
/** version: 2.35.
|
4699
|
+
/** version: 2.35.1 */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lwc/synthetic-shadow",
|
3
|
-
"version": "2.35.
|
3
|
+
"version": "2.35.1",
|
4
4
|
"description": "Synthetic Shadow Root for LWC",
|
5
5
|
"homepage": "https://lwc.dev/",
|
6
6
|
"repository": {
|
@@ -36,8 +36,8 @@
|
|
36
36
|
"access": "public"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@lwc/features": "2.35.
|
40
|
-
"@lwc/shared": "2.35.
|
39
|
+
"@lwc/features": "2.35.1",
|
40
|
+
"@lwc/shared": "2.35.1"
|
41
41
|
},
|
42
42
|
"nx": {
|
43
43
|
"targets": {
|