@gjsify/cluster 0.3.20 → 0.4.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0});export{__name};
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EventEmitter as e}from"node:events";const t=!0,n=!0,r=!1,i={},a={};function
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{EventEmitter as e}from"node:events";const t=!0,n=!0,r=!1,i={},a={};function setupPrimary(e){}const o=setupPrimary;function fork(e){throw Error(`cluster.fork() is not supported in GJS`)}function disconnect(e){}const s=2,c=1,l=2;var ClusterEmitter=class extends e{};const u=new ClusterEmitter;Object.assign(u,{isPrimary:!0,isMaster:!0,isWorker:!1,workers:i,settings:a,setupPrimary,setupMaster:o,fork,disconnect,schedulingPolicy:2,SCHED_NONE:1,SCHED_RR:2});export{c as SCHED_NONE,l as SCHED_RR,u as default,disconnect,fork,n as isMaster,t as isPrimary,r as isWorker,s as schedulingPolicy,a as settings,o as setupMaster,setupPrimary,i as workers};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/cluster",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Node.js cluster module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"cluster"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@gjsify/events": "^0.
|
|
33
|
+
"@gjsify/events": "^0.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@gjsify/cli": "^0.
|
|
37
|
-
"@gjsify/unit": "^0.
|
|
36
|
+
"@gjsify/cli": "^0.4.0",
|
|
37
|
+
"@gjsify/unit": "^0.4.0",
|
|
38
38
|
"@types/node": "^25.6.2",
|
|
39
39
|
"typescript": "^6.0.3"
|
|
40
40
|
}
|