befly 3.16.6 → 3.16.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/dist/befly.js +32 -22
- package/dist/befly.min.js +11 -11
- package/dist/lib/redisHelper.js +3 -1
- package/package.json +3 -3
package/dist/befly.js
CHANGED
|
@@ -2499,7 +2499,7 @@ var require_bn = __commonJS((exports, module) => {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
assert(false, "Base should be between 2 and 36");
|
|
2501
2501
|
};
|
|
2502
|
-
BN.prototype.toNumber = function
|
|
2502
|
+
BN.prototype.toNumber = function toNumber2() {
|
|
2503
2503
|
var ret = this.words[0];
|
|
2504
2504
|
if (this.length === 2) {
|
|
2505
2505
|
ret += this.words[1] * 67108864;
|
|
@@ -2918,7 +2918,7 @@ var require_bn = __commonJS((exports, module) => {
|
|
|
2918
2918
|
}
|
|
2919
2919
|
return out.strip();
|
|
2920
2920
|
}
|
|
2921
|
-
var comb10MulTo = function
|
|
2921
|
+
var comb10MulTo = function comb10MulTo2(self, num, out) {
|
|
2922
2922
|
var a = self.words;
|
|
2923
2923
|
var b = num.words;
|
|
2924
2924
|
var o = out.words;
|
|
@@ -4603,20 +4603,20 @@ var require_bn = __commonJS((exports, module) => {
|
|
|
4603
4603
|
BN._prime = function prime(name) {
|
|
4604
4604
|
if (primes[name])
|
|
4605
4605
|
return primes[name];
|
|
4606
|
-
var
|
|
4606
|
+
var prime2;
|
|
4607
4607
|
if (name === "k256") {
|
|
4608
|
-
|
|
4608
|
+
prime2 = new K256;
|
|
4609
4609
|
} else if (name === "p224") {
|
|
4610
|
-
|
|
4610
|
+
prime2 = new P224;
|
|
4611
4611
|
} else if (name === "p192") {
|
|
4612
|
-
|
|
4612
|
+
prime2 = new P192;
|
|
4613
4613
|
} else if (name === "p25519") {
|
|
4614
|
-
|
|
4614
|
+
prime2 = new P25519;
|
|
4615
4615
|
} else {
|
|
4616
4616
|
throw new Error("Unknown prime " + name);
|
|
4617
4617
|
}
|
|
4618
|
-
primes[name] =
|
|
4619
|
-
return
|
|
4618
|
+
primes[name] = prime2;
|
|
4619
|
+
return prime2;
|
|
4620
4620
|
};
|
|
4621
4621
|
function Red(m) {
|
|
4622
4622
|
if (typeof m === "string") {
|
|
@@ -5161,7 +5161,7 @@ var require_buffer = __commonJS((exports) => {
|
|
|
5161
5161
|
const isCompatible = typeof data === "object" && data.constructor.name === "EncoderBuffer" && typeof data.length === "number" && typeof data.join === "function";
|
|
5162
5162
|
return isCompatible;
|
|
5163
5163
|
};
|
|
5164
|
-
EncoderBuffer.prototype.join = function
|
|
5164
|
+
EncoderBuffer.prototype.join = function join3(out, offset) {
|
|
5165
5165
|
if (!out)
|
|
5166
5166
|
out = Buffer2.alloc(this.length);
|
|
5167
5167
|
if (!offset)
|
|
@@ -11573,7 +11573,7 @@ var corsHook = {
|
|
|
11573
11573
|
};
|
|
11574
11574
|
var cors_default = corsHook;
|
|
11575
11575
|
|
|
11576
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
11576
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/util.js
|
|
11577
11577
|
var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
11578
11578
|
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
11579
11579
|
var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
|
|
@@ -11601,7 +11601,7 @@ function isExist(v) {
|
|
|
11601
11601
|
return typeof v !== "undefined";
|
|
11602
11602
|
}
|
|
11603
11603
|
|
|
11604
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
11604
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/validator.js
|
|
11605
11605
|
var defaultOptions2 = {
|
|
11606
11606
|
allowBooleanAttributes: false,
|
|
11607
11607
|
unpairedTags: []
|
|
@@ -11903,7 +11903,7 @@ function getPositionFromMatch(match) {
|
|
|
11903
11903
|
return match.startIndex + match[1].length;
|
|
11904
11904
|
}
|
|
11905
11905
|
|
|
11906
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
11906
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
|
|
11907
11907
|
var defaultOptions3 = {
|
|
11908
11908
|
preserveOrder: false,
|
|
11909
11909
|
attributeNamePrefix: "@_",
|
|
@@ -11947,7 +11947,7 @@ var buildOptions = function(options) {
|
|
|
11947
11947
|
return Object.assign({}, defaultOptions3, options);
|
|
11948
11948
|
};
|
|
11949
11949
|
|
|
11950
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
11950
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
11951
11951
|
var METADATA_SYMBOL;
|
|
11952
11952
|
if (typeof Symbol !== "function") {
|
|
11953
11953
|
METADATA_SYMBOL = "@@xmlMetadata";
|
|
@@ -11983,7 +11983,7 @@ class XmlNode {
|
|
|
11983
11983
|
}
|
|
11984
11984
|
}
|
|
11985
11985
|
|
|
11986
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
11986
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
11987
11987
|
class DocTypeReader {
|
|
11988
11988
|
constructor(processEntities) {
|
|
11989
11989
|
this.suppressValidationErr = !processEntities;
|
|
@@ -12360,7 +12360,7 @@ function parse_int(numStr, base) {
|
|
|
12360
12360
|
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
12361
12361
|
}
|
|
12362
12362
|
|
|
12363
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
12363
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
12364
12364
|
function getIgnoreAttributesFn(ignoreAttributes) {
|
|
12365
12365
|
if (typeof ignoreAttributes === "function") {
|
|
12366
12366
|
return ignoreAttributes;
|
|
@@ -12380,7 +12380,7 @@ function getIgnoreAttributesFn(ignoreAttributes) {
|
|
|
12380
12380
|
return () => false;
|
|
12381
12381
|
}
|
|
12382
12382
|
|
|
12383
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
12383
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
12384
12384
|
class OrderedObjParser {
|
|
12385
12385
|
constructor(options) {
|
|
12386
12386
|
this.options = options;
|
|
@@ -12403,8 +12403,8 @@ class OrderedObjParser {
|
|
|
12403
12403
|
copyright: { regex: /&(copy|#169);/g, val: "\xA9" },
|
|
12404
12404
|
reg: { regex: /&(reg|#174);/g, val: "\xAE" },
|
|
12405
12405
|
inr: { regex: /&(inr|#8377);/g, val: "\u20B9" },
|
|
12406
|
-
num_dec: { regex: /&#([0-9]{1,7});/g, val: (_, str) =>
|
|
12407
|
-
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) =>
|
|
12406
|
+
num_dec: { regex: /&#([0-9]{1,7});/g, val: (_, str) => fromCodePoint(str, 10, "&#") },
|
|
12407
|
+
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) => fromCodePoint(str, 16, "&#x") }
|
|
12408
12408
|
};
|
|
12409
12409
|
this.addExternalEntities = addExternalEntities;
|
|
12410
12410
|
this.parseXml = parseXml;
|
|
@@ -12882,8 +12882,16 @@ function parseValue(val, shouldParse, options) {
|
|
|
12882
12882
|
}
|
|
12883
12883
|
}
|
|
12884
12884
|
}
|
|
12885
|
+
function fromCodePoint(str, base, prefix) {
|
|
12886
|
+
const codePoint = Number.parseInt(str, base);
|
|
12887
|
+
if (codePoint >= 0 && codePoint <= 1114111) {
|
|
12888
|
+
return String.fromCodePoint(codePoint);
|
|
12889
|
+
} else {
|
|
12890
|
+
return prefix + str + ";";
|
|
12891
|
+
}
|
|
12892
|
+
}
|
|
12885
12893
|
|
|
12886
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
12894
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
12887
12895
|
var METADATA_SYMBOL2 = XmlNode.getMetaDataSymbol();
|
|
12888
12896
|
function prettify(node, options) {
|
|
12889
12897
|
return compress(node, options);
|
|
@@ -12977,7 +12985,7 @@ function isLeafTag(obj, options) {
|
|
|
12977
12985
|
return false;
|
|
12978
12986
|
}
|
|
12979
12987
|
|
|
12980
|
-
// ../../node_modules/.bun/fast-xml-parser@5.3.
|
|
12988
|
+
// ../../node_modules/.bun/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
12981
12989
|
class XMLParser {
|
|
12982
12990
|
constructor(options) {
|
|
12983
12991
|
this.externalEntities = {};
|
|
@@ -16565,7 +16573,9 @@ class RedisHelper {
|
|
|
16565
16573
|
const startTime = Date.now();
|
|
16566
16574
|
const res = await this.client.sadd(pkey, ...members);
|
|
16567
16575
|
const duration = Date.now() - startTime;
|
|
16568
|
-
this.logSlow("SADD", pkey, duration, {
|
|
16576
|
+
this.logSlow("SADD", pkey, duration, {
|
|
16577
|
+
membersCount: members.length
|
|
16578
|
+
});
|
|
16569
16579
|
return res;
|
|
16570
16580
|
} catch (error) {
|
|
16571
16581
|
Logger.error({ err: error, msg: "Redis sadd \u9519\u8BEF" });
|