@lwc/synthetic-shadow 2.35.0 → 2.35.2

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.
@@ -29,10 +29,10 @@ function fail(msg) {
29
29
 
30
30
  var assert = /*#__PURE__*/Object.freeze({
31
31
  __proto__: null,
32
+ fail: fail,
32
33
  invariant: invariant,
33
- isTrue: isTrue$1,
34
34
  isFalse: isFalse$1,
35
- fail: fail
35
+ isTrue: isTrue$1
36
36
  });
37
37
 
38
38
  /*
@@ -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
- // Inspired from: https://mathiasbynens.be/notes/globalthis
92
- const _globalThis = /*@__PURE__*/ (function () {
93
- // On recent browsers, `globalThis` is already defined. In this case return it directly.
94
- if (typeof globalThis === 'object') {
95
- return globalThis;
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.0 */
123
+ /** version: 2.35.2 */
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.0 */
438
+ /** version: 2.35.2 */
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
- // @ts-ignore
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.0 */
4699
+ /** version: 2.35.2 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/synthetic-shadow",
3
- "version": "2.35.0",
3
+ "version": "2.35.2",
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.0",
40
- "@lwc/shared": "2.35.0"
39
+ "@lwc/features": "2.35.2",
40
+ "@lwc/shared": "2.35.2"
41
41
  },
42
42
  "nx": {
43
43
  "targets": {