@cyber-supplies/cysu 0.5.0 → 0.6.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/index.js +1 -1
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var P=Object.create;var l=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var J=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of k(e))!G.call(o,n)&&n!==r&&l(o,n,{get:()=>e[n],enumerable:!(t=_(e,n))||t.enumerable});return o};var d=(o,e,r)=>(r=o!=null?P(w(o)):{},J(e||!o||!o.__esModule?l(r,"default",{value:o,enumerable:!0}):r,o));var s=require("node:process");var c=require("node:path");var f=require("node:fs"),g=require("node:fs/promises"),S=require("node:os"),u=d(require("node:process"),1),m=()=>(0,S.platform)()==="win32",v=o=>(0,g.access)(o,f.constants.X_OK).then(()=>!0,()=>!1),a=o=>(console.error(o),u.default.exit(1));var h=(o,e)=>{let r=o[e];if(!r)return a(`Unsupported platform: ${e}. Supported: ${Object.keys(o).join(", ")}`);let t=r.name.join("/");try{let n=require.resolve((0,c.join)(...r.name,"package.json"));return(0,c.join)((0,c.dirname)(n),r.bin)}catch(n){let{code:p,message:I}=n;return a(p==="MODULE_NOT_FOUND"?`The platform package ${t} is not installed. Remove node_modules and install again, and check that optional dependencies are not being skipped.`:`Could not resolve the platform package ${t}: ${I}`)}};var x=require("node:child_process"),E=require("node:os"),i=d(require("node:process"),1);var U=["SIGINT","SIGQUIT"],$=["SIGTERM","SIGHUP","SIGUSR1","SIGUSR2"],N=async(o,e,r)=>{var t,n;await O(o)?(n=(t=i.default).execve)==null||n.call(t,o,[o,...e],r):R(o,e,r)},O=async o=>!m()&&typeof i.default.execve=="function"&&await v(o),R=(o,e,r)=>{let t=(0,x.spawn)(o,e,{stdio:"inherit",env:r});t.on("error",n=>a(`Failed to spawn ${o}: ${n.message}`)),t.on("exit",(n,p)=>p?j(p):i.default.exit(n??0)),b(t)},b=o=>{m()||(U.forEach(e=>i.default.on(e,()=>{})),$.forEach(e=>i.default.on(e,()=>o.kill(e))))},j=o=>(i.default.removeAllListeners(o),i.default.kill(i.default.pid,o),i.default.exit(128+E.constants.signals[o]));var M={"
|
|
2
|
+
"use strict";var P=Object.create;var l=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var J=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of k(e))!G.call(o,n)&&n!==r&&l(o,n,{get:()=>e[n],enumerable:!(t=_(e,n))||t.enumerable});return o};var d=(o,e,r)=>(r=o!=null?P(w(o)):{},J(e||!o||!o.__esModule?l(r,"default",{value:o,enumerable:!0}):r,o));var s=require("node:process");var c=require("node:path");var f=require("node:fs"),g=require("node:fs/promises"),S=require("node:os"),u=d(require("node:process"),1),m=()=>(0,S.platform)()==="win32",v=o=>(0,g.access)(o,f.constants.X_OK).then(()=>!0,()=>!1),a=o=>(console.error(o),u.default.exit(1));var h=(o,e)=>{let r=o[e];if(!r)return a(`Unsupported platform: ${e}. Supported: ${Object.keys(o).join(", ")}`);let t=r.name.join("/");try{let n=require.resolve((0,c.join)(...r.name,"package.json"));return(0,c.join)((0,c.dirname)(n),r.bin)}catch(n){let{code:p,message:I}=n;return a(p==="MODULE_NOT_FOUND"?`The platform package ${t} is not installed. Remove node_modules and install again, and check that optional dependencies are not being skipped.`:`Could not resolve the platform package ${t}: ${I}`)}};var x=require("node:child_process"),E=require("node:os"),i=d(require("node:process"),1);var U=["SIGINT","SIGQUIT"],$=["SIGTERM","SIGHUP","SIGUSR1","SIGUSR2"],N=async(o,e,r)=>{var t,n;await O(o)?(n=(t=i.default).execve)==null||n.call(t,o,[o,...e],r):R(o,e,r)},O=async o=>!m()&&typeof i.default.execve=="function"&&await v(o),R=(o,e,r)=>{let t=(0,x.spawn)(o,e,{stdio:"inherit",env:r});t.on("error",n=>a(`Failed to spawn ${o}: ${n.message}`)),t.on("exit",(n,p)=>p?j(p):i.default.exit(n??0)),b(t)},b=o=>{m()||(U.forEach(e=>i.default.on(e,()=>{})),$.forEach(e=>i.default.on(e,()=>o.kill(e))))},j=o=>(i.default.removeAllListeners(o),i.default.kill(i.default.pid,o),i.default.exit(128+E.constants.signals[o]));var M={"linux_arm64":{"name":["@cyber-supplies","cysu_linux_arm64"],"bin":"cysu"},"linux_x64":{"name":["@cyber-supplies","cysu_linux_amd64"],"bin":"cysu"},"darwin_x64":{"name":["@cyber-supplies","cysu_darwin_amd64"],"bin":"cysu"},"darwin_arm64":{"name":["@cyber-supplies","cysu_darwin_arm64"],"bin":"cysu"},"win32_x64":{"name":["@cyber-supplies","cysu_windows_amd64"],"bin":"cysu.exe"},"win32_arm64":{"name":["@cyber-supplies","cysu_windows_arm64"],"bin":"cysu.exe"}};N(h(M,s.platform+"_"+s.arch),s.argv.slice(2),s.env);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyber-supplies/cysu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"cysu": "index.js"
|
|
6
6
|
},
|
|
7
7
|
"optionalDependencies": {
|
|
8
|
-
"@cyber-supplies/
|
|
9
|
-
"@cyber-supplies/
|
|
10
|
-
"@cyber-supplies/
|
|
11
|
-
"@cyber-supplies/cysu_darwin_arm64": "0.
|
|
12
|
-
"@cyber-supplies/cysu_windows_amd64": "0.
|
|
13
|
-
"@cyber-supplies/cysu_windows_arm64": "0.
|
|
8
|
+
"@cyber-supplies/cysu_linux_arm64": "0.6.0",
|
|
9
|
+
"@cyber-supplies/cysu_linux_amd64": "0.6.0",
|
|
10
|
+
"@cyber-supplies/cysu_darwin_amd64": "0.6.0",
|
|
11
|
+
"@cyber-supplies/cysu_darwin_arm64": "0.6.0",
|
|
12
|
+
"@cyber-supplies/cysu_windows_amd64": "0.6.0",
|
|
13
|
+
"@cyber-supplies/cysu_windows_arm64": "0.6.0"
|
|
14
14
|
},
|
|
15
15
|
"os": [
|
|
16
16
|
"linux",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"win32"
|
|
19
19
|
],
|
|
20
20
|
"cpu": [
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"arm64",
|
|
22
|
+
"x64"
|
|
23
23
|
],
|
|
24
24
|
"files": [
|
|
25
25
|
"README.md"
|