Switch WSH output and update core-js

Replace WScript.Echo with WScript.StdOut.WriteLine for WSH console output and reword provider comments to reflect requesting scripts (including LLM/AI services). Update core-js usage to app/assets/js/core-js-3.49.0.wsh and adjust related require paths (including squel), and remove the old core-js-3.26.1 minified file. Other minor changes include updates to bootstrap.bat and lib/http.js.
This commit is contained in:
Namhyeon, Go 2026-04-11 12:42:07 +09:00
parent fe21be0e54
commit c7f1d6675b
4 changed files with 10 additions and 24 deletions

10
app.js
View File

@ -247,7 +247,7 @@ function TraceError(severity, message, callee) {
})([ })([
function (s) { fn.call(console, s); }, // 1) severity-specific console function (s) { fn.call(console, s); }, // 1) severity-specific console
function (s) { console.log(s); }, // 2) generic console.log function (s) { console.log(s); }, // 2) generic console.log
function (s) { WScript.Echo(s); } // 3) WSH fallback function (s) { WScript.StdOut.WriteLine(s); } // 3) WSH fallback
]); ]);
} }
@ -413,7 +413,7 @@ function require(pathname) {
if (pos > -1) { if (pos > -1) {
var scheme = FN.substring(0, pos); var scheme = FN.substring(0, pos);
// load script from a remote server // request a script from a remote server
if (["http", "https"].indexOf(scheme) > -1) { if (["http", "https"].indexOf(scheme) > -1) {
require._addScriptProvider(function(url) { require._addScriptProvider(function(url) {
try { try {
@ -424,7 +424,7 @@ function require(pathname) {
}); });
} }
// load script from LIE(Language Inference Engine) service // request a script from LLM based AI services
if (["ai"].indexOf(scheme) > -1) { if (["ai"].indexOf(scheme) > -1) {
require._addScriptProvider(function(url) { require._addScriptProvider(function(url) {
try { try {
@ -852,8 +852,8 @@ if (typeof JSON === "undefined") {
__evalFile__("app/assets/js/json2.js"); __evalFile__("app/assets/js/json2.js");
} }
// core-js (formerly, babel-polyfill) // core-js (polyfills)
require("app/assets/js/core-js-3.38.0.minified"); require("app/assets/js/core-js-3.49.0.wsh");
// Squel.js SQL query string builder for Javascript // Squel.js SQL query string builder for Javascript
var squel = require("app/assets/js/squel-basic-5.13.0-afa1cb5.wsh"); var squel = require("app/assets/js/squel-basic-5.13.0-afa1cb5.wsh");

File diff suppressed because one or more lines are too long

View File

@ -47,4 +47,4 @@ echo [*] Registering WelsonJS.Toolkit component...
:: Final step :: Final step
echo [*] Pre-configuration complete. Starting bootstrap script... echo [*] Pre-configuration complete. Starting bootstrap script...
cscript app.js bootstrap %SystemRoot%\SysWOW64\cscript.exe app.js bootstrap

View File

@ -106,9 +106,9 @@ var HTTPObject = function(engine) {
"Msxml2.XMLHTTP", "Msxml2.XMLHTTP",
"Msxml2.XMLHTTP.7.0", "Msxml2.XMLHTTP.7.0",
"Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.6.0",
"Msxml2.XMLHTTP.5.O", "Msxml2.XMLHTTP.5.0",
"Msxml2.XMLHTTP.4.O", "Msxml2.XMLHTTP.4.0",
"Msxml2.XMLHTTP.3.O", "Msxml2.XMLHTTP.3.0",
"Msxml2.XMLHTTP.2.6", "Msxml2.XMLHTTP.2.6",
"Msxml2.ServerXMLHTTP", "Msxml2.ServerXMLHTTP",
"Msxml2.ServerXMLHTTP.6.0", "Msxml2.ServerXMLHTTP.6.0",
@ -1229,7 +1229,7 @@ exports.parseURL = parseURL;
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT; exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
exports.defaultUserAgent = DEFAULT_USER_AGENT; // compatible exports.defaultUserAgent = DEFAULT_USER_AGENT; // compatible
exports.VERSIONINFO = "WelsonJS framework HTTP client (http.js) version 0.7.48"; exports.VERSIONINFO = "WelsonJS framework HTTP client (http.js) version 0.7.49";
exports.AUTHOR = "gnh1201@catswords.re.kr"; exports.AUTHOR = "gnh1201@catswords.re.kr";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;