@twikoojs/edgeone-makers 2.0.15 → 2.0.16
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/dist/cloud-functions/index.js +209 -119
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __esmMin = (fn, res, err) => () => {
|
|
|
16
16
|
throw err = [e], e;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
19
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
20
20
|
var __exportAll = (all, no_symbols) => {
|
|
21
21
|
let target = {};
|
|
22
22
|
for (var name in all) __defProp(target, name, {
|
|
@@ -43,7 +43,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region ../shared/dist/index.mjs
|
|
46
|
-
/*! @twikoojs/shared v2.0.
|
|
46
|
+
/*! @twikoojs/shared v2.0.16 */
|
|
47
47
|
/**
|
|
48
48
|
* Twikoo 统一版本号常量(构建期占位符)。
|
|
49
49
|
*
|
|
@@ -56,7 +56,7 @@ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
|
56
56
|
* 占位符字面量由 `@twikoojs/tsdown-config` 的 `VERSION_PLACEHOLDER` 常量定义,
|
|
57
57
|
* 客户端与服务端统一读取本常量,避免版本号在多包之间手工同步。
|
|
58
58
|
*/
|
|
59
|
-
const VERSION = "2.0.
|
|
59
|
+
const VERSION = "2.0.16";
|
|
60
60
|
/**
|
|
61
61
|
* 后端事件名常量(Scope E:24 个客户端事件 + 1 个服务端内部事件)。
|
|
62
62
|
*
|
|
@@ -191,9 +191,9 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
191
191
|
* @property {StorageHooks} [storage] - Custom storage hooks for challenges and tokens
|
|
192
192
|
*/
|
|
193
193
|
/** @type {typeof import('node:crypto')} */
|
|
194
|
-
const crypto
|
|
194
|
+
const crypto = __require("node:crypto");
|
|
195
195
|
/** @type {typeof import('node:fs/promises')} */
|
|
196
|
-
const fs
|
|
196
|
+
const fs = __require("node:fs/promises");
|
|
197
197
|
const { EventEmitter } = __require("node:events");
|
|
198
198
|
const DEFAULT_TOKENS_STORE = ".data/tokensList.json";
|
|
199
199
|
/**
|
|
@@ -203,13 +203,13 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
203
203
|
* @returns {Promise<string>} Deterministic hex string generated from the seed
|
|
204
204
|
*/
|
|
205
205
|
async function randomHex(bytesCount) {
|
|
206
|
-
if (crypto
|
|
206
|
+
if (crypto.getRandomValues) {
|
|
207
207
|
const bytes = new Uint8Array(bytesCount);
|
|
208
|
-
crypto
|
|
208
|
+
crypto.getRandomValues(bytes);
|
|
209
209
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
210
210
|
}
|
|
211
211
|
return new Promise((resolve, reject) => {
|
|
212
|
-
crypto
|
|
212
|
+
crypto.randomBytes(bytesCount, (err, buf) => {
|
|
213
213
|
if (err) return reject(err);
|
|
214
214
|
resolve(buf.toString("hex"));
|
|
215
215
|
});
|
|
@@ -221,12 +221,12 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
221
221
|
* @returns {Promise<string>}
|
|
222
222
|
*/
|
|
223
223
|
async function sha256(str) {
|
|
224
|
-
if (crypto
|
|
224
|
+
if (crypto.webcrypto?.subtle) {
|
|
225
225
|
const enc = new TextEncoder();
|
|
226
|
-
const hash = await crypto
|
|
226
|
+
const hash = await crypto.webcrypto.subtle.digest("SHA-256", enc.encode(str));
|
|
227
227
|
return Buffer.from(hash).toString("hex");
|
|
228
228
|
}
|
|
229
|
-
return crypto
|
|
229
|
+
return crypto.createHash("sha256").update(str).digest("hex");
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
232
|
* Generates a deterministic hex string of given length from a string seed
|
|
@@ -405,7 +405,7 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
405
405
|
if (this.config.storage?.tokens?.store) await this.config.storage.tokens.store(tokenKey, expires);
|
|
406
406
|
else {
|
|
407
407
|
if (this?.config?.state?.tokensList) this.config.state.tokensList[tokenKey] = expires;
|
|
408
|
-
if (!this.config.noFSState) await fs
|
|
408
|
+
if (!this.config.noFSState) await fs.writeFile(this.config.tokens_store_path, JSON.stringify(this.config.state.tokensList), "utf8");
|
|
409
409
|
}
|
|
410
410
|
return {
|
|
411
411
|
success: true,
|
|
@@ -433,7 +433,7 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
433
433
|
if (this.config.storage?.tokens?.delete) await this.config.storage.tokens.delete(tokenKey);
|
|
434
434
|
else {
|
|
435
435
|
delete this.config.state.tokensList[tokenKey];
|
|
436
|
-
if (!this.config.noFSState) await fs
|
|
436
|
+
if (!this.config.noFSState) await fs.writeFile(this.config.tokens_store_path, JSON.stringify(this.config.state.tokensList), "utf8");
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
/**
|
|
@@ -466,15 +466,15 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
466
466
|
if (this.config.noFSState || this.config.storage?.tokens) return;
|
|
467
467
|
try {
|
|
468
468
|
const dirPath = this.config.tokens_store_path.split("/").slice(0, -1).join("/");
|
|
469
|
-
if (dirPath) await fs
|
|
469
|
+
if (dirPath) await fs.mkdir(dirPath, { recursive: true });
|
|
470
470
|
try {
|
|
471
|
-
await fs
|
|
472
|
-
const data = await fs
|
|
471
|
+
await fs.access(this.config.tokens_store_path);
|
|
472
|
+
const data = await fs.readFile(this.config.tokens_store_path, "utf-8");
|
|
473
473
|
this.config.state.tokensList = JSON.parse(data) || {};
|
|
474
474
|
await this._lazyCleanup();
|
|
475
475
|
} catch {
|
|
476
476
|
console.warn(`[cap] tokens file not found, creating a new empty one`);
|
|
477
|
-
await fs
|
|
477
|
+
await fs.writeFile(this.config.tokens_store_path, "{}", "utf-8");
|
|
478
478
|
this.config.state.tokensList = {};
|
|
479
479
|
}
|
|
480
480
|
} catch {
|
|
@@ -528,7 +528,7 @@ var require_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
528
528
|
async cleanup() {
|
|
529
529
|
if (this._cleanupPromise) return this._cleanupPromise;
|
|
530
530
|
this._cleanupPromise = (async () => {
|
|
531
|
-
if (await this._cleanExpiredTokens() && !this.config.noFSState && !this.config.storage?.tokens?.store) await fs
|
|
531
|
+
if (await this._cleanExpiredTokens() && !this.config.noFSState && !this.config.storage?.tokens?.store) await fs.writeFile(this.config.tokens_store_path, JSON.stringify(this.config.state.tokensList), "utf8");
|
|
532
532
|
})();
|
|
533
533
|
return this._cleanupPromise;
|
|
534
534
|
}
|
|
@@ -543,8 +543,8 @@ var init_lib_stubs = __esmMin((() => {}));
|
|
|
543
543
|
//#endregion
|
|
544
544
|
//#region ../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
|
|
545
545
|
var require_delayed_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
546
|
-
var Stream
|
|
547
|
-
var util
|
|
546
|
+
var Stream = __require("stream").Stream;
|
|
547
|
+
var util = __require("util");
|
|
548
548
|
module.exports = DelayedStream;
|
|
549
549
|
function DelayedStream() {
|
|
550
550
|
this.source = null;
|
|
@@ -555,7 +555,7 @@ var require_delayed_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
555
555
|
this._released = false;
|
|
556
556
|
this._bufferedEvents = [];
|
|
557
557
|
}
|
|
558
|
-
util
|
|
558
|
+
util.inherits(DelayedStream, Stream);
|
|
559
559
|
DelayedStream.create = function(source, options) {
|
|
560
560
|
var delayedStream = new this();
|
|
561
561
|
options = options || {};
|
|
@@ -595,7 +595,7 @@ var require_delayed_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
595
595
|
this._bufferedEvents = [];
|
|
596
596
|
};
|
|
597
597
|
DelayedStream.prototype.pipe = function() {
|
|
598
|
-
var r = Stream
|
|
598
|
+
var r = Stream.prototype.pipe.apply(this, arguments);
|
|
599
599
|
this.resume();
|
|
600
600
|
return r;
|
|
601
601
|
};
|
|
@@ -621,8 +621,8 @@ var require_delayed_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
621
621
|
//#endregion
|
|
622
622
|
//#region ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
|
623
623
|
var require_combined_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
624
|
-
var util
|
|
625
|
-
var Stream
|
|
624
|
+
var util = __require("util");
|
|
625
|
+
var Stream = __require("stream").Stream;
|
|
626
626
|
var DelayedStream = require_delayed_stream();
|
|
627
627
|
module.exports = CombinedStream;
|
|
628
628
|
function CombinedStream() {
|
|
@@ -637,7 +637,7 @@ var require_combined_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
637
637
|
this._insideLoop = false;
|
|
638
638
|
this._pendingNext = false;
|
|
639
639
|
}
|
|
640
|
-
util
|
|
640
|
+
util.inherits(CombinedStream, Stream);
|
|
641
641
|
CombinedStream.create = function(options) {
|
|
642
642
|
var combinedStream = new this();
|
|
643
643
|
options = options || {};
|
|
@@ -664,7 +664,7 @@ var require_combined_stream = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
664
664
|
return this;
|
|
665
665
|
};
|
|
666
666
|
CombinedStream.prototype.pipe = function(dest, options) {
|
|
667
|
-
Stream
|
|
667
|
+
Stream.prototype.pipe.call(this, dest, options);
|
|
668
668
|
this.resume();
|
|
669
669
|
return dest;
|
|
670
670
|
};
|
|
@@ -9153,7 +9153,7 @@ var require_form_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9153
9153
|
}));
|
|
9154
9154
|
//#endregion
|
|
9155
9155
|
//#region ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/defaults.js
|
|
9156
|
-
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9156
|
+
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module, this$41) => {
|
|
9157
9157
|
(function() {
|
|
9158
9158
|
exports.defaults = {
|
|
9159
9159
|
"0.1": {
|
|
@@ -9223,11 +9223,11 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9223
9223
|
cdata: false
|
|
9224
9224
|
}
|
|
9225
9225
|
};
|
|
9226
|
-
}).call(
|
|
9226
|
+
}).call(this$41);
|
|
9227
9227
|
}));
|
|
9228
9228
|
//#endregion
|
|
9229
9229
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/Utility.js
|
|
9230
|
-
var require_Utility = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9230
|
+
var require_Utility = /* @__PURE__ */ __commonJSMin(((exports, module, this$40) => {
|
|
9231
9231
|
(function() {
|
|
9232
9232
|
var assign, getValue, isArray, isEmpty, isFunction, isObject, isPlainObject, slice = [].slice, hasProp = {}.hasOwnProperty;
|
|
9233
9233
|
assign = function() {
|
|
@@ -9280,11 +9280,11 @@ var require_Utility = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9280
9280
|
module.exports.isEmpty = isEmpty;
|
|
9281
9281
|
module.exports.isPlainObject = isPlainObject;
|
|
9282
9282
|
module.exports.getValue = getValue;
|
|
9283
|
-
}).call(
|
|
9283
|
+
}).call(this$40);
|
|
9284
9284
|
}));
|
|
9285
9285
|
//#endregion
|
|
9286
9286
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMImplementation.js
|
|
9287
|
-
var require_XMLDOMImplementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9287
|
+
var require_XMLDOMImplementation = /* @__PURE__ */ __commonJSMin(((exports, module, this$39) => {
|
|
9288
9288
|
(function() {
|
|
9289
9289
|
module.exports = (function() {
|
|
9290
9290
|
function XMLDOMImplementation() {}
|
|
@@ -9305,11 +9305,11 @@ var require_XMLDOMImplementation = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
9305
9305
|
};
|
|
9306
9306
|
return XMLDOMImplementation;
|
|
9307
9307
|
})();
|
|
9308
|
-
}).call(
|
|
9308
|
+
}).call(this$39);
|
|
9309
9309
|
}));
|
|
9310
9310
|
//#endregion
|
|
9311
9311
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js
|
|
9312
|
-
var require_XMLDOMErrorHandler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9312
|
+
var require_XMLDOMErrorHandler = /* @__PURE__ */ __commonJSMin(((exports, module, this$38) => {
|
|
9313
9313
|
(function() {
|
|
9314
9314
|
module.exports = (function() {
|
|
9315
9315
|
function XMLDOMErrorHandler() {}
|
|
@@ -9318,11 +9318,11 @@ var require_XMLDOMErrorHandler = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
9318
9318
|
};
|
|
9319
9319
|
return XMLDOMErrorHandler;
|
|
9320
9320
|
})();
|
|
9321
|
-
}).call(
|
|
9321
|
+
}).call(this$38);
|
|
9322
9322
|
}));
|
|
9323
9323
|
//#endregion
|
|
9324
9324
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMStringList.js
|
|
9325
|
-
var require_XMLDOMStringList = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9325
|
+
var require_XMLDOMStringList = /* @__PURE__ */ __commonJSMin(((exports, module, this$37) => {
|
|
9326
9326
|
(function() {
|
|
9327
9327
|
module.exports = (function() {
|
|
9328
9328
|
function XMLDOMStringList(arr) {
|
|
@@ -9339,11 +9339,11 @@ var require_XMLDOMStringList = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
9339
9339
|
};
|
|
9340
9340
|
return XMLDOMStringList;
|
|
9341
9341
|
})();
|
|
9342
|
-
}).call(
|
|
9342
|
+
}).call(this$37);
|
|
9343
9343
|
}));
|
|
9344
9344
|
//#endregion
|
|
9345
9345
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js
|
|
9346
|
-
var require_XMLDOMConfiguration = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9346
|
+
var require_XMLDOMConfiguration = /* @__PURE__ */ __commonJSMin(((exports, module, this$36) => {
|
|
9347
9347
|
(function() {
|
|
9348
9348
|
var XMLDOMErrorHandler = require_XMLDOMErrorHandler(), XMLDOMStringList = require_XMLDOMStringList();
|
|
9349
9349
|
module.exports = (function() {
|
|
@@ -9385,11 +9385,11 @@ var require_XMLDOMConfiguration = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
9385
9385
|
};
|
|
9386
9386
|
return XMLDOMConfiguration;
|
|
9387
9387
|
})();
|
|
9388
|
-
}).call(
|
|
9388
|
+
}).call(this$36);
|
|
9389
9389
|
}));
|
|
9390
9390
|
//#endregion
|
|
9391
9391
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/NodeType.js
|
|
9392
|
-
var require_NodeType = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9392
|
+
var require_NodeType = /* @__PURE__ */ __commonJSMin(((exports, module, this$35) => {
|
|
9393
9393
|
(function() {
|
|
9394
9394
|
module.exports = {
|
|
9395
9395
|
Element: 1,
|
|
@@ -9410,11 +9410,11 @@ var require_NodeType = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9410
9410
|
ElementDeclaration: 204,
|
|
9411
9411
|
Dummy: 205
|
|
9412
9412
|
};
|
|
9413
|
-
}).call(
|
|
9413
|
+
}).call(this$35);
|
|
9414
9414
|
}));
|
|
9415
9415
|
//#endregion
|
|
9416
9416
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLAttribute.js
|
|
9417
|
-
var require_XMLAttribute = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9417
|
+
var require_XMLAttribute = /* @__PURE__ */ __commonJSMin(((exports, module, this$34) => {
|
|
9418
9418
|
(function() {
|
|
9419
9419
|
var NodeType = require_NodeType();
|
|
9420
9420
|
require_XMLNode();
|
|
@@ -9478,11 +9478,11 @@ var require_XMLAttribute = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9478
9478
|
};
|
|
9479
9479
|
return XMLAttribute;
|
|
9480
9480
|
})();
|
|
9481
|
-
}).call(
|
|
9481
|
+
}).call(this$34);
|
|
9482
9482
|
}));
|
|
9483
9483
|
//#endregion
|
|
9484
9484
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js
|
|
9485
|
-
var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9485
|
+
var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJSMin(((exports, module, this$33) => {
|
|
9486
9486
|
(function() {
|
|
9487
9487
|
module.exports = (function() {
|
|
9488
9488
|
function XMLNamedNodeMap(nodes) {
|
|
@@ -9521,11 +9521,11 @@ var require_XMLNamedNodeMap = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
9521
9521
|
};
|
|
9522
9522
|
return XMLNamedNodeMap;
|
|
9523
9523
|
})();
|
|
9524
|
-
}).call(
|
|
9524
|
+
}).call(this$33);
|
|
9525
9525
|
}));
|
|
9526
9526
|
//#endregion
|
|
9527
9527
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLElement.js
|
|
9528
|
-
var require_XMLElement = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9528
|
+
var require_XMLElement = /* @__PURE__ */ __commonJSMin(((exports, module, this$32) => {
|
|
9529
9529
|
(function() {
|
|
9530
9530
|
var NodeType, XMLAttribute, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject, ref, extend = function(child, parent) {
|
|
9531
9531
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -9722,11 +9722,11 @@ var require_XMLElement = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9722
9722
|
};
|
|
9723
9723
|
return XMLElement;
|
|
9724
9724
|
})(XMLNode);
|
|
9725
|
-
}).call(
|
|
9725
|
+
}).call(this$32);
|
|
9726
9726
|
}));
|
|
9727
9727
|
//#endregion
|
|
9728
9728
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCharacterData.js
|
|
9729
|
-
var require_XMLCharacterData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9729
|
+
var require_XMLCharacterData = /* @__PURE__ */ __commonJSMin(((exports, module, this$31) => {
|
|
9730
9730
|
(function() {
|
|
9731
9731
|
var XMLNode, extend = function(child, parent) {
|
|
9732
9732
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -9789,11 +9789,11 @@ var require_XMLCharacterData = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
9789
9789
|
};
|
|
9790
9790
|
return XMLCharacterData;
|
|
9791
9791
|
})(XMLNode);
|
|
9792
|
-
}).call(
|
|
9792
|
+
}).call(this$31);
|
|
9793
9793
|
}));
|
|
9794
9794
|
//#endregion
|
|
9795
9795
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLCData.js
|
|
9796
|
-
var require_XMLCData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9796
|
+
var require_XMLCData = /* @__PURE__ */ __commonJSMin(((exports, module, this$30) => {
|
|
9797
9797
|
(function() {
|
|
9798
9798
|
var NodeType, XMLCharacterData, extend = function(child, parent) {
|
|
9799
9799
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -9824,11 +9824,11 @@ var require_XMLCData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9824
9824
|
};
|
|
9825
9825
|
return XMLCData;
|
|
9826
9826
|
})(XMLCharacterData);
|
|
9827
|
-
}).call(
|
|
9827
|
+
}).call(this$30);
|
|
9828
9828
|
}));
|
|
9829
9829
|
//#endregion
|
|
9830
9830
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLComment.js
|
|
9831
|
-
var require_XMLComment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9831
|
+
var require_XMLComment = /* @__PURE__ */ __commonJSMin(((exports, module, this$29) => {
|
|
9832
9832
|
(function() {
|
|
9833
9833
|
var NodeType, XMLCharacterData, extend = function(child, parent) {
|
|
9834
9834
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -9859,11 +9859,11 @@ var require_XMLComment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9859
9859
|
};
|
|
9860
9860
|
return XMLComment;
|
|
9861
9861
|
})(XMLCharacterData);
|
|
9862
|
-
}).call(
|
|
9862
|
+
}).call(this$29);
|
|
9863
9863
|
}));
|
|
9864
9864
|
//#endregion
|
|
9865
9865
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDeclaration.js
|
|
9866
|
-
var require_XMLDeclaration = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9866
|
+
var require_XMLDeclaration = /* @__PURE__ */ __commonJSMin(((exports, module, this$28) => {
|
|
9867
9867
|
(function() {
|
|
9868
9868
|
var NodeType, XMLNode, isObject, extend = function(child, parent) {
|
|
9869
9869
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -9895,11 +9895,11 @@ var require_XMLDeclaration = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
9895
9895
|
};
|
|
9896
9896
|
return XMLDeclaration;
|
|
9897
9897
|
})(XMLNode);
|
|
9898
|
-
}).call(
|
|
9898
|
+
}).call(this$28);
|
|
9899
9899
|
}));
|
|
9900
9900
|
//#endregion
|
|
9901
9901
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDAttList.js
|
|
9902
|
-
var require_XMLDTDAttList = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9902
|
+
var require_XMLDTDAttList = /* @__PURE__ */ __commonJSMin(((exports, module, this$27) => {
|
|
9903
9903
|
(function() {
|
|
9904
9904
|
var NodeType, XMLNode, extend = function(child, parent) {
|
|
9905
9905
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -9936,11 +9936,11 @@ var require_XMLDTDAttList = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
9936
9936
|
};
|
|
9937
9937
|
return XMLDTDAttList;
|
|
9938
9938
|
})(XMLNode);
|
|
9939
|
-
}).call(
|
|
9939
|
+
}).call(this$27);
|
|
9940
9940
|
}));
|
|
9941
9941
|
//#endregion
|
|
9942
9942
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDEntity.js
|
|
9943
|
-
var require_XMLDTDEntity = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9943
|
+
var require_XMLDTDEntity = /* @__PURE__ */ __commonJSMin(((exports, module, this$26) => {
|
|
9944
9944
|
(function() {
|
|
9945
9945
|
var NodeType, XMLNode, isObject, extend = function(child, parent) {
|
|
9946
9946
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10000,11 +10000,11 @@ var require_XMLDTDEntity = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10000
10000
|
};
|
|
10001
10001
|
return XMLDTDEntity;
|
|
10002
10002
|
})(XMLNode);
|
|
10003
|
-
}).call(
|
|
10003
|
+
}).call(this$26);
|
|
10004
10004
|
}));
|
|
10005
10005
|
//#endregion
|
|
10006
10006
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDElement.js
|
|
10007
|
-
var require_XMLDTDElement = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10007
|
+
var require_XMLDTDElement = /* @__PURE__ */ __commonJSMin(((exports, module, this$25) => {
|
|
10008
10008
|
(function() {
|
|
10009
10009
|
var NodeType, XMLNode, extend = function(child, parent) {
|
|
10010
10010
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10034,11 +10034,11 @@ var require_XMLDTDElement = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
10034
10034
|
};
|
|
10035
10035
|
return XMLDTDElement;
|
|
10036
10036
|
})(XMLNode);
|
|
10037
|
-
}).call(
|
|
10037
|
+
}).call(this$25);
|
|
10038
10038
|
}));
|
|
10039
10039
|
//#endregion
|
|
10040
10040
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDTDNotation.js
|
|
10041
|
-
var require_XMLDTDNotation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10041
|
+
var require_XMLDTDNotation = /* @__PURE__ */ __commonJSMin(((exports, module, this$24) => {
|
|
10042
10042
|
(function() {
|
|
10043
10043
|
var NodeType, XMLNode, extend = function(child, parent) {
|
|
10044
10044
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10074,11 +10074,11 @@ var require_XMLDTDNotation = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
10074
10074
|
};
|
|
10075
10075
|
return XMLDTDNotation;
|
|
10076
10076
|
})(XMLNode);
|
|
10077
|
-
}).call(
|
|
10077
|
+
}).call(this$24);
|
|
10078
10078
|
}));
|
|
10079
10079
|
//#endregion
|
|
10080
10080
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocType.js
|
|
10081
|
-
var require_XMLDocType = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10081
|
+
var require_XMLDocType = /* @__PURE__ */ __commonJSMin(((exports, module, this$23) => {
|
|
10082
10082
|
(function() {
|
|
10083
10083
|
var NodeType, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLNamedNodeMap, XMLNode, isObject, extend = function(child, parent) {
|
|
10084
10084
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10200,11 +10200,11 @@ var require_XMLDocType = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10200
10200
|
};
|
|
10201
10201
|
return XMLDocType;
|
|
10202
10202
|
})(XMLNode);
|
|
10203
|
-
}).call(
|
|
10203
|
+
}).call(this$23);
|
|
10204
10204
|
}));
|
|
10205
10205
|
//#endregion
|
|
10206
10206
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLRaw.js
|
|
10207
|
-
var require_XMLRaw = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10207
|
+
var require_XMLRaw = /* @__PURE__ */ __commonJSMin(((exports, module, this$22) => {
|
|
10208
10208
|
(function() {
|
|
10209
10209
|
var NodeType, XMLNode, extend = function(child, parent) {
|
|
10210
10210
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10234,11 +10234,11 @@ var require_XMLRaw = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10234
10234
|
};
|
|
10235
10235
|
return XMLRaw;
|
|
10236
10236
|
})(XMLNode);
|
|
10237
|
-
}).call(
|
|
10237
|
+
}).call(this$22);
|
|
10238
10238
|
}));
|
|
10239
10239
|
//#endregion
|
|
10240
10240
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLText.js
|
|
10241
|
-
var require_XMLText = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10241
|
+
var require_XMLText = /* @__PURE__ */ __commonJSMin(((exports, module, this$21) => {
|
|
10242
10242
|
(function() {
|
|
10243
10243
|
var NodeType, XMLCharacterData, extend = function(child, parent) {
|
|
10244
10244
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10293,11 +10293,11 @@ var require_XMLText = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10293
10293
|
};
|
|
10294
10294
|
return XMLText;
|
|
10295
10295
|
})(XMLCharacterData);
|
|
10296
|
-
}).call(
|
|
10296
|
+
}).call(this$21);
|
|
10297
10297
|
}));
|
|
10298
10298
|
//#endregion
|
|
10299
10299
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js
|
|
10300
|
-
var require_XMLProcessingInstruction = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10300
|
+
var require_XMLProcessingInstruction = /* @__PURE__ */ __commonJSMin(((exports, module, this$20) => {
|
|
10301
10301
|
(function() {
|
|
10302
10302
|
var NodeType, XMLCharacterData, extend = function(child, parent) {
|
|
10303
10303
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10334,11 +10334,11 @@ var require_XMLProcessingInstruction = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
10334
10334
|
};
|
|
10335
10335
|
return XMLProcessingInstruction;
|
|
10336
10336
|
})(XMLCharacterData);
|
|
10337
|
-
}).call(
|
|
10337
|
+
}).call(this$20);
|
|
10338
10338
|
}));
|
|
10339
10339
|
//#endregion
|
|
10340
10340
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDummy.js
|
|
10341
|
-
var require_XMLDummy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10341
|
+
var require_XMLDummy = /* @__PURE__ */ __commonJSMin(((exports, module, this$19) => {
|
|
10342
10342
|
(function() {
|
|
10343
10343
|
var NodeType, XMLNode, extend = function(child, parent) {
|
|
10344
10344
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -10366,11 +10366,11 @@ var require_XMLDummy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10366
10366
|
};
|
|
10367
10367
|
return XMLDummy;
|
|
10368
10368
|
})(XMLNode);
|
|
10369
|
-
}).call(
|
|
10369
|
+
}).call(this$19);
|
|
10370
10370
|
}));
|
|
10371
10371
|
//#endregion
|
|
10372
10372
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNodeList.js
|
|
10373
|
-
var require_XMLNodeList = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10373
|
+
var require_XMLNodeList = /* @__PURE__ */ __commonJSMin(((exports, module, this$18) => {
|
|
10374
10374
|
(function() {
|
|
10375
10375
|
module.exports = (function() {
|
|
10376
10376
|
function XMLNodeList(nodes) {
|
|
@@ -10387,11 +10387,11 @@ var require_XMLNodeList = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10387
10387
|
};
|
|
10388
10388
|
return XMLNodeList;
|
|
10389
10389
|
})();
|
|
10390
|
-
}).call(
|
|
10390
|
+
}).call(this$18);
|
|
10391
10391
|
}));
|
|
10392
10392
|
//#endregion
|
|
10393
10393
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/DocumentPosition.js
|
|
10394
|
-
var require_DocumentPosition = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10394
|
+
var require_DocumentPosition = /* @__PURE__ */ __commonJSMin(((exports, module, this$17) => {
|
|
10395
10395
|
(function() {
|
|
10396
10396
|
module.exports = {
|
|
10397
10397
|
Disconnected: 1,
|
|
@@ -10401,11 +10401,11 @@ var require_DocumentPosition = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
10401
10401
|
ContainedBy: 16,
|
|
10402
10402
|
ImplementationSpecific: 32
|
|
10403
10403
|
};
|
|
10404
|
-
}).call(
|
|
10404
|
+
}).call(this$17);
|
|
10405
10405
|
}));
|
|
10406
10406
|
//#endregion
|
|
10407
10407
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLNode.js
|
|
10408
|
-
var require_XMLNode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10408
|
+
var require_XMLNode = /* @__PURE__ */ __commonJSMin(((exports, module, this$16) => {
|
|
10409
10409
|
(function() {
|
|
10410
10410
|
var DocumentPosition, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction, isObject, ref1, hasProp = {}.hasOwnProperty;
|
|
10411
10411
|
ref1 = require_Utility(), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue;
|
|
@@ -10912,11 +10912,11 @@ var require_XMLNode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10912
10912
|
};
|
|
10913
10913
|
return XMLNode;
|
|
10914
10914
|
})();
|
|
10915
|
-
}).call(
|
|
10915
|
+
}).call(this$16);
|
|
10916
10916
|
}));
|
|
10917
10917
|
//#endregion
|
|
10918
10918
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringifier.js
|
|
10919
|
-
var require_XMLStringifier = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10919
|
+
var require_XMLStringifier = /* @__PURE__ */ __commonJSMin(((exports, module, this$15) => {
|
|
10920
10920
|
(function() {
|
|
10921
10921
|
var bind = function(fn, me) {
|
|
10922
10922
|
return function() {
|
|
@@ -11062,11 +11062,11 @@ var require_XMLStringifier = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
11062
11062
|
};
|
|
11063
11063
|
return XMLStringifier;
|
|
11064
11064
|
})();
|
|
11065
|
-
}).call(
|
|
11065
|
+
}).call(this$15);
|
|
11066
11066
|
}));
|
|
11067
11067
|
//#endregion
|
|
11068
11068
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/WriterState.js
|
|
11069
|
-
var require_WriterState = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11069
|
+
var require_WriterState = /* @__PURE__ */ __commonJSMin(((exports, module, this$14) => {
|
|
11070
11070
|
(function() {
|
|
11071
11071
|
module.exports = {
|
|
11072
11072
|
None: 0,
|
|
@@ -11074,11 +11074,11 @@ var require_WriterState = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11074
11074
|
InsideTag: 2,
|
|
11075
11075
|
CloseTag: 3
|
|
11076
11076
|
};
|
|
11077
|
-
}).call(
|
|
11077
|
+
}).call(this$14);
|
|
11078
11078
|
}));
|
|
11079
11079
|
//#endregion
|
|
11080
11080
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLWriterBase.js
|
|
11081
|
-
var require_XMLWriterBase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11081
|
+
var require_XMLWriterBase = /* @__PURE__ */ __commonJSMin(((exports, module, this$13) => {
|
|
11082
11082
|
(function() {
|
|
11083
11083
|
var NodeType, WriterState, assign, hasProp = {}.hasOwnProperty;
|
|
11084
11084
|
assign = require_Utility().assign;
|
|
@@ -11412,11 +11412,11 @@ var require_XMLWriterBase = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
11412
11412
|
XMLWriterBase.prototype.closeAttribute = function(att, options, level) {};
|
|
11413
11413
|
return XMLWriterBase;
|
|
11414
11414
|
})();
|
|
11415
|
-
}).call(
|
|
11415
|
+
}).call(this$13);
|
|
11416
11416
|
}));
|
|
11417
11417
|
//#endregion
|
|
11418
11418
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStringWriter.js
|
|
11419
|
-
var require_XMLStringWriter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11419
|
+
var require_XMLStringWriter = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) => {
|
|
11420
11420
|
(function() {
|
|
11421
11421
|
var XMLWriterBase, extend = function(child, parent) {
|
|
11422
11422
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -11448,11 +11448,11 @@ var require_XMLStringWriter = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
11448
11448
|
};
|
|
11449
11449
|
return XMLStringWriter;
|
|
11450
11450
|
})(XMLWriterBase);
|
|
11451
|
-
}).call(
|
|
11451
|
+
}).call(this$12);
|
|
11452
11452
|
}));
|
|
11453
11453
|
//#endregion
|
|
11454
11454
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocument.js
|
|
11455
|
-
var require_XMLDocument = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11455
|
+
var require_XMLDocument = /* @__PURE__ */ __commonJSMin(((exports, module, this$11) => {
|
|
11456
11456
|
(function() {
|
|
11457
11457
|
var NodeType, XMLDOMConfiguration, XMLDOMImplementation, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject, extend = function(child, parent) {
|
|
11458
11458
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -11609,11 +11609,11 @@ var require_XMLDocument = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11609
11609
|
};
|
|
11610
11610
|
return XMLDocument;
|
|
11611
11611
|
})(XMLNode);
|
|
11612
|
-
}).call(
|
|
11612
|
+
}).call(this$11);
|
|
11613
11613
|
}));
|
|
11614
11614
|
//#endregion
|
|
11615
11615
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLDocumentCB.js
|
|
11616
|
-
var require_XMLDocumentCB = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11616
|
+
var require_XMLDocumentCB = /* @__PURE__ */ __commonJSMin(((exports, module, this$10) => {
|
|
11617
11617
|
(function() {
|
|
11618
11618
|
var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject, isPlainObject, ref, hasProp = {}.hasOwnProperty;
|
|
11619
11619
|
ref = require_Utility(), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue;
|
|
@@ -12000,11 +12000,11 @@ var require_XMLDocumentCB = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
12000
12000
|
};
|
|
12001
12001
|
return XMLDocumentCB;
|
|
12002
12002
|
})();
|
|
12003
|
-
}).call(
|
|
12003
|
+
}).call(this$10);
|
|
12004
12004
|
}));
|
|
12005
12005
|
//#endregion
|
|
12006
12006
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/XMLStreamWriter.js
|
|
12007
|
-
var require_XMLStreamWriter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12007
|
+
var require_XMLStreamWriter = /* @__PURE__ */ __commonJSMin(((exports, module, this$9) => {
|
|
12008
12008
|
(function() {
|
|
12009
12009
|
var NodeType, WriterState, XMLWriterBase, extend = function(child, parent) {
|
|
12010
12010
|
for (var key in parent) if (hasProp.call(parent, key)) child[key] = parent[key];
|
|
@@ -12154,11 +12154,11 @@ var require_XMLStreamWriter = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
12154
12154
|
};
|
|
12155
12155
|
return XMLStreamWriter;
|
|
12156
12156
|
})(XMLWriterBase);
|
|
12157
|
-
}).call(
|
|
12157
|
+
}).call(this$9);
|
|
12158
12158
|
}));
|
|
12159
12159
|
//#endregion
|
|
12160
12160
|
//#region ../../node_modules/.pnpm/xmlbuilder@11.0.1/node_modules/xmlbuilder/lib/index.js
|
|
12161
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12161
|
+
var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) => {
|
|
12162
12162
|
(function() {
|
|
12163
12163
|
var NodeType, WriterState, XMLDOMImplementation, XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction, ref = require_Utility();
|
|
12164
12164
|
assign = ref.assign, isFunction = ref.isFunction;
|
|
@@ -12199,11 +12199,11 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12199
12199
|
module.exports.implementation = new XMLDOMImplementation();
|
|
12200
12200
|
module.exports.nodeType = NodeType;
|
|
12201
12201
|
module.exports.writerState = WriterState;
|
|
12202
|
-
}).call(
|
|
12202
|
+
}).call(this$8);
|
|
12203
12203
|
}));
|
|
12204
12204
|
//#endregion
|
|
12205
12205
|
//#region ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/builder.js
|
|
12206
|
-
var require_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12206
|
+
var require_builder = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) => {
|
|
12207
12207
|
(function() {
|
|
12208
12208
|
"use strict";
|
|
12209
12209
|
var builder, defaults, escapeCDATA, requiresCDATA, wrapCDATA, hasProp = {}.hasOwnProperty;
|
|
@@ -12291,11 +12291,11 @@ var require_builder = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12291
12291
|
};
|
|
12292
12292
|
return Builder;
|
|
12293
12293
|
})();
|
|
12294
|
-
}).call(
|
|
12294
|
+
}).call(this$7);
|
|
12295
12295
|
}));
|
|
12296
12296
|
//#endregion
|
|
12297
12297
|
//#region ../../node_modules/.pnpm/sax@1.6.1/node_modules/sax/lib/sax.js
|
|
12298
|
-
var require_sax = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12298
|
+
var require_sax = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) => {
|
|
12299
12299
|
(function(sax) {
|
|
12300
12300
|
sax.parser = function(strict, opt) {
|
|
12301
12301
|
return new SAXParser(strict, opt);
|
|
@@ -13606,22 +13606,22 @@ var require_sax = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13606
13606
|
});
|
|
13607
13607
|
else String.fromCodePoint = fromCodePoint;
|
|
13608
13608
|
})();
|
|
13609
|
-
})(typeof exports === "undefined" ?
|
|
13609
|
+
})(typeof exports === "undefined" ? this$6.sax = {} : exports);
|
|
13610
13610
|
}));
|
|
13611
13611
|
//#endregion
|
|
13612
13612
|
//#region ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/bom.js
|
|
13613
|
-
var require_bom = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13613
|
+
var require_bom = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) => {
|
|
13614
13614
|
(function() {
|
|
13615
13615
|
"use strict";
|
|
13616
13616
|
exports.stripBOM = function(str) {
|
|
13617
13617
|
if (str[0] === "") return str.substring(1);
|
|
13618
13618
|
else return str;
|
|
13619
13619
|
};
|
|
13620
|
-
}).call(
|
|
13620
|
+
}).call(this$5);
|
|
13621
13621
|
}));
|
|
13622
13622
|
//#endregion
|
|
13623
13623
|
//#region ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/processors.js
|
|
13624
|
-
var require_processors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13624
|
+
var require_processors = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) => {
|
|
13625
13625
|
(function() {
|
|
13626
13626
|
"use strict";
|
|
13627
13627
|
var prefixMatch = /* @__PURE__ */ new RegExp(/(?!xmlns)^.*:/);
|
|
@@ -13642,11 +13642,11 @@ var require_processors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13642
13642
|
if (/^(?:true|false)$/i.test(str)) str = str.toLowerCase() === "true";
|
|
13643
13643
|
return str;
|
|
13644
13644
|
};
|
|
13645
|
-
}).call(
|
|
13645
|
+
}).call(this$4);
|
|
13646
13646
|
}));
|
|
13647
13647
|
//#endregion
|
|
13648
13648
|
//#region ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/parser.js
|
|
13649
|
-
var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13649
|
+
var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
|
|
13650
13650
|
(function() {
|
|
13651
13651
|
"use strict";
|
|
13652
13652
|
var bom, defaults, defineProperty, events, isEmpty, processItem, processors, sax, setImmediate, bind = function(fn, me) {
|
|
@@ -13970,11 +13970,11 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13970
13970
|
parser = new exports.Parser(options);
|
|
13971
13971
|
return parser.parseStringPromise(str);
|
|
13972
13972
|
};
|
|
13973
|
-
}).call(
|
|
13973
|
+
}).call(this$3);
|
|
13974
13974
|
}));
|
|
13975
13975
|
//#endregion
|
|
13976
13976
|
//#region ../../node_modules/.pnpm/xml2js@0.6.2/node_modules/xml2js/lib/xml2js.js
|
|
13977
|
-
var require_xml2js = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13977
|
+
var require_xml2js = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
|
|
13978
13978
|
(function() {
|
|
13979
13979
|
"use strict";
|
|
13980
13980
|
var builder, defaults, parser, processors, extend = function(child, parent) {
|
|
@@ -14004,7 +14004,7 @@ var require_xml2js = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14004
14004
|
exports.Parser = parser.Parser;
|
|
14005
14005
|
exports.parseString = parser.parseString;
|
|
14006
14006
|
exports.parseStringPromise = parser.parseStringPromise;
|
|
14007
|
-
}).call(
|
|
14007
|
+
}).call(this$2);
|
|
14008
14008
|
}));
|
|
14009
14009
|
//#endregion
|
|
14010
14010
|
//#region ../../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.js
|
|
@@ -20425,10 +20425,10 @@ var init_dist = __esmMin((() => {
|
|
|
20425
20425
|
}));
|
|
20426
20426
|
//#endregion
|
|
20427
20427
|
//#region ../../node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.js
|
|
20428
|
-
var require_es5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20428
|
+
var require_es5 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
20429
20429
|
(function(e, t) {
|
|
20430
20430
|
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.bowser = t() : e.bowser = t();
|
|
20431
|
-
})(
|
|
20431
|
+
})(this$1, (function() {
|
|
20432
20432
|
return function(e) {
|
|
20433
20433
|
var t = {};
|
|
20434
20434
|
function r(i) {
|
|
@@ -25009,6 +25009,81 @@ Treat genuine questions, technical discussions, constructive feedback, relevant
|
|
|
25009
25009
|
return isSpam;
|
|
25010
25010
|
}
|
|
25011
25011
|
/**
|
|
25012
|
+
* 日志中模型原始返回的最大保留长度(超出截断),避免一次性返回整篇长文撑爆日志。
|
|
25013
|
+
*/
|
|
25014
|
+
const LLM_RAW_TEXT_LOG_LIMIT = 500;
|
|
25015
|
+
/**
|
|
25016
|
+
* 解析自定义请求体文本(抽出独立函数便于单测与告警)。
|
|
25017
|
+
* @param rawText 配置原文
|
|
25018
|
+
* @returns JSON 对象;空串返回空对象,非法 JSON 或非对象返回 null
|
|
25019
|
+
*/
|
|
25020
|
+
function parseRequestExtraFields(rawText) {
|
|
25021
|
+
const trimmed = rawText.trim();
|
|
25022
|
+
if (!trimmed) return {};
|
|
25023
|
+
try {
|
|
25024
|
+
const parsed = JSON.parse(trimmed);
|
|
25025
|
+
if (typeof parsed === "object" && parsed !== null && !Array.isArray(parsed)) return parsed;
|
|
25026
|
+
return null;
|
|
25027
|
+
} catch {
|
|
25028
|
+
return null;
|
|
25029
|
+
}
|
|
25030
|
+
}
|
|
25031
|
+
/**
|
|
25032
|
+
* 构建 LLM 请求参数:固定传输配置 + 请求体合并钩子(自定义字段仅覆盖最终 JSON 请求体)。
|
|
25033
|
+
* @param config 全量配置
|
|
25034
|
+
* @param messages 对话消息
|
|
25035
|
+
* @param logger 请求日志(告警用)
|
|
25036
|
+
* @returns generateText 入参
|
|
25037
|
+
*/
|
|
25038
|
+
function buildLLMOptions(config, messages, logger) {
|
|
25039
|
+
const options = {
|
|
25040
|
+
apiKey: config.LLM_API_KEY,
|
|
25041
|
+
baseURL: config.LLM_API_ENDPOINT || "https://api.deepseek.com/v1",
|
|
25042
|
+
model: config.LLM_MODEL || "deepseek-chat",
|
|
25043
|
+
responseFormat: { type: "json_object" },
|
|
25044
|
+
messages
|
|
25045
|
+
};
|
|
25046
|
+
const extra = parseRequestExtraFields(String(config.LLM_REQUEST_EXTRA_JSON ?? ""));
|
|
25047
|
+
if (extra === null) {
|
|
25048
|
+
logger.warn("LLM_REQUEST_EXTRA_JSON 不是合法的 JSON 对象,已忽略该配置");
|
|
25049
|
+
return options;
|
|
25050
|
+
}
|
|
25051
|
+
const transportKeys = /* @__PURE__ */ new Set([
|
|
25052
|
+
"apikey",
|
|
25053
|
+
"baseurl",
|
|
25054
|
+
"endpoint",
|
|
25055
|
+
"url",
|
|
25056
|
+
"authorization",
|
|
25057
|
+
"headers",
|
|
25058
|
+
"fetch",
|
|
25059
|
+
"abortsignal",
|
|
25060
|
+
"signal",
|
|
25061
|
+
"timeout",
|
|
25062
|
+
"method",
|
|
25063
|
+
"redirect",
|
|
25064
|
+
"credentials"
|
|
25065
|
+
]);
|
|
25066
|
+
const bodyExtra = Object.fromEntries(Object.entries(extra).filter(([key]) => {
|
|
25067
|
+
const allowed = !transportKeys.has(key.replace(/_/g, "").toLowerCase());
|
|
25068
|
+
if (!allowed) logger.warn(`LLM_REQUEST_EXTRA_JSON 中的传输层字段 ${key} 已忽略`);
|
|
25069
|
+
return allowed;
|
|
25070
|
+
}));
|
|
25071
|
+
if (Object.keys(bodyExtra).length)
|
|
25072
|
+
/** 在 SDK 完成序列化后仅合并请求体,不改变 URL、鉴权、请求头或超时信号 */
|
|
25073
|
+
options.fetch = (input, init) => {
|
|
25074
|
+
if (typeof init?.body !== "string") throw new Error("LLM SDK 请求体不是 JSON 字符串");
|
|
25075
|
+
const body = JSON.parse(init.body);
|
|
25076
|
+
return globalThis.fetch(input, {
|
|
25077
|
+
...init,
|
|
25078
|
+
body: JSON.stringify({
|
|
25079
|
+
...body,
|
|
25080
|
+
...bodyExtra
|
|
25081
|
+
})
|
|
25082
|
+
});
|
|
25083
|
+
};
|
|
25084
|
+
return options;
|
|
25085
|
+
}
|
|
25086
|
+
/**
|
|
25012
25087
|
* LLM 垃圾检测(1.x checkByLLM 对齐:重试 + JSON 校验 + 失败放行兜底)。
|
|
25013
25088
|
* @param comment 评论数据
|
|
25014
25089
|
* @param config 全量配置
|
|
@@ -25018,6 +25093,8 @@ Treat genuine questions, technical discussions, constructive feedback, relevant
|
|
|
25018
25093
|
*/
|
|
25019
25094
|
async function checkByLLM(comment, config, caps, logger) {
|
|
25020
25095
|
const maxRetries = Number(config.LLM_MAX_RETRIES) || 3;
|
|
25096
|
+
const configuredTimeout = Number(config.LLM_TIMEOUT);
|
|
25097
|
+
const timeout = Number.isInteger(configuredTimeout) && configuredTimeout > 0 && configuredTimeout <= 2147483647 ? configuredTimeout : 3e4;
|
|
25021
25098
|
let lastError = "";
|
|
25022
25099
|
let generateText = null;
|
|
25023
25100
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
@@ -25026,18 +25103,15 @@ async function checkByLLM(comment, config, caps, logger) {
|
|
|
25026
25103
|
if (!generateText) generateText = await getGenerateText(caps);
|
|
25027
25104
|
const messages = buildMessages(comment, lastError, String(config.LLM_SPAM_PROMPT ?? ""));
|
|
25028
25105
|
const rawText = (await generateText?.({
|
|
25029
|
-
|
|
25030
|
-
|
|
25031
|
-
model: config.LLM_MODEL || "deepseek-chat",
|
|
25032
|
-
responseFormat: { type: "json_object" },
|
|
25033
|
-
messages
|
|
25106
|
+
...buildLLMOptions(config, messages, logger),
|
|
25107
|
+
abortSignal: AbortSignal.timeout(timeout)
|
|
25034
25108
|
}))?.text ?? "";
|
|
25035
25109
|
let parsed;
|
|
25036
25110
|
try {
|
|
25037
25111
|
parsed = JSON.parse(repairJson(extractJson(rawText)));
|
|
25038
25112
|
} catch (err) {
|
|
25039
25113
|
lastError = err instanceof Error ? err.message : String(err);
|
|
25040
|
-
logger.warn(`LLM 返回校验失败 (尝试第 ${attempt}/${maxRetries} 次)`);
|
|
25114
|
+
logger.warn(`LLM 返回校验失败 (尝试第 ${attempt}/${maxRetries} 次),原始返回:${rawText ? rawText.length > LLM_RAW_TEXT_LOG_LIMIT ? `${rawText.slice(0, LLM_RAW_TEXT_LOG_LIMIT)}…(已截断,共 ${rawText.length} 字符)` : rawText : "(空)"}`);
|
|
25041
25115
|
continue;
|
|
25042
25116
|
}
|
|
25043
25117
|
if (typeof parsed === "object" && parsed !== null && typeof parsed.spam === "boolean") {
|
|
@@ -25045,7 +25119,7 @@ async function checkByLLM(comment, config, caps, logger) {
|
|
|
25045
25119
|
return parsed.spam;
|
|
25046
25120
|
}
|
|
25047
25121
|
lastError = "Key \"spam\" must be a boolean value";
|
|
25048
|
-
logger.warn(`LLM 返回校验失败 (尝试第 ${attempt}/${maxRetries} 次)`);
|
|
25122
|
+
logger.warn(`LLM 返回校验失败 (尝试第 ${attempt}/${maxRetries} 次),原始返回:${rawText.slice(0, LLM_RAW_TEXT_LOG_LIMIT)}`);
|
|
25049
25123
|
} catch (error) {
|
|
25050
25124
|
lastError = error instanceof Error ? error.message : String(error);
|
|
25051
25125
|
logger.error(`LLM 请求异常 (尝试第 ${attempt}/${maxRetries} 次), 错误: ${lastError}`);
|
|
@@ -25137,6 +25211,16 @@ function escapeHtml(str) {
|
|
|
25137
25211
|
if (typeof str !== "string") return toStr$1(str);
|
|
25138
25212
|
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
25139
25213
|
}
|
|
25214
|
+
/**
|
|
25215
|
+
* 邮件时间格式化(毫秒时间戳 → 服务器本地时间字符串)。
|
|
25216
|
+
* @param timestamp 毫秒时间戳
|
|
25217
|
+
* @returns 本地时间字符串;无效时间返回空字符串
|
|
25218
|
+
*/
|
|
25219
|
+
function formatMailTime(timestamp) {
|
|
25220
|
+
const value = Number(timestamp);
|
|
25221
|
+
if (!Number.isFinite(value) || value <= 0) return "";
|
|
25222
|
+
return new Date(value).toLocaleString();
|
|
25223
|
+
}
|
|
25140
25224
|
/** 已初始化的邮件传输器(进程级缓存;emailTest 前重置) */
|
|
25141
25225
|
let transporter = null;
|
|
25142
25226
|
/**
|
|
@@ -25218,9 +25302,11 @@ async function noticeMaster(options) {
|
|
|
25218
25302
|
const COMMENT = toStr$1(comment.comment);
|
|
25219
25303
|
const SITE_URL = config.SITE_URL;
|
|
25220
25304
|
const POST_URL = escapeHtml(appendHashToUrl(toStr$1(comment.href) || `${SITE_URL}${toStr$1(comment.url)}`, comment._id));
|
|
25305
|
+
const POST_TITLE = escapeHtml(comment.title);
|
|
25306
|
+
const COMMENT_TIME = formatMailTime(comment.created);
|
|
25221
25307
|
const emailSubject = config.MAIL_SUBJECT_ADMIN || `${SITE_NAME}上有新评论了`;
|
|
25222
25308
|
let emailContent;
|
|
25223
|
-
if (config.MAIL_TEMPLATE_ADMIN) emailContent = String(config.MAIL_TEMPLATE_ADMIN).replace(/\$\{SITE_URL\}/g, String(SITE_URL)).replace(/\$\{SITE_NAME\}/g, String(SITE_NAME)).replace(/\$\{NICK\}/g, String(NICK)).replace(/\$\{IMG\}/g, String(IMG)).replace(/\$\{IP\}/g, String(IP)).replace(/\$\{MAIL\}/g, String(MAIL)).replace(/\$\{COMMENT\}/g, String(COMMENT)).replace(/\$\{POST_URL\}/g, String(POST_URL));
|
|
25309
|
+
if (config.MAIL_TEMPLATE_ADMIN) emailContent = String(config.MAIL_TEMPLATE_ADMIN).replace(/\$\{SITE_URL\}/g, String(SITE_URL)).replace(/\$\{SITE_NAME\}/g, String(SITE_NAME)).replace(/\$\{POST_TITLE\}/g, String(POST_TITLE)).replace(/\$\{NICK\}/g, String(NICK)).replace(/\$\{IMG\}/g, String(IMG)).replace(/\$\{IP\}/g, String(IP)).replace(/\$\{MAIL\}/g, String(MAIL)).replace(/\$\{COMMENT\}/g, String(COMMENT)).replace(/\$\{COMMENT_TIME\}/g, String(COMMENT_TIME)).replace(/\$\{POST_URL\}/g, String(POST_URL));
|
|
25224
25310
|
else emailContent = `
|
|
25225
25311
|
<div style="border-top:2px solid #12addb;box-shadow:0 1px 3px #aaaaaa;line-height:180%;padding:0 15px 12px;margin:50px auto;font-size:12px;">
|
|
25226
25312
|
<h2 style="border-bottom:1px solid #dddddd;font-size:14px;font-weight:normal;padding:13px 0 10px 8px;">
|
|
@@ -25349,9 +25435,12 @@ async function noticeReply(options) {
|
|
|
25349
25435
|
const PARENT_COMMENT = toStr$1(parentComment.comment);
|
|
25350
25436
|
const POST_URL = escapeHtml(appendHashToUrl(String(currentComment.href || `${config.SITE_URL}${currentComment.url}`), currentComment._id));
|
|
25351
25437
|
const SITE_URL = config.SITE_URL;
|
|
25438
|
+
const POST_TITLE = escapeHtml(currentComment.title || parentComment.title);
|
|
25439
|
+
const COMMENT_TIME = formatMailTime(parentComment.created);
|
|
25440
|
+
const REPLY_TIME = formatMailTime(currentComment.created);
|
|
25352
25441
|
const emailSubject = config.MAIL_SUBJECT || `${toStr$1(PARENT_NICK)},您在『${SITE_NAME}』上的评论收到了回复`;
|
|
25353
25442
|
let emailContent;
|
|
25354
|
-
if (config.MAIL_TEMPLATE) emailContent = String(config.MAIL_TEMPLATE).replace(/\$\{IMG\}/g, String(IMG)).replace(/\$\{PARENT_IMG\}/g, String(PARENT_IMG)).replace(/\$\{SITE_URL\}/g, String(SITE_URL)).replace(/\$\{SITE_NAME\}/g, String(SITE_NAME)).replace(/\$\{PARENT_NICK\}/g, String(PARENT_NICK)).replace(/\$\{PARENT_COMMENT\}/g, String(PARENT_COMMENT)).replace(/\$\{NICK\}/g, String(NICK)).replace(/\$\{COMMENT\}/g, String(COMMENT)).replace(/\$\{POST_URL\}/g, String(POST_URL));
|
|
25443
|
+
if (config.MAIL_TEMPLATE) emailContent = String(config.MAIL_TEMPLATE).replace(/\$\{IMG\}/g, String(IMG)).replace(/\$\{PARENT_IMG\}/g, String(PARENT_IMG)).replace(/\$\{SITE_URL\}/g, String(SITE_URL)).replace(/\$\{SITE_NAME\}/g, String(SITE_NAME)).replace(/\$\{POST_TITLE\}/g, String(POST_TITLE)).replace(/\$\{PARENT_NICK\}/g, String(PARENT_NICK)).replace(/\$\{PARENT_COMMENT\}/g, String(PARENT_COMMENT)).replace(/\$\{COMMENT_TIME\}/g, String(COMMENT_TIME)).replace(/\$\{NICK\}/g, String(NICK)).replace(/\$\{COMMENT\}/g, String(COMMENT)).replace(/\$\{REPLY_TIME\}/g, String(REPLY_TIME)).replace(/\$\{POST_URL\}/g, String(POST_URL));
|
|
25355
25444
|
else emailContent = `
|
|
25356
25445
|
<div style="border-top:2px solid #12ADDB;box-shadow:0 1px 3px #AAAAAA;line-height:180%;padding:0 15px 12px;margin:50px auto;font-size:12px;">
|
|
25357
25446
|
<h2 style="border-bottom:1px solid #dddddd;font-size:14px;font-weight:normal;padding:13px 0 10px 8px;">
|
|
@@ -26551,6 +26640,7 @@ async function parseCommentDoc(ctx) {
|
|
|
26551
26640
|
master: isBloggerMail,
|
|
26552
26641
|
url: comment.url,
|
|
26553
26642
|
href: comment.href,
|
|
26643
|
+
title: comment.title ? toStr(comment.title) : void 0,
|
|
26554
26644
|
comment: DOMPurify.sanitize(toStr(comment.comment), {
|
|
26555
26645
|
FORBID_TAGS: ["style"],
|
|
26556
26646
|
FORBID_ATTR: ["style"]
|
|
@@ -29051,8 +29141,8 @@ var init_pako = __esmMin((() => {
|
|
|
29051
29141
|
if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
|
|
29052
29142
|
scan += 2;
|
|
29053
29143
|
match++;
|
|
29054
|
-
do
|
|
29055
|
-
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
29144
|
+
do;
|
|
29145
|
+
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
29056
29146
|
len = MAX_MATCH - (strend - scan);
|
|
29057
29147
|
scan = strend - MAX_MATCH;
|
|
29058
29148
|
if (len > best_len) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twikoojs/edgeone-makers",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "Twikoo comment system backend for Tencent EdgeOne Makers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cap.js/server": "^4.0.5",
|
|
23
23
|
"@edgeone/pages-blob": "latest",
|
|
24
|
-
"@twikoojs/common": "2.0.
|
|
25
|
-
"@twikoojs/shared": "2.0.
|
|
24
|
+
"@twikoojs/common": "2.0.16",
|
|
25
|
+
"@twikoojs/shared": "2.0.16",
|
|
26
26
|
"bowser": "^2.14.1",
|
|
27
27
|
"form-data": "^4.0.6",
|
|
28
28
|
"html-to-text": "^10.0.1",
|
|
29
29
|
"marked": "^18.0.13",
|
|
30
30
|
"pako": "^3.0.2",
|
|
31
|
-
"pushoo": "^2.0.
|
|
31
|
+
"pushoo": "^2.0.16",
|
|
32
32
|
"xml2js": "^0.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|