@lwc/shared 2.35.0 → 2.35.1
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 +7 -37
- package/dist/index.js +7 -37
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -206,41 +206,11 @@ const ID_REFERENCING_ATTRIBUTES_SET = new Set([
|
|
|
206
206
|
* SPDX-License-Identifier: MIT
|
|
207
207
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
208
208
|
*/
|
|
209
|
-
//
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
let _globalThis;
|
|
216
|
-
try {
|
|
217
|
-
// eslint-disable-next-line no-extend-native
|
|
218
|
-
Object.defineProperty(Object.prototype, '__magic__', {
|
|
219
|
-
get: function () {
|
|
220
|
-
return this;
|
|
221
|
-
},
|
|
222
|
-
configurable: true,
|
|
223
|
-
});
|
|
224
|
-
// __magic__ is undefined in Safari 10 and IE10 and older.
|
|
225
|
-
// @ts-ignore
|
|
226
|
-
// eslint-disable-next-line no-undef
|
|
227
|
-
_globalThis = __magic__;
|
|
228
|
-
// @ts-ignore
|
|
229
|
-
delete Object.prototype.__magic__;
|
|
230
|
-
}
|
|
231
|
-
catch (ex) {
|
|
232
|
-
// In IE8, Object.defineProperty only works on DOM objects.
|
|
233
|
-
}
|
|
234
|
-
finally {
|
|
235
|
-
// If the magic above fails for some reason we assume that we are in a legacy browser.
|
|
236
|
-
// Assume `window` exists in this case.
|
|
237
|
-
if (typeof _globalThis === 'undefined') {
|
|
238
|
-
// @ts-ignore
|
|
239
|
-
_globalThis = window;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return _globalThis;
|
|
243
|
-
})();
|
|
209
|
+
// See browser support for globalThis:
|
|
210
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility
|
|
211
|
+
/* istanbul ignore next */
|
|
212
|
+
// @ts-ignore
|
|
213
|
+
const _globalThis = typeof globalThis === 'object' ? globalThis : window;
|
|
244
214
|
|
|
245
215
|
/*
|
|
246
216
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -509,7 +479,7 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
|
|
|
509
479
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
510
480
|
*/
|
|
511
481
|
// Increment whenever the LWC template compiler changes
|
|
512
|
-
const LWC_VERSION = "2.35.
|
|
482
|
+
const LWC_VERSION = "2.35.1";
|
|
513
483
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
514
484
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
515
485
|
|
|
@@ -596,4 +566,4 @@ exports.noop = noop;
|
|
|
596
566
|
exports.seal = seal;
|
|
597
567
|
exports.setPrototypeOf = setPrototypeOf;
|
|
598
568
|
exports.toString = toString;
|
|
599
|
-
/** version: 2.35.
|
|
569
|
+
/** version: 2.35.1 */
|
package/dist/index.js
CHANGED
|
@@ -204,41 +204,11 @@ const ID_REFERENCING_ATTRIBUTES_SET = new Set([
|
|
|
204
204
|
* SPDX-License-Identifier: MIT
|
|
205
205
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
206
206
|
*/
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
let _globalThis;
|
|
214
|
-
try {
|
|
215
|
-
// eslint-disable-next-line no-extend-native
|
|
216
|
-
Object.defineProperty(Object.prototype, '__magic__', {
|
|
217
|
-
get: function () {
|
|
218
|
-
return this;
|
|
219
|
-
},
|
|
220
|
-
configurable: true,
|
|
221
|
-
});
|
|
222
|
-
// __magic__ is undefined in Safari 10 and IE10 and older.
|
|
223
|
-
// @ts-ignore
|
|
224
|
-
// eslint-disable-next-line no-undef
|
|
225
|
-
_globalThis = __magic__;
|
|
226
|
-
// @ts-ignore
|
|
227
|
-
delete Object.prototype.__magic__;
|
|
228
|
-
}
|
|
229
|
-
catch (ex) {
|
|
230
|
-
// In IE8, Object.defineProperty only works on DOM objects.
|
|
231
|
-
}
|
|
232
|
-
finally {
|
|
233
|
-
// If the magic above fails for some reason we assume that we are in a legacy browser.
|
|
234
|
-
// Assume `window` exists in this case.
|
|
235
|
-
if (typeof _globalThis === 'undefined') {
|
|
236
|
-
// @ts-ignore
|
|
237
|
-
_globalThis = window;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return _globalThis;
|
|
241
|
-
})();
|
|
207
|
+
// See browser support for globalThis:
|
|
208
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility
|
|
209
|
+
/* istanbul ignore next */
|
|
210
|
+
// @ts-ignore
|
|
211
|
+
const _globalThis = typeof globalThis === 'object' ? globalThis : window;
|
|
242
212
|
|
|
243
213
|
/*
|
|
244
214
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -507,9 +477,9 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
|
|
|
507
477
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
508
478
|
*/
|
|
509
479
|
// Increment whenever the LWC template compiler changes
|
|
510
|
-
const LWC_VERSION = "2.35.
|
|
480
|
+
const LWC_VERSION = "2.35.1";
|
|
511
481
|
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
|
|
512
482
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
513
483
|
|
|
514
484
|
export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayConcat, ArrayCopyWithin, ArrayFill, ArrayFilter, ArrayFind, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPop, ArrayPush, ArrayReduce, ArrayReverse, ArrayShift, ArraySlice, ArraySome, ArraySort, ArraySplice, ArrayUnshift, HTML_NAMESPACE, ID_REFERENCING_ATTRIBUTES_SET, KEY__IS_NATIVE_SHADOW_ROOT_DEFINED, KEY__NATIVE_GET_ELEMENT_BY_ID, KEY__NATIVE_QUERY_SELECTOR_ALL, KEY__SCOPED_CSS, KEY__SHADOW_RESOLVER, KEY__SHADOW_RESOLVER_PRIVATE, KEY__SHADOW_STATIC, KEY__SHADOW_STATIC_PRIVATE, KEY__SHADOW_TOKEN, KEY__SHADOW_TOKEN_PRIVATE, KEY__SYNTHETIC_MODE, LWC_VERSION, LWC_VERSION_COMMENT, LWC_VERSION_COMMENT_REGEX, MATHML_NAMESPACE, SVG_NAMESPACE, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringSplit, StringToLowerCase, XLINK_NAMESPACE, XML_NAMESPACE, assert, assign, create, defineProperties, defineProperty, forEach, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, _globalThis as globalThis, hasNativeSymbolSupport, hasOwnProperty, htmlAttributeToProperty, htmlEscape, htmlPropertyToAttribute, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isUndefined, isVoidElement, keys, noop, seal, setPrototypeOf, toString };
|
|
515
|
-
/** version: 2.35.
|
|
485
|
+
/** version: 2.35.1 */
|