@lwc/synthetic-shadow 7.3.0-alpha.3 → 8.0.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -99,8 +99,11 @@ keys,
99
99
  seal,
100
100
  /** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */
101
101
  setPrototypeOf, } = Object;
102
+ const {
102
103
  /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */
103
- const { isArray } = Array;
104
+ isArray,
105
+ /** Detached {@linkcode Array.from}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from MDN Reference}. */
106
+ from: ArrayFrom, } = Array;
104
107
  // For some reason, JSDoc don't get picked up for multiple renamed destructured constants (even
105
108
  // though it works fine for one, e.g. isArray), so comments for these are added to the export
106
109
  // statement, rather than this declaration.
@@ -144,7 +147,7 @@ function isFalse(obj) {
144
147
  * @returns `true` if the value is a function.
145
148
  */
146
149
  // Replacing `Function` with a narrower type that works for all our use cases is tricky...
147
- // eslint-disable-next-line @typescript-eslint/ban-types
150
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
148
151
  function isFunction(obj) {
149
152
  return typeof obj === 'function';
150
153
  }
@@ -210,7 +213,7 @@ const KEY__LEGACY_SHADOW_TOKEN_PRIVATE = '$$LegacyShadowTokenKey$$';
210
213
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
211
214
  const KEY__NATIVE_GET_ELEMENT_BY_ID = '$nativeGetElementById$';
212
215
  const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
213
- /** version: 7.2.0 */
216
+ /** version: 8.0.0-alpha.1 */
214
217
 
215
218
  /**
216
219
  * Copyright (c) 2024 Salesforce, Inc.
@@ -218,7 +221,7 @@ const KEY__NATIVE_QUERY_SELECTOR_ALL = '$nativeQuerySelectorAll$';
218
221
  if (!globalThis.lwcRuntimeFlags) {
219
222
  Object.defineProperty(globalThis, 'lwcRuntimeFlags', { value: create(null) });
220
223
  }
221
- /** version: 7.2.0 */
224
+ /** version: 8.0.0-alpha.1 */
222
225
 
223
226
  /*
224
227
  * Copyright (c) 2018, salesforce.com, inc.
@@ -4376,6 +4379,6 @@ defineProperty(Element.prototype, '$domManual$', {
4376
4379
  },
4377
4380
  configurable: true,
4378
4381
  });
4379
- /** version: 7.2.0 */
4382
+ /** version: 8.0.0-alpha.1 */
4380
4383
  }
4381
4384
  //# sourceMappingURL=index.cjs.js.map