@cellarnode/ui 0.7.4 → 0.7.5
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.
|
@@ -23,14 +23,30 @@ if (typeof g.window === "undefined") {
|
|
|
23
23
|
g.window = g;
|
|
24
24
|
}
|
|
25
25
|
if (typeof g.document === "undefined") {
|
|
26
|
+
const noop = () => { };
|
|
27
|
+
const mockElement = () => ({
|
|
28
|
+
style: {},
|
|
29
|
+
setAttribute: noop,
|
|
30
|
+
getAttribute: () => null,
|
|
31
|
+
removeAttribute: noop,
|
|
32
|
+
appendChild: noop,
|
|
33
|
+
removeChild: noop,
|
|
34
|
+
addEventListener: noop,
|
|
35
|
+
removeEventListener: noop,
|
|
36
|
+
classList: { add: noop, remove: noop, toggle: noop, contains: () => false },
|
|
37
|
+
});
|
|
26
38
|
g.document = {
|
|
27
|
-
createElement:
|
|
28
|
-
createElementNS:
|
|
29
|
-
createTextNode: () => ({}),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
createElement: mockElement,
|
|
40
|
+
createElementNS: mockElement,
|
|
41
|
+
createTextNode: () => ({ textContent: "" }),
|
|
42
|
+
getElementById: () => null,
|
|
43
|
+
querySelector: () => null,
|
|
44
|
+
querySelectorAll: () => [],
|
|
45
|
+
head: mockElement(),
|
|
46
|
+
body: mockElement(),
|
|
47
|
+
addEventListener: noop,
|
|
48
|
+
removeEventListener: noop,
|
|
49
|
+
documentElement: { style: {} },
|
|
34
50
|
};
|
|
35
51
|
}
|
|
36
52
|
if (typeof g.HTMLCanvasElement === "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-polyfill.js","sourceRoot":"","sources":["../../src/globe/worker-polyfill.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,GAAG,UAAiB,CAAC;AAE5B,IAAI,OAAO,CAAC,CAAC,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