@designestate/dees-domtools
Advanced tools
Comparing version 1.0.38 to 1.0.39
@@ -11,2 +11,3 @@ import * as plugins from './domtools.plugins'; | ||
static setupDomTools(): Promise<DomTools>; | ||
static getDomToolsSync(): any; | ||
elements: { | ||
@@ -13,0 +14,0 @@ headElement: HTMLElement; |
@@ -88,2 +88,9 @@ "use strict"; | ||
} | ||
static getDomToolsSync() { | ||
const globalDomTools = globalThis.deesDomTools; | ||
if (!globalDomTools) { | ||
throw new Error('You tried to access domtools synchronouly too early'); | ||
} | ||
return globalThis.deesDomTools; | ||
} | ||
/** | ||
@@ -126,2 +133,2 @@ * run a function once and always get the Promise of the first execution | ||
exports.DomTools = DomTools; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tdG9vbHMuY2xhc3Nlcy5kb210b29scy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2RvbXRvb2xzLmNsYXNzZXMuZG9tdG9vbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDREQUE4QztBQUM5Qyx3RUFBaUU7QUFDakUsb0VBQTZEO0FBUzdELE1BQWEsUUFBUTtJQWdFbkI7UUFuQ0EsV0FBVztRQUNYLFdBQVc7UUFDWCxXQUFXO1FBQ1gsV0FBVztRQUNKLGFBQVEsR0FHWDtZQUNGLFdBQVcsRUFBRSxJQUFJO1lBQ2pCLFdBQVcsRUFBRSxJQUFJO1NBQ2xCLENBQUM7UUFFSyxlQUFVLEdBQUcsSUFBSSxPQUFPLENBQUMsVUFBVSxDQUFDLFVBQVUsRUFBRSxDQUFDO1FBQ2pELHNCQUFpQixHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsWUFBWSxDQUFpQixVQUFVLEVBQUU7WUFDbEYsZUFBZSxFQUFFLFFBQVE7U0FDMUIsQ0FBQyxDQUFDO1FBRUksV0FBTSxHQUF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MsZ0JBQWdCLENBQUMsUUFBUSxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQ3ZELENBQUMsQ0FDRixDQUFDO0lBQ0osQ0FBQztJQUVELFdBQVc7SUFFSixLQUFLLENBQUMsZUFBZSxDQUFDLFVBQWtCO1FBQzdDLE1BQU0sSUFBSSxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUM7UUFDNUIsTUFBTSxZQUFZLEdBQUcsUUFBUSxDQUFDLGFBQWEsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNyRCxZQUFZLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQztRQUMvQixZQUFZLENBQUMsV0FBVyxDQUFDLFFBQVEsQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztRQUM5RCxJQUFJLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxXQUFXLENBQUMsWUFBWSxDQUFDLENBQUM7SUFDdEQsQ0FBQztJQUVNLGtCQUFrQixDQUFDLGNBQXlCO1FBQ2pELElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLHdCQUF3QixFQUFFLGNBQWMsQ0FBQyxDQUFDO0lBQ3ZGLENBQUM7SUFFTSxLQUFLLENBQUMsY0FBYyxDQUFDLFVBQXdEO1FBQ2xGLE1BQU0sUUFBUSxHQUFHLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDM0QsTUFBTSxRQUFRLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDekIsQ0FBQztDQUNGO0FBN0hELDRCQTZIQyJ9 |
{ | ||
"name": "@designestate/dees-domtools", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "tools to simplify complex css structures", |
@@ -41,2 +41,10 @@ import * as plugins from './domtools.plugins'; | ||
public static getDomToolsSync() { | ||
const globalDomTools: DomTools = globalThis.deesDomTools; | ||
if (!globalDomTools) { | ||
throw new Error('You tried to access domtools synchronouly too early'); | ||
} | ||
return globalThis.deesDomTools; | ||
} | ||
// ======== | ||
@@ -43,0 +51,0 @@ // INSTANCE |
Sorry, the diff of this file is too big to display
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
2941171
23766