From 7855b2847c94eb940d748acb0d52893bcb33edbe Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 27 Jul 2020 15:00:55 +0900 Subject: [PATCH] fix --- lib/db.js | 2 +- lib/http.js | 2 +- lib/json.js | 2 +- lib/jsunit.js | 4 ++++ lib/service.js | 6 +++--- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/db.js b/lib/db.js index 6ea10b0..2490743 100644 --- a/lib/db.js +++ b/lib/db.js @@ -4,7 +4,7 @@ var LIB = require("lib/std"); -exports.VERSIONINFO = "Database Module (db.js) version 1.0"; +exports.VERSIONINFO = "Database Lib (db.js) version 1.0"; exports.global = global; exports.require = global.require; diff --git a/lib/http.js b/lib/http.js index 94bebb2..587d646 100644 --- a/lib/http.js +++ b/lib/http.js @@ -4,7 +4,7 @@ var LIB = require("lib/std"); -exports.VERSIONINFO = "HTTP Module (http.js) version 0.1"; +exports.VERSIONINFO = "HTTP Lib (http.js) version 0.1"; exports.global = global; exports.require = global.require; diff --git a/lib/json.js b/lib/json.js index 168406e..48a3db1 100644 --- a/lib/json.js +++ b/lib/json.js @@ -2,7 +2,7 @@ // JSON API //////////////////////////////////////////////////////////////////////// -exports.VERSIONINFO = "JSON Module (json.js) version 0.1"; +exports.VERSIONINFO = "JSON Lib (json.js) version 0.1"; exports.global = global; exports.require = global.require; diff --git a/lib/jsunit.js b/lib/jsunit.js index 4f71cce..58f3c59 100644 --- a/lib/jsunit.js +++ b/lib/jsunit.js @@ -1076,4 +1076,8 @@ JsUnit.Runner.run = function(pathToTestDir) { })(pathToTestDir); } +exports.VERSIONINFO = "JSUnit Lib (jsunit.js) version 2.2"; +exports.global = global; +exports.require = global.require; + exports.JsUnit = JsUnit; diff --git a/lib/service.js b/lib/service.js index dc61af8..cbd383c 100644 --- a/lib/service.js +++ b/lib/service.js @@ -1,6 +1,6 @@ var SHELL = require("lib/shell"); -exports.VERSIONINFO = "Service Module (service.js) version 0.1"; +exports.VERSIONINFO = "Service Lib (service.js) version 0.1"; exports.global = global; exports.require = global.require; @@ -28,7 +28,7 @@ exports.queryService = function(name, options) { } if(_options[k] !== false) { - if(_options[k].constructor == Array) { + if(Array.isArray(_options[k])) { for(var i in options[k]) { cmd.push(k + '='); cmd.push(_options[k][i]); @@ -69,7 +69,7 @@ exports.createService = function(name, options) { } if(_options[k] !== false) { - if(_options[k].constructor == Array) { + if(Array.isArray(_options[k])) { for(var i in options[k]) { cmd.push(k + '='); cmd.push(_options[k][i]);