lit-element
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c; | ||
/** | ||
@@ -195,5 +195,6 @@ * The main LitElement module, which defines the [[`LitElement`]] base class and | ||
// Apply polyfills if available | ||
(_c = globalThis[`litElementPolyfillSupport${DEV_MODE ? `DevMode` : ``}`]) === null || _c === void 0 ? void 0 : _c.call(globalThis, { | ||
LitElement, | ||
}); | ||
const polyfillSupport = DEV_MODE | ||
? globalThis.litElementPolyfillSupportDevMode | ||
: globalThis.litElementPolyfillSupport; | ||
polyfillSupport === null || polyfillSupport === void 0 ? void 0 : polyfillSupport({ LitElement }); | ||
// DEV mode warnings | ||
@@ -253,4 +254,3 @@ if (DEV_MODE) { | ||
// This line will be used in regexes to search for LitElement usage. | ||
// TODO(justinfagnani): inject version number at build time | ||
((_d = globalThis.litElementVersions) !== null && _d !== void 0 ? _d : (globalThis.litElementVersions = [])).push('3.0.0'); | ||
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.0.1'); | ||
if (DEV_MODE && globalThis.litElementVersions.length > 1) { | ||
@@ -257,0 +257,0 @@ issueWarning('multiple-versions', `Multiple versions of Lit loaded. Loading multiple versions ` + |
@@ -6,4 +6,3 @@ /** | ||
*/ | ||
var _a; | ||
var _b; | ||
var _a, _b; | ||
/** | ||
@@ -32,3 +31,3 @@ * LitElement patch to support browsers without native web components. | ||
var DEV_MODE = true; | ||
(_a = globalThis[_b = "litElementPolyfillSupport" + (DEV_MODE ? "DevMode" : "")]) !== null && _a !== void 0 ? _a : (globalThis[_b] = function (_a) { | ||
var polyfillSupport = function (_a) { | ||
var LitElement = _a.LitElement; | ||
@@ -59,3 +58,9 @@ // polyfill-support is only needed if ShadyCSS or the ApplyShim is in use | ||
}; | ||
}); | ||
}; | ||
if (DEV_MODE) { | ||
(_a = globalThis.litElementPolyfillSupportDevMode) !== null && _a !== void 0 ? _a : (globalThis.litElementPolyfillSupportDevMode = polyfillSupport); | ||
} | ||
else { | ||
(_b = globalThis.litElementPolyfillSupport) !== null && _b !== void 0 ? _b : (globalThis.litElementPolyfillSupport = polyfillSupport); | ||
} | ||
//# sourceMappingURL=polyfill-support.js.map |
@@ -6,3 +6,3 @@ import{ReactiveElement as t}from"@lit/reactive-element";export*from"@lit/reactive-element";import{render as e,noChange as i}from"lit-html";export*from"lit-html"; | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/var l,o,r;const s=t;class n extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return i}}n.finalized=!0,n._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:n}),null===(o=globalThis.litElementPolyfillSupport)||void 0===o||o.call(globalThis,{LitElement:n});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(r=globalThis.litElementVersions)&&void 0!==r?r:globalThis.litElementVersions=[]).push("3.0.0");export{n as LitElement,s as UpdatingElement,h as _$LE}; | ||
*/var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.0.1");export{s as LitElement,r as UpdatingElement,h as _$LE}; | ||
//# sourceMappingURL=lit-element.js.map |
{ | ||
"name": "lit-element", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
168919
116
1131
0