mirror of
https://github.com/gnh1201/welsonjs.git
synced 2026-04-18 18:18:42 +00:00
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:
parent
fe21be0e54
commit
c7f1d6675b
10
app.js
10
app.js
|
|
@ -247,7 +247,7 @@ function TraceError(severity, message, callee) {
|
|||
})([
|
||||
function (s) { fn.call(console, s); }, // 1) severity-specific console
|
||||
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) {
|
||||
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) {
|
||||
require._addScriptProvider(function(url) {
|
||||
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) {
|
||||
require._addScriptProvider(function(url) {
|
||||
try {
|
||||
|
|
@ -852,8 +852,8 @@ if (typeof JSON === "undefined") {
|
|||
__evalFile__("app/assets/js/json2.js");
|
||||
}
|
||||
|
||||
// core-js (formerly, babel-polyfill)
|
||||
require("app/assets/js/core-js-3.38.0.minified");
|
||||
// core-js (polyfills)
|
||||
require("app/assets/js/core-js-3.49.0.wsh");
|
||||
|
||||
// Squel.js SQL query string builder for Javascript
|
||||
var squel = require("app/assets/js/squel-basic-5.13.0-afa1cb5.wsh");
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -47,4 +47,4 @@ echo [*] Registering WelsonJS.Toolkit component...
|
|||
|
||||
:: Final step
|
||||
echo [*] Pre-configuration complete. Starting bootstrap script...
|
||||
cscript app.js bootstrap
|
||||
%SystemRoot%\SysWOW64\cscript.exe app.js bootstrap
|
||||
|
|
|
|||
|
|
@ -106,9 +106,9 @@ var HTTPObject = function(engine) {
|
|||
"Msxml2.XMLHTTP",
|
||||
"Msxml2.XMLHTTP.7.0",
|
||||
"Msxml2.XMLHTTP.6.0",
|
||||
"Msxml2.XMLHTTP.5.O",
|
||||
"Msxml2.XMLHTTP.4.O",
|
||||
"Msxml2.XMLHTTP.3.O",
|
||||
"Msxml2.XMLHTTP.5.0",
|
||||
"Msxml2.XMLHTTP.4.0",
|
||||
"Msxml2.XMLHTTP.3.0",
|
||||
"Msxml2.XMLHTTP.2.6",
|
||||
"Msxml2.ServerXMLHTTP",
|
||||
"Msxml2.ServerXMLHTTP.6.0",
|
||||
|
|
@ -1229,7 +1229,7 @@ exports.parseURL = parseURL;
|
|||
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
||||
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.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user