Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

febs-opm

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

febs-opm - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

1

lib/config.js

@@ -27,2 +27,3 @@ 'use strict';

this.path = cfg.rootPath + "/.opm/";
this.callback = cfg.callback;
let exist = await fs.existsSync(this.path);

@@ -29,0 +30,0 @@ if (!exist) {

@@ -28,2 +28,3 @@ 'use strict';

* interval:30000, // 查询更新的间隔时间
* callback:null // 下载完成后执行的操作.
* }

@@ -30,0 +31,0 @@ */

10

lib/update.js

@@ -58,3 +58,3 @@ 'use strict';

}
let url = cfg.host + "ver/" + cfg.upInfo.ver + ".zip";
let url = cfg.host + "ver/" + cfg.name + "/" + cfg.upInfo.ver + ".zip";
let f = fs.openSync(fileTemp, "a");

@@ -98,4 +98,10 @@ let len = cfg.upInfo.size;

.on("close", () => {
//exec("pm2 restart " + cfg.name);
if (null != cfg.callback) {
cfg.callback();
}
else {
exec("pm2 restart " + cfg.name);
}
})
}

@@ -30,3 +30,3 @@ {

],
"version": "1.0.1"
"version": "1.1.0"
}

@@ -16,2 +16,4 @@

});
```
```
> 说明:使用pm2启动应用, 名称同appName, 目前不支持pm2多开应用。

@@ -12,2 +12,3 @@ // Type definitions for febs

interval?: number, // 查询更新的间隔时间
callback?:()=>{}
}): void;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc