@famibee/skynovel 1.25.6 → 1.25.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/app.js +69 -128
- package/core/lib/sn/DebugMng.d.ts +1 -2
- package/core/lib/sn/DebugMng.d.ts.map +1 -1
- package/core/lib/sn/SysApp.d.ts.map +1 -1
- package/package.json +1 -1
- package/web.js +25 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.25.7](https://github.com/famibee/SKYNovel/compare/v1.25.6...v1.25.7) (2021-12-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [update_check]アップデート機能が動作不良だったので、暫定修正 ([31e1f6d](https://github.com/famibee/SKYNovel/commit/31e1f6d9d16f12b657b3a7a317f712c3599a470f))
|
|
7
|
+
|
|
8
|
+
- fix: [update_check]アップデート機能が動作不良だったので、暫定修正
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [1.25.6](https://github.com/famibee/SKYNovel/compare/v1.25.5...v1.25.6) (2021-12-27)
|
|
2
12
|
|
|
3
13
|
|
package/app.js
CHANGED
|
@@ -66721,7 +66721,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
66721
66721
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
66722
66722
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
66723
66723
|
};
|
|
66724
|
-
var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_st_trace, _DebugMng_dspDbg;
|
|
66724
|
+
var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_trace_beforeNew, _DebugMng_st_trace, _DebugMng_dspDbg;
|
|
66725
66725
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
66726
66726
|
exports.DebugMng = void 0;
|
|
66727
66727
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -66750,30 +66750,7 @@ class DebugMng {
|
|
|
66750
66750
|
destroy() {
|
|
66751
66751
|
__classPrivateFieldSet(DebugMng, _a, () => false, "f", _DebugMng_title);
|
|
66752
66752
|
document.body.removeChild(__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_spnDbg));
|
|
66753
|
-
DebugMng.myTrace = DebugMng
|
|
66754
|
-
}
|
|
66755
|
-
static trace_beforeNew(txt, lvl = 'E') {
|
|
66756
|
-
let mes = `{${lvl}} ` + txt;
|
|
66757
|
-
let sty = '';
|
|
66758
|
-
switch (lvl) {
|
|
66759
|
-
case 'D':
|
|
66760
|
-
sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
|
|
66761
|
-
break;
|
|
66762
|
-
case 'W':
|
|
66763
|
-
sty = 'color:#FF8800;';
|
|
66764
|
-
break;
|
|
66765
|
-
case 'F':
|
|
66766
|
-
sty = 'color:#BB0000;';
|
|
66767
|
-
break;
|
|
66768
|
-
case 'ET': throw mes;
|
|
66769
|
-
case 'E':
|
|
66770
|
-
console.error('%c' + mes, 'color:#FF3300;');
|
|
66771
|
-
return;
|
|
66772
|
-
default:
|
|
66773
|
-
sty = 'color:black;';
|
|
66774
|
-
mes = ' ' + mes;
|
|
66775
|
-
}
|
|
66776
|
-
console.info('%c' + mes, sty);
|
|
66753
|
+
DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
|
|
66777
66754
|
}
|
|
66778
66755
|
;
|
|
66779
66756
|
}
|
|
@@ -66790,6 +66767,28 @@ _a = DebugMng, _DebugMng_first = new WeakMap(), _DebugMng_instances = new WeakSe
|
|
|
66790
66767
|
}, _DebugMng_trace = function _DebugMng_trace(hArg) {
|
|
66791
66768
|
DebugMng.myTrace(hArg.text || `(text is ${hArg.text})`, 'I');
|
|
66792
66769
|
return false;
|
|
66770
|
+
}, _DebugMng_trace_beforeNew = function _DebugMng_trace_beforeNew(txt, lvl = 'E') {
|
|
66771
|
+
let mes = `{${lvl}} ` + txt;
|
|
66772
|
+
let sty = '';
|
|
66773
|
+
switch (lvl) {
|
|
66774
|
+
case 'D':
|
|
66775
|
+
sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
|
|
66776
|
+
break;
|
|
66777
|
+
case 'W':
|
|
66778
|
+
sty = 'color:#FF8800;';
|
|
66779
|
+
break;
|
|
66780
|
+
case 'F':
|
|
66781
|
+
sty = 'color:#BB0000;';
|
|
66782
|
+
break;
|
|
66783
|
+
case 'ET': throw mes;
|
|
66784
|
+
case 'E':
|
|
66785
|
+
console.error('%c' + mes, 'color:#FF3300;');
|
|
66786
|
+
return;
|
|
66787
|
+
default:
|
|
66788
|
+
sty = 'color:black;';
|
|
66789
|
+
mes = ' ' + mes;
|
|
66790
|
+
}
|
|
66791
|
+
console.info('%c' + mes, sty);
|
|
66793
66792
|
}, _DebugMng_st_trace = function _DebugMng_st_trace(txt, lvl = 'E') {
|
|
66794
66793
|
let mes = `{${lvl}} `;
|
|
66795
66794
|
if (__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr) && __classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr).lineNum > 0)
|
|
@@ -66849,7 +66848,7 @@ _DebugMng_scrItr = { value: void 0 };
|
|
|
66849
66848
|
_DebugMng_hTag = { value: void 0 };
|
|
66850
66849
|
_DebugMng_title = { value: void 0 };
|
|
66851
66850
|
_DebugMng_spnDbg = { value: void 0 };
|
|
66852
|
-
DebugMng.myTrace = DebugMng
|
|
66851
|
+
DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
|
|
66853
66852
|
|
|
66854
66853
|
|
|
66855
66854
|
/***/ }),
|
|
@@ -73057,25 +73056,6 @@ _SoundMng_MAX_END_MS = { value: 999000 };
|
|
|
73057
73056
|
|
|
73058
73057
|
"use strict";
|
|
73059
73058
|
|
|
73060
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
73061
|
-
if (k2 === undefined) k2 = k;
|
|
73062
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
73063
|
-
}) : (function(o, m, k, k2) {
|
|
73064
|
-
if (k2 === undefined) k2 = k;
|
|
73065
|
-
o[k2] = m[k];
|
|
73066
|
-
}));
|
|
73067
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
73068
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
73069
|
-
}) : function(o, v) {
|
|
73070
|
-
o["default"] = v;
|
|
73071
|
-
});
|
|
73072
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
73073
|
-
if (mod && mod.__esModule) return mod;
|
|
73074
|
-
var result = {};
|
|
73075
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
73076
|
-
__setModuleDefault(result, mod);
|
|
73077
|
-
return result;
|
|
73078
|
-
};
|
|
73079
73059
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
73080
73060
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
73081
73061
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -73094,7 +73074,7 @@ const SysNode_1 = __webpack_require__(/*! ./SysNode */ "./core/src/sn/SysNode.ts
|
|
|
73094
73074
|
const SysBase_1 = __webpack_require__(/*! ./SysBase */ "./core/src/sn/SysBase.ts");
|
|
73095
73075
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
73096
73076
|
const Main_1 = __webpack_require__(/*! ./Main */ "./core/src/sn/Main.ts");
|
|
73097
|
-
const
|
|
73077
|
+
const DebugMng_1 = __webpack_require__(/*! ./DebugMng */ "./core/src/sn/DebugMng.ts");
|
|
73098
73078
|
const { to_app } = window;
|
|
73099
73079
|
class SysApp extends SysNode_1.SysNode {
|
|
73100
73080
|
constructor(hPlg = {}, arg = { cur: 'prj/', crypto: false, dip: '' }) {
|
|
@@ -73246,82 +73226,63 @@ class SysApp extends SysNode_1.SysNode {
|
|
|
73246
73226
|
throw '[update_check] urlは必須です';
|
|
73247
73227
|
if (url.slice(-1) !== '/')
|
|
73248
73228
|
throw '[update_check] urlの最後は/です';
|
|
73229
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73230
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] url=${url}`, 'D');
|
|
73249
73231
|
(async () => {
|
|
73250
73232
|
const res = await this.fetch(url + `latest${CmnLib_1.CmnLib.isMac ? '-mac' : ''}.yml`);
|
|
73251
|
-
if (!res.ok)
|
|
73233
|
+
if (!res.ok) {
|
|
73234
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73235
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] [update_check] .ymlが見つかりません`);
|
|
73252
73236
|
return;
|
|
73237
|
+
}
|
|
73253
73238
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73254
|
-
|
|
73255
|
-
const
|
|
73256
|
-
const mv = /version: (.+)/.exec(
|
|
73239
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] .ymlを取得しました`, 'D');
|
|
73240
|
+
const txtYml = await res.text();
|
|
73241
|
+
const mv = /version: (.+)/.exec(txtYml);
|
|
73257
73242
|
if (!mv)
|
|
73258
|
-
throw `[update_check]
|
|
73243
|
+
throw `[update_check] .yml に version が見つかりません`;
|
|
73259
73244
|
const netver = mv[1];
|
|
73260
|
-
const
|
|
73261
|
-
if (
|
|
73245
|
+
const appver = __classPrivateFieldGet(this, _SysApp_hInfo, "f").getVersion;
|
|
73246
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73247
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] 現在ver=${appver} 新規ver=${netver}`, 'D');
|
|
73248
|
+
if (netver === appver) {
|
|
73262
73249
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73263
|
-
|
|
73250
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] バージョン更新なし`, 'I');
|
|
73264
73251
|
return;
|
|
73265
73252
|
}
|
|
73266
73253
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73267
|
-
|
|
73268
|
-
const
|
|
73269
|
-
title: 'アプリ更新',
|
|
73270
|
-
icon: __classPrivateFieldGet(this, _SysApp_hInfo, "f").getAppPath + '/app/icon.png',
|
|
73271
|
-
buttons: ['OK', 'Cancel'],
|
|
73272
|
-
defaultId: 0,
|
|
73273
|
-
cancelId: 1,
|
|
73274
|
-
message: `アプリ【${this.cfg.oCfg.book.title}】に更新があります。\nダウンロードしますか?`,
|
|
73275
|
-
detail: `現在ver ${myver}\n新規ver ${netver}`,
|
|
73276
|
-
};
|
|
73277
|
-
if (CmnLib_1.CmnLib.debugLog)
|
|
73278
|
-
console.log(`[update_check] アプリダウンロード開始`);
|
|
73279
|
-
const mp = /path: (.+)/.exec(txt);
|
|
73254
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] アプリダウンロード開始`, 'D');
|
|
73255
|
+
const mp = /path: (.+)/.exec(txtYml);
|
|
73280
73256
|
if (!mp)
|
|
73281
|
-
throw `[update_check]
|
|
73282
|
-
const
|
|
73283
|
-
|
|
73257
|
+
throw `[update_check] .yml に path が見つかりません`;
|
|
73258
|
+
const path = mp[1];
|
|
73259
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73260
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] path=${path}`, 'D');
|
|
73261
|
+
const mc = /sha512: (.+)/.exec(txtYml);
|
|
73284
73262
|
if (!mc)
|
|
73285
|
-
throw `[update_check]
|
|
73263
|
+
throw `[update_check] .yml に sha512 が見つかりません`;
|
|
73286
73264
|
const sha = mc[1];
|
|
73287
|
-
|
|
73288
|
-
|
|
73289
|
-
|
|
73290
|
-
|
|
73291
|
-
const rd_dl = async (res) => {
|
|
73292
|
-
const reader = res.body.getReader();
|
|
73293
|
-
const { Readable } = await Promise.resolve().then(() => __importStar(__webpack_require__(/*! stream */ "?1f4d")));
|
|
73294
|
-
const rdb = new Readable();
|
|
73295
|
-
rdb._read = async () => {
|
|
73296
|
-
const { done, value } = await reader.read();
|
|
73297
|
-
if (done) {
|
|
73298
|
-
rdb.push(null);
|
|
73299
|
-
return;
|
|
73300
|
-
}
|
|
73301
|
-
rdb.push(Buffer.from(value));
|
|
73302
|
-
};
|
|
73303
|
-
return rdb;
|
|
73304
|
-
};
|
|
73305
|
-
const pipe_dl = await rd_dl(res_dl);
|
|
73306
|
-
pipe_dl.on('end', () => {
|
|
73265
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73266
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] sha=${sha}=`, 'D');
|
|
73267
|
+
const res_dl = await this.fetch(url + path);
|
|
73268
|
+
if (!res_dl.ok) {
|
|
73307
73269
|
if (CmnLib_1.CmnLib.debugLog)
|
|
73308
|
-
|
|
73309
|
-
|
|
73310
|
-
|
|
73311
|
-
|
|
73312
|
-
|
|
73313
|
-
|
|
73314
|
-
|
|
73315
|
-
|
|
73316
|
-
|
|
73317
|
-
|
|
73318
|
-
|
|
73319
|
-
|
|
73320
|
-
|
|
73321
|
-
|
|
73322
|
-
|
|
73323
|
-
|
|
73324
|
-
pipe_dl.pipe(await to_app.createWriteStream(pathDL));
|
|
73270
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] アプリファイルが見つかりません url=${url + path}`);
|
|
73271
|
+
return;
|
|
73272
|
+
}
|
|
73273
|
+
const pathDL = __classPrivateFieldGet(this, _SysApp_hInfo, "f").downloads + '/' + path;
|
|
73274
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73275
|
+
DebugMng_1.DebugMng.myTrace(`[update_check] pathDL=${pathDL}`, 'D');
|
|
73276
|
+
const b = await res_dl.blob();
|
|
73277
|
+
const url2 = URL.createObjectURL(b);
|
|
73278
|
+
const a = document.createElement('a');
|
|
73279
|
+
document.body.appendChild(a);
|
|
73280
|
+
a.download = path;
|
|
73281
|
+
a.href = url2;
|
|
73282
|
+
a.click();
|
|
73283
|
+
a.remove();
|
|
73284
|
+
if (CmnLib_1.CmnLib.debugLog)
|
|
73285
|
+
DebugMng_1.DebugMng.myTrace(`アプリファイルを保存しました`, 'D');
|
|
73325
73286
|
})();
|
|
73326
73287
|
return false;
|
|
73327
73288
|
};
|
|
@@ -77434,26 +77395,6 @@ yeast.decode = decode;
|
|
|
77434
77395
|
module.exports = yeast;
|
|
77435
77396
|
|
|
77436
77397
|
|
|
77437
|
-
/***/ }),
|
|
77438
|
-
|
|
77439
|
-
/***/ "?056f":
|
|
77440
|
-
/*!************************!*\
|
|
77441
|
-
!*** crypto (ignored) ***!
|
|
77442
|
-
\************************/
|
|
77443
|
-
/***/ (() => {
|
|
77444
|
-
|
|
77445
|
-
/* (ignored) */
|
|
77446
|
-
|
|
77447
|
-
/***/ }),
|
|
77448
|
-
|
|
77449
|
-
/***/ "?1f4d":
|
|
77450
|
-
/*!************************!*\
|
|
77451
|
-
!*** stream (ignored) ***!
|
|
77452
|
-
\************************/
|
|
77453
|
-
/***/ (() => {
|
|
77454
|
-
|
|
77455
|
-
/* (ignored) */
|
|
77456
|
-
|
|
77457
77398
|
/***/ }),
|
|
77458
77399
|
|
|
77459
77400
|
/***/ "./node_modules/engine.io-client/build/cjs/globalThis.browser.js":
|
|
@@ -6,7 +6,6 @@ export declare class DebugMng {
|
|
|
6
6
|
private readonly sys;
|
|
7
7
|
constructor(sys: SysBase, hTag: IHTag, scrItr: ScriptIterator);
|
|
8
8
|
destroy(): void;
|
|
9
|
-
static
|
|
10
|
-
static myTrace: typeof DebugMng.trace_beforeNew;
|
|
9
|
+
static myTrace: typeof DebugMng.__#68@#trace_beforeNew;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=DebugMng.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugMng.d.ts","sourceRoot":"","sources":["../../src/sn/DebugMng.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,QAAQ;;IAMR,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc;IA0B9E,OAAO;
|
|
1
|
+
{"version":3,"file":"DebugMng.d.ts","sourceRoot":"","sources":["../../src/sn/DebugMng.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,QAAQ;;IAMR,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc;IA0B9E,OAAO;IA8CP,MAAM,CAAC,OAAO,yCAA6B;CAgD3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SysApp.d.ts","sourceRoot":"","sources":["../../src/sn/SysApp.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"SysApp.d.ts","sourceRoot":"","sources":["../../src/sn/SysApp.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAI/F,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAOpC,qBAAa,MAAO,SAAQ,OAAO;;gBACtB,IAAI,KAAK,EAAE,GAAG;;;;KAAwC;cAKzC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW;IA2B/D,UAAmB,YAAY,oCAAuB;IACtD,UAAmB,aAAa,wEAAwB;IAC/C,UAAU,gFAAqB;IAC/B,cAAc,kCAAyB;IAEhD,UAAoB,cAAc,SAAO;IACzC,UAAmB,eAAe,SAAM;IAE/B,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAI,IAAI;cAqDpD,GAAG;IAWnB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE;IAcrF,YAAY,SAAgB,MAAM,MAAM,MAAM,mBAMrD;IACO,aAAa,UAAiB,MAAM,mBAE3C;IAGF,mBAA4B,KAAK,gBAA2C;IAG5E,mBAA4B,OAAO,EAAE,IAAI,CAcxC;IAGD,mBAA4B,OAAO,EAAE,IAAI,CAwCxC;IAGD,mBAA4B,WAAW,EAAE,IAAI,CAO5C;cAEkB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAEzC,mBAA4B,YAAY,EAAE,IAAI,CAe7C;IACD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,sBAmClC;IAED,mBAA4B,YAAY,EAAE,IAAI,CA4J7C;IAED,mBAA4B,MAAM,EAAE,IAAI,CASvC;IAED,SAAkB,cAAc,OAAQ,MAAM,aAG7C;CAED"}
|
package/package.json
CHANGED
package/web.js
CHANGED
|
@@ -68069,7 +68069,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
68069
68069
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
68070
68070
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
68071
68071
|
};
|
|
68072
|
-
var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_st_trace, _DebugMng_dspDbg;
|
|
68072
|
+
var _DebugMng_instances, _a, _DebugMng_scrItr, _DebugMng_hTag, _DebugMng_title, _DebugMng_spnDbg, _DebugMng_first, _DebugMng_log, _DebugMng_trace, _DebugMng_trace_beforeNew, _DebugMng_st_trace, _DebugMng_dspDbg;
|
|
68073
68073
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68074
68074
|
exports.DebugMng = void 0;
|
|
68075
68075
|
const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
|
|
@@ -68098,30 +68098,7 @@ class DebugMng {
|
|
|
68098
68098
|
destroy() {
|
|
68099
68099
|
__classPrivateFieldSet(DebugMng, _a, () => false, "f", _DebugMng_title);
|
|
68100
68100
|
document.body.removeChild(__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_spnDbg));
|
|
68101
|
-
DebugMng.myTrace = DebugMng
|
|
68102
|
-
}
|
|
68103
|
-
static trace_beforeNew(txt, lvl = 'E') {
|
|
68104
|
-
let mes = `{${lvl}} ` + txt;
|
|
68105
|
-
let sty = '';
|
|
68106
|
-
switch (lvl) {
|
|
68107
|
-
case 'D':
|
|
68108
|
-
sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
|
|
68109
|
-
break;
|
|
68110
|
-
case 'W':
|
|
68111
|
-
sty = 'color:#FF8800;';
|
|
68112
|
-
break;
|
|
68113
|
-
case 'F':
|
|
68114
|
-
sty = 'color:#BB0000;';
|
|
68115
|
-
break;
|
|
68116
|
-
case 'ET': throw mes;
|
|
68117
|
-
case 'E':
|
|
68118
|
-
console.error('%c' + mes, 'color:#FF3300;');
|
|
68119
|
-
return;
|
|
68120
|
-
default:
|
|
68121
|
-
sty = 'color:black;';
|
|
68122
|
-
mes = ' ' + mes;
|
|
68123
|
-
}
|
|
68124
|
-
console.info('%c' + mes, sty);
|
|
68101
|
+
DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
|
|
68125
68102
|
}
|
|
68126
68103
|
;
|
|
68127
68104
|
}
|
|
@@ -68138,6 +68115,28 @@ _a = DebugMng, _DebugMng_first = new WeakMap(), _DebugMng_instances = new WeakSe
|
|
|
68138
68115
|
}, _DebugMng_trace = function _DebugMng_trace(hArg) {
|
|
68139
68116
|
DebugMng.myTrace(hArg.text || `(text is ${hArg.text})`, 'I');
|
|
68140
68117
|
return false;
|
|
68118
|
+
}, _DebugMng_trace_beforeNew = function _DebugMng_trace_beforeNew(txt, lvl = 'E') {
|
|
68119
|
+
let mes = `{${lvl}} ` + txt;
|
|
68120
|
+
let sty = '';
|
|
68121
|
+
switch (lvl) {
|
|
68122
|
+
case 'D':
|
|
68123
|
+
sty = `color:#${CmnLib_1.CmnLib.isDarkMode ? '49F' : '05A'};`;
|
|
68124
|
+
break;
|
|
68125
|
+
case 'W':
|
|
68126
|
+
sty = 'color:#FF8800;';
|
|
68127
|
+
break;
|
|
68128
|
+
case 'F':
|
|
68129
|
+
sty = 'color:#BB0000;';
|
|
68130
|
+
break;
|
|
68131
|
+
case 'ET': throw mes;
|
|
68132
|
+
case 'E':
|
|
68133
|
+
console.error('%c' + mes, 'color:#FF3300;');
|
|
68134
|
+
return;
|
|
68135
|
+
default:
|
|
68136
|
+
sty = 'color:black;';
|
|
68137
|
+
mes = ' ' + mes;
|
|
68138
|
+
}
|
|
68139
|
+
console.info('%c' + mes, sty);
|
|
68141
68140
|
}, _DebugMng_st_trace = function _DebugMng_st_trace(txt, lvl = 'E') {
|
|
68142
68141
|
let mes = `{${lvl}} `;
|
|
68143
68142
|
if (__classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr) && __classPrivateFieldGet(DebugMng, _a, "f", _DebugMng_scrItr).lineNum > 0)
|
|
@@ -68197,7 +68196,7 @@ _DebugMng_scrItr = { value: void 0 };
|
|
|
68197
68196
|
_DebugMng_hTag = { value: void 0 };
|
|
68198
68197
|
_DebugMng_title = { value: void 0 };
|
|
68199
68198
|
_DebugMng_spnDbg = { value: void 0 };
|
|
68200
|
-
DebugMng.myTrace = DebugMng
|
|
68199
|
+
DebugMng.myTrace = __classPrivateFieldGet(DebugMng, _a, "m", _DebugMng_trace_beforeNew);
|
|
68201
68200
|
|
|
68202
68201
|
|
|
68203
68202
|
/***/ }),
|