Comparing version 0.3.19 to 0.4.0
@@ -248,8 +248,5 @@ var fs = require("fs"); | ||
*/ | ||
var numberReg = /^((\d*\.?\d*(?:e[+-]?\d*(?:\d?\.?|\.?\d?)\d*)?)|(0[0-7]+)|(0x[0-9a-f]+))$/i; | ||
global.isNumberString = function(obj){ | ||
var parseValue = parseFloat(obj); | ||
if (isNaN(parseValue)) { | ||
return false; | ||
}; | ||
return (parseValue + "").length == (obj + "").length | ||
return numberReg.test(obj); | ||
} | ||
@@ -256,0 +253,0 @@ /** |
@@ -17,3 +17,3 @@ /** | ||
LANG_PATH: APP_PATH + "/Lang", | ||
TPL_PATH: APP_PATH + "/Tpl", | ||
VIEW_PATH: APP_PATH + "/View", | ||
HTML_PATH: RUNTIME_PATH + "/Html", | ||
@@ -79,3 +79,3 @@ LOG_PATH: RUNTIME_PATH + "/Log", | ||
LIB_PATH + '/Driver', | ||
TPL_PATH + "/Home" | ||
VIEW_PATH + "/Home" | ||
]; | ||
@@ -99,11 +99,11 @@ dirs.forEach(function(dir) { | ||
var sourceFiles = [ | ||
THINK_PATH + "/Tpl/IndexController.class.js", | ||
THINK_PATH + "/Tpl/index_index.html", | ||
THINK_PATH + "/Tpl/common.js", | ||
THINK_PATH + "/Tpl/ctrl.sh", | ||
THINK_PATH + "/Tpl/config.js" | ||
THINK_PATH + "/View/IndexController.js", | ||
THINK_PATH + "/View/index_index.html", | ||
THINK_PATH + "/View/common.js", | ||
THINK_PATH + "/View/ctrl.sh", | ||
THINK_PATH + "/View/config.js" | ||
]; | ||
var dstFiles = [ | ||
LIB_PATH + "/Controller/Home/IndexController.class.js", | ||
TPL_PATH + "/Home/index_index.html", | ||
LIB_PATH + "/Controller/Home/IndexController.js", | ||
VIEW_PATH + "/Home/index_index.html", | ||
COMMON_PATH + "/common.js", | ||
@@ -110,0 +110,0 @@ APP_PATH + "/../ctrl.sh", |
@@ -7,16 +7,16 @@ /** | ||
module.exports = { | ||
Controller: THINK_LIB_PATH + "/Core/Controller.class.js", | ||
App: THINK_LIB_PATH + "/Core/App.class.js", | ||
Behavior: THINK_LIB_PATH + "/Core/Behavior.class.js", | ||
Cache: THINK_LIB_PATH + "/Core/Cache.class.js", | ||
Db: THINK_LIB_PATH + "/Core/Db.class.js", | ||
Dispatcher: THINK_LIB_PATH + "/Core/Dispatcher.class.js", | ||
Filter: THINK_LIB_PATH + "/Core/Filter.class.js", | ||
Http: THINK_LIB_PATH + "/Core/Http.class.js", | ||
Log: THINK_LIB_PATH + "/Core/Log.class.js", | ||
Model: THINK_LIB_PATH + "/Core/Model.class.js", | ||
Session: THINK_LIB_PATH + "/Core/Session.class.js", | ||
Think: THINK_LIB_PATH + "/Core/Think.class.js", | ||
Valid: THINK_LIB_PATH + "/Core/Valid.class.js", | ||
View: THINK_LIB_PATH + "/Core/View.class.js", | ||
Controller: THINK_LIB_PATH + "/Core/Controller.js", | ||
App: THINK_LIB_PATH + "/Core/App.js", | ||
Behavior: THINK_LIB_PATH + "/Core/Behavior.js", | ||
Cache: THINK_LIB_PATH + "/Core/Cache.js", | ||
Db: THINK_LIB_PATH + "/Core/Db.js", | ||
Dispatcher: THINK_LIB_PATH + "/Core/Dispatcher.js", | ||
Filter: THINK_LIB_PATH + "/Core/Filter.js", | ||
Http: THINK_LIB_PATH + "/Core/Http.js", | ||
Log: THINK_LIB_PATH + "/Core/Log.js", | ||
Model: THINK_LIB_PATH + "/Core/Model.js", | ||
Session: THINK_LIB_PATH + "/Core/Session.js", | ||
Think: THINK_LIB_PATH + "/Core/Think.js", | ||
Valid: THINK_LIB_PATH + "/Core/Valid.js", | ||
View: THINK_LIB_PATH + "/Core/View.js", | ||
} |
@@ -24,3 +24,2 @@ /** | ||
url_params_bind: true, //方法参数绑定,将URL参数值绑定到action的参数上 | ||
class_file_suffix: ".class.js", //类文件后缀 | ||
action_suffix: "Action", //action后缀 | ||
@@ -35,3 +34,3 @@ deny_remote_access_by_ip: false, //禁止通过外网的IP直接访问 | ||
autoload_path: {}, //autoload查找的path,用于thinkRequire加载自定义库的时候查找 | ||
error_tpl_path: THINK_PATH + "/Tpl/error.html", //错误页模版 | ||
error_tpl_path: THINK_PATH + "/View/error.html", //错误页模版 | ||
@@ -38,0 +37,0 @@ deny_ip: [], //阻止的ip |
@@ -8,3 +8,3 @@ /** | ||
db_cache_on: false, | ||
debug_retain_files: ['/node_modules/', '/Model.class.js'], //这些文件在debug模式下不清除缓存 | ||
debug_retain_files: ['/node_modules/', '/Model.js'], //这些文件在debug模式下不清除缓存 | ||
use_cluster: false, | ||
@@ -11,0 +11,0 @@ html_cache_on: false, |
/** | ||
* 不同模式下的配置文件 | ||
* 由于每个模式下的配置可能都比较少,所以放在一个文件里 | ||
* @type {Object} | ||
@@ -4,0 +5,0 @@ */ |
{ | ||
"name": "thinkjs", | ||
"description": "thinkphp web framework for nodejs", | ||
"version": "0.3.19", | ||
"version": "0.4.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "welefen", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206861
6276
5