This commit is contained in:
Namhyeon Go 2020-07-27 15:00:55 +09:00
parent 0f45cd28ac
commit 7855b2847c
5 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,7 @@
var LIB = require("lib/std"); 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.global = global;
exports.require = global.require; exports.require = global.require;

View File

@ -4,7 +4,7 @@
var LIB = require("lib/std"); 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.global = global;
exports.require = global.require; exports.require = global.require;

View File

@ -2,7 +2,7 @@
// JSON API // JSON API
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
exports.VERSIONINFO = "JSON Module (json.js) version 0.1"; exports.VERSIONINFO = "JSON Lib (json.js) version 0.1";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;

View File

@ -1076,4 +1076,8 @@ JsUnit.Runner.run = function(pathToTestDir) {
})(pathToTestDir); })(pathToTestDir);
} }
exports.VERSIONINFO = "JSUnit Lib (jsunit.js) version 2.2";
exports.global = global;
exports.require = global.require;
exports.JsUnit = JsUnit; exports.JsUnit = JsUnit;

View File

@ -1,6 +1,6 @@
var SHELL = require("lib/shell"); 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.global = global;
exports.require = global.require; exports.require = global.require;
@ -28,7 +28,7 @@ exports.queryService = function(name, options) {
} }
if(_options[k] !== false) { if(_options[k] !== false) {
if(_options[k].constructor == Array) { if(Array.isArray(_options[k])) {
for(var i in options[k]) { for(var i in options[k]) {
cmd.push(k + '='); cmd.push(k + '=');
cmd.push(_options[k][i]); cmd.push(_options[k][i]);
@ -69,7 +69,7 @@ exports.createService = function(name, options) {
} }
if(_options[k] !== false) { if(_options[k] !== false) {
if(_options[k].constructor == Array) { if(Array.isArray(_options[k])) {
for(var i in options[k]) { for(var i in options[k]) {
cmd.push(k + '='); cmd.push(k + '=');
cmd.push(_options[k][i]); cmd.push(_options[k][i]);