@dan-uni/dan-any 1.3.8 → 1.3.9
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/browser/index.min.js +87 -6
- package/dist/browser/plugins/bili.min.js +1 -77
- package/dist/browser/plugins/index.min.js +1 -1
- package/dist/browser/plugins/stats.min.js +1 -1
- package/dist/browser/src/index.d.ts +1 -0
- package/dist/node/{rslib-runtime.js → 0~rslib-runtime.js} +1 -15
- package/dist/node/index.js +87 -6
- package/dist/node/plugins/bili.js +1 -77
- package/dist/node/plugins/index.js +1 -1
- package/dist/node/plugins/stats.js +1 -1
- package/dist/node/src/index.d.ts +1 -0
- package/dist/umd/index.umd.min.js +16590 -11927
- package/dist/umd/plugins/bili.umd.min.js +5219 -5213
- package/dist/umd/plugins/index.umd.min.js +16 -14
- package/dist/umd/src/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/index.ts +1 -0
- /package/dist/browser/{rslib-runtime.min.js → 1~rslib-runtime.min.js} +0 -0
|
@@ -14336,9 +14336,10 @@
|
|
|
14336
14336
|
options = Object.assign({}, consider, options);
|
|
14337
14337
|
if (!str || "string" != typeof str) return str;
|
|
14338
14338
|
let trimmedStr = str.trim();
|
|
14339
|
-
if (
|
|
14339
|
+
if (0 === trimmedStr.length) return str;
|
|
14340
14340
|
{
|
|
14341
|
-
if (
|
|
14341
|
+
if (void 0 !== options.skipLike && options.skipLike.test(trimmedStr)) return str;
|
|
14342
|
+
if ("0" === trimmedStr) return 0;
|
|
14342
14343
|
if (options.hex && hexRegex.test(trimmedStr)) return parse_int(trimmedStr, 16);
|
|
14343
14344
|
if (!isFinite(trimmedStr)) return handleInfinity(str, Number(trimmedStr), options);
|
|
14344
14345
|
if (trimmedStr.includes('e') || trimmedStr.includes('E')) return resolveEnotation(str, trimmedStr, options);
|
|
@@ -21060,7 +21061,7 @@
|
|
|
21060
21061
|
function timestamp_timestampMs(timestamp) {
|
|
21061
21062
|
return 1000 * Number(timestamp.seconds) + Math.round(timestamp.nanos / 1000000);
|
|
21062
21063
|
}
|
|
21063
|
-
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.3.
|
|
21064
|
+
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.3.9","TB":"https://github.com/ani-uni/danuni/tree/master/packages/dan-any#readme"}');
|
|
21064
21065
|
const color_pad = (s)=>s.length < 2 ? `0${s}` : s;
|
|
21065
21066
|
const decimalToHex = (n)=>color_pad(n.toString(16));
|
|
21066
21067
|
const isDarkColor = ({ r, g, b })=>0.299 * r + 0.587 * g + 0.114 * b < 0x30;
|
|
@@ -24505,6 +24506,7 @@
|
|
|
24505
24506
|
throw new Error(`Unsupported mod "${mod}"`);
|
|
24506
24507
|
}
|
|
24507
24508
|
}
|
|
24509
|
+
__webpack_require__("./src/plugins/index.ts");
|
|
24508
24510
|
const src_JSON = json_bigint_default()({
|
|
24509
24511
|
useNativeBigInt: true
|
|
24510
24512
|
});
|
|
@@ -29804,6 +29806,16 @@
|
|
|
29804
29806
|
return (that)=>history_danmaku_fast_forward_main(that, query_history_date);
|
|
29805
29807
|
}
|
|
29806
29808
|
},
|
|
29809
|
+
"./src/plugins/index.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
29810
|
+
"use strict";
|
|
29811
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29812
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29813
|
+
bili: ()=>_bili__rspack_import_0,
|
|
29814
|
+
stats: ()=>_stats__rspack_import_1
|
|
29815
|
+
});
|
|
29816
|
+
var _bili__rspack_import_0 = __webpack_require__("./src/plugins/bili/index.ts");
|
|
29817
|
+
var _stats__rspack_import_1 = __webpack_require__("./src/plugins/stats/index.ts");
|
|
29818
|
+
},
|
|
29807
29819
|
"./src/plugins/stats/index.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
29808
29820
|
"use strict";
|
|
29809
29821
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -30495,16 +30507,6 @@ and limitations under the License.
|
|
|
30495
30507
|
});
|
|
30496
30508
|
};
|
|
30497
30509
|
})();
|
|
30498
|
-
var __webpack_exports__ =
|
|
30499
|
-
(()=>{
|
|
30500
|
-
"use strict";
|
|
30501
|
-
__webpack_require__.r(__webpack_exports__);
|
|
30502
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
30503
|
-
bili: ()=>_bili__rspack_import_0,
|
|
30504
|
-
stats: ()=>_stats__rspack_import_1
|
|
30505
|
-
});
|
|
30506
|
-
var _bili__rspack_import_0 = __webpack_require__("./src/plugins/bili/index.ts");
|
|
30507
|
-
var _stats__rspack_import_1 = __webpack_require__("./src/plugins/stats/index.ts");
|
|
30508
|
-
})();
|
|
30510
|
+
var __webpack_exports__ = __webpack_require__("./src/plugins/index.ts");
|
|
30509
30511
|
return __webpack_exports__;
|
|
30510
30512
|
})());
|
package/dist/umd/src/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dan-uni/dan-any",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.9",
|
|
5
5
|
"description": "A danmaku transformer lib, supporting danmaku from different platforms.",
|
|
6
6
|
"author": "rinne",
|
|
7
7
|
"license": "LGPL-3.0-or-later",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"base16384": "^1.0.0",
|
|
37
37
|
"class-transformer": "^0.5.1",
|
|
38
38
|
"class-validator": "^0.15.1",
|
|
39
|
-
"fast-xml-parser": "^5.5.
|
|
39
|
+
"fast-xml-parser": "^5.5.9",
|
|
40
40
|
"hh-mm-ss": "^1.2.0",
|
|
41
41
|
"json-bigint": "^1.0.0",
|
|
42
42
|
"jssha": "^3.3.1",
|
package/src/index.ts
CHANGED
|
File without changes
|