@gjsify/module 0.4.35 → 0.4.36
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/browser.js +1 -0
- package/lib/types/browser.d.ts +33 -0
- package/package.json +24 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";function moduleNotFound(e){let t=Error(`Cannot find module '${e}' from the browser bundle — Node 'require' is not available in this runtime. Use ES module imports instead.`);return t.code=`ERR_MODULE_NOT_FOUND`,t}const e=[],isBuiltin=e=>!1;function createRequire(e){let requireFn=(e=>{throw moduleNotFound(e)});return requireFn.resolve=Object.assign((e,t)=>{throw moduleNotFound(e)},{paths:e=>null}),requireFn.cache=Object.create(null),requireFn.extensions=Object.create(null),requireFn.main=void 0,requireFn}var Module=class{id;filename=null;loaded=!1;parent=null;children=[];exports={};paths=[];constructor(e=``,t=null){this.id=e,this.parent=t}require(e){throw moduleNotFound(e)}static builtinModules=[];static isBuiltin=isBuiltin;static createRequire=createRequire;static syncBuiltinESMExports(){}static findSourceMap(){}};const syncBuiltinESMExports=()=>{},findSourceMap=()=>void 0;export{Module,Module as default,e as builtinModules,createRequire,findSourceMap,isBuiltin,syncBuiltinESMExports};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const builtinModules: string[];
|
|
2
|
+
export declare const isBuiltin: (_name: string) => boolean;
|
|
3
|
+
interface BrowserRequireFn {
|
|
4
|
+
(id: string): unknown;
|
|
5
|
+
resolve: ((req: string, _opts?: {
|
|
6
|
+
paths?: string[];
|
|
7
|
+
}) => string) & {
|
|
8
|
+
paths: (_req: string) => string[] | null;
|
|
9
|
+
};
|
|
10
|
+
cache: Record<string, unknown>;
|
|
11
|
+
extensions: Record<string, unknown>;
|
|
12
|
+
main: undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function createRequire(_filename: string | URL): BrowserRequireFn;
|
|
15
|
+
export declare class Module {
|
|
16
|
+
id: string;
|
|
17
|
+
filename: string | null;
|
|
18
|
+
loaded: boolean;
|
|
19
|
+
parent: Module | null;
|
|
20
|
+
children: Module[];
|
|
21
|
+
exports: Record<string, unknown>;
|
|
22
|
+
paths: string[];
|
|
23
|
+
constructor(id?: string, parent?: Module | null);
|
|
24
|
+
require(specifier: string): never;
|
|
25
|
+
static builtinModules: string[];
|
|
26
|
+
static isBuiltin: typeof isBuiltin;
|
|
27
|
+
static createRequire: typeof createRequire;
|
|
28
|
+
static syncBuiltinESMExports(): void;
|
|
29
|
+
static findSourceMap(): undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare const syncBuiltinESMExports: () => void;
|
|
32
|
+
export declare const findSourceMap: () => undefined;
|
|
33
|
+
export default Module;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/module",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"description": "Node.js module module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./lib/types/index.d.ts",
|
|
11
11
|
"default": "./lib/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./browser": {
|
|
14
|
+
"types": "./lib/types/browser.d.ts",
|
|
15
|
+
"default": "./lib/esm/browser.js"
|
|
12
16
|
}
|
|
13
17
|
},
|
|
14
18
|
"files": [
|
|
@@ -33,22 +37,32 @@
|
|
|
33
37
|
"module"
|
|
34
38
|
],
|
|
35
39
|
"dependencies": {
|
|
36
|
-
"@girs/gio-2.0": "2.88.0-4.0.
|
|
37
|
-
"@girs/gjs": "4.0.
|
|
38
|
-
"@girs/glib-2.0": "2.88.0-4.0.
|
|
39
|
-
"@gjsify/utils": "^0.4.
|
|
40
|
+
"@girs/gio-2.0": "2.88.0-4.0.4",
|
|
41
|
+
"@girs/gjs": "4.0.4",
|
|
42
|
+
"@girs/glib-2.0": "2.88.0-4.0.4",
|
|
43
|
+
"@gjsify/utils": "^0.4.36"
|
|
40
44
|
},
|
|
41
45
|
"devDependencies": {
|
|
42
|
-
"@gjsify/cli": "^0.4.
|
|
43
|
-
"@gjsify/unit": "^0.4.
|
|
46
|
+
"@gjsify/cli": "^0.4.36",
|
|
47
|
+
"@gjsify/unit": "^0.4.36",
|
|
44
48
|
"@types/node": "^25.9.1",
|
|
45
|
-
"typescript": "^
|
|
49
|
+
"typescript": "^5.9.3"
|
|
46
50
|
},
|
|
47
51
|
"gjsify": {
|
|
48
52
|
"runtimes": {
|
|
49
53
|
"gjs": "polyfill",
|
|
50
54
|
"node": "none",
|
|
51
|
-
"browser": "
|
|
55
|
+
"browser": "partial"
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/gjsify/gjsify.git",
|
|
62
|
+
"directory": "packages/node/module"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/gjsify/gjsify/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/node/module#readme"
|
|
54
68
|
}
|