New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

thinkjs

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thinkjs - npm Package Compare versions

Comparing version 0.1.26 to 0.1.27

1

lib/Conf/config.js

@@ -37,2 +37,3 @@ /**

empty_controller_event: "", //controller不存在时处理的自定义事件,可以在Common/common.js里通过E函数注册自定义事件
log_process_pid: true, //记录进程的id,方便其他脚本处理

@@ -39,0 +40,0 @@ cookie_domain: "", //cookie有效域名

@@ -15,2 +15,4 @@ /**

this.buildApp();
//记录进程的id
this.log_process_pid();
think_require('App').run();

@@ -97,2 +99,19 @@ },

},
/**
* 记录当前进程的id
* @return {[type]} [description]
*/
log_process_pid: function(){
if (C('log_process_pid')) {
var pidFile = DATA_PATH + "/app.pid";
var fs = require("fs");
fs.writeFileSync(pidFile, process.pid);
process.on('SIGTERM', function () {
if (fs.existsSync(pidFile)) {
fs.unlinkSync(pidFile);
}
process.exit(0);
});
};
},
//think_require的自动加载

@@ -99,0 +118,0 @@ autoload: function(cls){

2

package.json
{
"name": "thinkjs",
"description": "thinkphp web framework for nodejs",
"version": "0.1.26",
"version": "0.1.27",
"author": {

@@ -6,0 +6,0 @@ "name": "welefen",

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