@gjsify/web-globals 0.3.12 → 0.3.14
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/lib/esm/index.js +4 -19
- package/lib/esm/register/formdata.js +5 -1
- package/lib/esm/register/performance.js +7 -3
- package/lib/esm/register.js +14 -10
- package/package.json +16 -16
package/lib/esm/index.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import { DOMException } from "@gjsify/dom-exception";
|
|
2
2
|
import { AudioContext, HTMLAudioElement } from "@gjsify/webaudio";
|
|
3
|
-
import { Event, EventTarget
|
|
3
|
+
import { CustomEvent, Event, EventTarget } from "@gjsify/dom-events";
|
|
4
4
|
import { AbortController, AbortSignal } from "@gjsify/abort-controller";
|
|
5
5
|
import { URL, URLSearchParams } from "@gjsify/url";
|
|
6
6
|
import { Blob, File } from "@gjsify/buffer";
|
|
7
7
|
import { FormData } from "@gjsify/formdata";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
AbortSignal,
|
|
12
|
-
AudioContext,
|
|
13
|
-
Blob,
|
|
14
|
-
CustomEvent,
|
|
15
|
-
DOMException,
|
|
16
|
-
Event,
|
|
17
|
-
EventTarget,
|
|
18
|
-
File,
|
|
19
|
-
FormData,
|
|
20
|
-
HTMLAudioElement,
|
|
21
|
-
PerformanceObserver,
|
|
22
|
-
URL,
|
|
23
|
-
URLSearchParams,
|
|
24
|
-
performance
|
|
25
|
-
};
|
|
8
|
+
import { PerformanceObserver, performance } from "@gjsify/perf_hooks";
|
|
9
|
+
|
|
10
|
+
export { AbortController, AbortSignal, AudioContext, Blob, CustomEvent, DOMException, Event, EventTarget, File, FormData, HTMLAudioElement, PerformanceObserver, URL, URLSearchParams, performance };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PerformanceObserver, performance } from "@gjsify/perf_hooks";
|
|
2
|
+
|
|
3
|
+
//#region src/register/performance.ts
|
|
2
4
|
if (typeof globalThis.performance === "undefined") {
|
|
3
|
-
|
|
5
|
+
globalThis.performance = performance;
|
|
4
6
|
}
|
|
5
7
|
if (typeof globalThis.PerformanceObserver !== "function") {
|
|
6
|
-
|
|
8
|
+
globalThis.PerformanceObserver = PerformanceObserver;
|
|
7
9
|
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
package/lib/esm/register.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { URL, URLSearchParams } from "@gjsify/url";
|
|
2
|
+
import { FormData } from "@gjsify/formdata";
|
|
3
|
+
import { PerformanceObserver, performance } from "@gjsify/perf_hooks";
|
|
1
4
|
import "@gjsify/dom-exception/register";
|
|
2
5
|
import "@gjsify/dom-events/register";
|
|
3
6
|
import "@gjsify/abort-controller/register";
|
|
@@ -6,23 +9,24 @@ import "@gjsify/compression-streams/register";
|
|
|
6
9
|
import "@gjsify/webcrypto/register";
|
|
7
10
|
import "@gjsify/eventsource/register";
|
|
8
11
|
import "@gjsify/buffer/register";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
+
import "@gjsify/webaudio/register";
|
|
13
|
+
import "@gjsify/gamepad/register";
|
|
14
|
+
|
|
15
|
+
//#region src/register.ts
|
|
12
16
|
if (typeof globalThis.URL !== "function") {
|
|
13
|
-
|
|
17
|
+
globalThis.URL = URL;
|
|
14
18
|
}
|
|
15
19
|
if (typeof globalThis.URLSearchParams !== "function") {
|
|
16
|
-
|
|
20
|
+
globalThis.URLSearchParams = URLSearchParams;
|
|
17
21
|
}
|
|
18
22
|
if (typeof globalThis.FormData !== "function") {
|
|
19
|
-
|
|
23
|
+
globalThis.FormData = FormData;
|
|
20
24
|
}
|
|
21
25
|
if (typeof globalThis.performance === "undefined") {
|
|
22
|
-
|
|
26
|
+
globalThis.performance = performance;
|
|
23
27
|
}
|
|
24
28
|
if (typeof globalThis.PerformanceObserver !== "function") {
|
|
25
|
-
|
|
29
|
+
globalThis.PerformanceObserver = PerformanceObserver;
|
|
26
30
|
}
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
|
|
32
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/web-globals",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"description": "Unified Web API globals for GJS — single import for all Web standard polyfills",
|
|
5
5
|
"module": "lib/esm/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
"web-apis"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@gjsify/abort-controller": "^0.3.
|
|
46
|
-
"@gjsify/buffer": "^0.3.
|
|
47
|
-
"@gjsify/compression-streams": "^0.3.
|
|
48
|
-
"@gjsify/dom-events": "^0.3.
|
|
49
|
-
"@gjsify/dom-exception": "^0.3.
|
|
50
|
-
"@gjsify/eventsource": "^0.3.
|
|
51
|
-
"@gjsify/formdata": "^0.3.
|
|
52
|
-
"@gjsify/gamepad": "^0.3.
|
|
53
|
-
"@gjsify/perf_hooks": "^0.3.
|
|
54
|
-
"@gjsify/url": "^0.3.
|
|
55
|
-
"@gjsify/web-streams": "^0.3.
|
|
56
|
-
"@gjsify/webaudio": "^0.3.
|
|
57
|
-
"@gjsify/webcrypto": "^0.3.
|
|
45
|
+
"@gjsify/abort-controller": "^0.3.14",
|
|
46
|
+
"@gjsify/buffer": "^0.3.14",
|
|
47
|
+
"@gjsify/compression-streams": "^0.3.14",
|
|
48
|
+
"@gjsify/dom-events": "^0.3.14",
|
|
49
|
+
"@gjsify/dom-exception": "^0.3.14",
|
|
50
|
+
"@gjsify/eventsource": "^0.3.14",
|
|
51
|
+
"@gjsify/formdata": "^0.3.14",
|
|
52
|
+
"@gjsify/gamepad": "^0.3.14",
|
|
53
|
+
"@gjsify/perf_hooks": "^0.3.14",
|
|
54
|
+
"@gjsify/url": "^0.3.14",
|
|
55
|
+
"@gjsify/web-streams": "^0.3.14",
|
|
56
|
+
"@gjsify/webaudio": "^0.3.14",
|
|
57
|
+
"@gjsify/webcrypto": "^0.3.14"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@gjsify/cli": "^0.3.
|
|
61
|
-
"@gjsify/unit": "^0.3.
|
|
60
|
+
"@gjsify/cli": "^0.3.14",
|
|
61
|
+
"@gjsify/unit": "^0.3.14",
|
|
62
62
|
"@types/node": "^25.6.0",
|
|
63
63
|
"typescript": "^6.0.3"
|
|
64
64
|
}
|