@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 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, CustomEvent } from "@gjsify/dom-events";
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 { performance, PerformanceObserver } from "@gjsify/perf_hooks";
9
- export {
10
- AbortController,
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,4 +1,8 @@
1
1
  import { FormData } from "@gjsify/formdata";
2
+
3
+ //#region src/register/formdata.ts
2
4
  if (typeof globalThis.FormData !== "function") {
3
- globalThis.FormData = FormData;
5
+ globalThis.FormData = FormData;
4
6
  }
7
+
8
+ //#endregion
@@ -1,7 +1,11 @@
1
- import { performance, PerformanceObserver } from "@gjsify/perf_hooks";
1
+ import { PerformanceObserver, performance } from "@gjsify/perf_hooks";
2
+
3
+ //#region src/register/performance.ts
2
4
  if (typeof globalThis.performance === "undefined") {
3
- globalThis.performance = performance;
5
+ globalThis.performance = performance;
4
6
  }
5
7
  if (typeof globalThis.PerformanceObserver !== "function") {
6
- globalThis.PerformanceObserver = PerformanceObserver;
8
+ globalThis.PerformanceObserver = PerformanceObserver;
7
9
  }
10
+
11
+ //#endregion
@@ -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 { URL, URLSearchParams } from "@gjsify/url";
10
- import { FormData } from "@gjsify/formdata";
11
- import { performance, PerformanceObserver } from "@gjsify/perf_hooks";
12
+ import "@gjsify/webaudio/register";
13
+ import "@gjsify/gamepad/register";
14
+
15
+ //#region src/register.ts
12
16
  if (typeof globalThis.URL !== "function") {
13
- globalThis.URL = URL;
17
+ globalThis.URL = URL;
14
18
  }
15
19
  if (typeof globalThis.URLSearchParams !== "function") {
16
- globalThis.URLSearchParams = URLSearchParams;
20
+ globalThis.URLSearchParams = URLSearchParams;
17
21
  }
18
22
  if (typeof globalThis.FormData !== "function") {
19
- globalThis.FormData = FormData;
23
+ globalThis.FormData = FormData;
20
24
  }
21
25
  if (typeof globalThis.performance === "undefined") {
22
- globalThis.performance = performance;
26
+ globalThis.performance = performance;
23
27
  }
24
28
  if (typeof globalThis.PerformanceObserver !== "function") {
25
- globalThis.PerformanceObserver = PerformanceObserver;
29
+ globalThis.PerformanceObserver = PerformanceObserver;
26
30
  }
27
- import "@gjsify/webaudio/register";
28
- import "@gjsify/gamepad/register";
31
+
32
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/web-globals",
3
- "version": "0.3.12",
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.12",
46
- "@gjsify/buffer": "^0.3.12",
47
- "@gjsify/compression-streams": "^0.3.12",
48
- "@gjsify/dom-events": "^0.3.12",
49
- "@gjsify/dom-exception": "^0.3.12",
50
- "@gjsify/eventsource": "^0.3.12",
51
- "@gjsify/formdata": "^0.3.12",
52
- "@gjsify/gamepad": "^0.3.12",
53
- "@gjsify/perf_hooks": "^0.3.12",
54
- "@gjsify/url": "^0.3.12",
55
- "@gjsify/web-streams": "^0.3.12",
56
- "@gjsify/webaudio": "^0.3.12",
57
- "@gjsify/webcrypto": "^0.3.12"
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.12",
61
- "@gjsify/unit": "^0.3.12",
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
  }