Huge News!Announcing our $40M Series B led by Abstract Ventures.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.5.4 to 0.5.5

16

lib/Lib/Core/App.js

@@ -55,3 +55,3 @@ /**

var action = this.http.action;
var oldAction = action;
var act = action;
//添加action后缀

@@ -81,3 +81,3 @@ action += C('action_suffix') || "";

return initReturnPromise.then(function(){
return self.execAction(controller, action, oldAction, data);
return self.execAction(controller, action, act, data);
});

@@ -87,3 +87,3 @@ }

return initReturnPromise.then(function(){
return self.execAction(controller, action, oldAction);
return self.execAction(controller, action, act);
});

@@ -96,3 +96,3 @@ }else{

return initReturnPromise.then(function(){
return controller[callMethod](action);
return controller[callMethod](act, action);
});

@@ -109,7 +109,7 @@ }

* @param {[type]} action [description]
* @param {[type]} oldAction [description]
* @param {[type]} act [description]
* @param {[type]} data [description]
* @return {[type]} [description]
*/
execAction: function(controller, action, oldAction, data){
execAction: function(controller, action, act, data){
var promise = getPromise();

@@ -119,3 +119,3 @@ //before action

if (before && typeof controller[before] === 'function') {
promise = getPromise(controller[before](oldAction, action));
promise = getPromise(controller[before](act, action));
}

@@ -129,3 +129,3 @@ return promise.then(function(){

if (after && typeof controller[after] === 'function') {
return controller[after](oldAction, action);
return controller[after](act, action);
}

@@ -132,0 +132,0 @@ });

{
"name": "thinkjs",
"description": "thinkphp web framework for nodejs",
"version": "0.5.4",
"version": "0.5.5",
"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