@gjsify/module 0.4.36 → 0.4.37
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
CHANGED
|
@@ -1 +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
|
|
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}function requireEsm(e){let t=Error(`Cannot require built-in module '${e}' synchronously from a browser ESM bundle. Use 'import' (or its async dynamic form) instead.`);return t.code=`ERR_REQUIRE_ESM`,t}const e=`assert.async_hooks.buffer.child_process.cluster.console.constants.crypto.dgram.diagnostics_channel.dns.domain.events.fs.http.http2.https.inspector.module.net.os.path.perf_hooks.process.punycode.querystring.readline.repl.stream.string_decoder.sys.timers.tls.tty.url.util.v8.vm.wasi.worker_threads.zlib`.split(`.`),isBuiltin=t=>{if(!t)return!1;let n=t.startsWith(`node:`)?t.slice(5):t,r=n.split(`/`)[0];return e.includes(n)||e.includes(r)};function createRequire(e){let requireFn=(e=>{throw isBuiltin(e)?requireEsm(e):moduleNotFound(e)});return requireFn.resolve=Object.assign((e,t)=>{throw isBuiltin(e)?requireEsm(e):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 isBuiltin(e)?requireEsm(e):moduleNotFound(e)}static builtinModules=e;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};
|
package/lib/types/browser.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/module",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.37",
|
|
4
4
|
"description": "Node.js module module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"build:test": "gjsify run build:test:gjs && gjsify run build:test:node",
|
|
28
28
|
"build:test:gjs": "gjsify build src/test.mts --app gjs --outfile test.gjs.mjs",
|
|
29
29
|
"build:test:node": "gjsify build src/test.mts --app node --outfile test.node.mjs",
|
|
30
|
+
"build:test:browser": "gjsify build src/test.browser.mts --app browser --outfile dist/test.browser.mjs",
|
|
30
31
|
"test": "gjsify run build:gjsify && gjsify run build:test && gjsify run test:node && gjsify run test:gjs",
|
|
31
32
|
"test:gjs": "gjsify run test.gjs.mjs",
|
|
32
33
|
"test:node": "node test.node.mjs"
|
|
@@ -40,11 +41,11 @@
|
|
|
40
41
|
"@girs/gio-2.0": "2.88.0-4.0.4",
|
|
41
42
|
"@girs/gjs": "4.0.4",
|
|
42
43
|
"@girs/glib-2.0": "2.88.0-4.0.4",
|
|
43
|
-
"@gjsify/utils": "^0.4.
|
|
44
|
+
"@gjsify/utils": "^0.4.37"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@gjsify/cli": "^0.4.
|
|
47
|
-
"@gjsify/unit": "^0.4.
|
|
47
|
+
"@gjsify/cli": "^0.4.37",
|
|
48
|
+
"@gjsify/unit": "^0.4.37",
|
|
48
49
|
"@types/node": "^25.9.1",
|
|
49
50
|
"typescript": "^5.9.3"
|
|
50
51
|
},
|
|
@@ -52,7 +53,8 @@
|
|
|
52
53
|
"runtimes": {
|
|
53
54
|
"gjs": "polyfill",
|
|
54
55
|
"node": "none",
|
|
55
|
-
"browser": "partial"
|
|
56
|
+
"browser": "partial",
|
|
57
|
+
"nativescript": "none"
|
|
56
58
|
}
|
|
57
59
|
},
|
|
58
60
|
"license": "MIT",
|