@pi-unipi/web-api 0.1.16 → 2.0.0
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/package.json +1 -1
- package/src/engine/dependencies.ts +4 -4
- package/src/index.ts +1 -2
package/package.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Uses dynamic imports to handle optional native binding failures gracefully.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
let wreqModule:
|
|
9
|
-
let defuddleModule:
|
|
10
|
-
let lodashModule:
|
|
11
|
-
let mimeTypesModule:
|
|
8
|
+
let wreqModule: Record<string, unknown> | null = null;
|
|
9
|
+
let defuddleModule: Record<string, unknown> | null = null;
|
|
10
|
+
let lodashModule: Record<string, unknown> | null = null;
|
|
11
|
+
let mimeTypesModule: typeof import("mime-types") | null = null;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Get the wreq-js module.
|
package/src/index.ts
CHANGED
|
@@ -31,8 +31,7 @@ const VERSION = getPackageVersion(new URL(".", import.meta.url).pathname);
|
|
|
31
31
|
|
|
32
32
|
// Get info registry from global (avoids direct import issues with pi's extension loading)
|
|
33
33
|
function getInfoRegistry() {
|
|
34
|
-
|
|
35
|
-
return g.__unipi_info_registry;
|
|
34
|
+
return globalThis.__unipi_info_registry;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export default function (pi: ExtensionAPI) {
|