@dan-uni/dan-any 1.4.0 → 1.4.1
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.
|
@@ -11480,7 +11480,7 @@ __webpack_require__.d(platform_namespaceObject, {
|
|
|
11480
11480
|
PlatformVideoSource: ()=>platform_PlatformVideoSource,
|
|
11481
11481
|
PlatformVideoSources: ()=>PlatformVideoSources
|
|
11482
11482
|
});
|
|
11483
|
-
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.
|
|
11483
|
+
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.1","TB":"https://github.com/ani-uni/danuni/tree/master/packages/dan-any#readme"}');
|
|
11484
11484
|
const color_pad = (s)=>s.length < 2 ? `0${s}` : s;
|
|
11485
11485
|
const decimalToHex = (n)=>color_pad(n.toString(16));
|
|
11486
11486
|
const isDarkColor = ({ r, g, b })=>0.299 * r + 0.587 * g + 0.114 * b < 0x30;
|
|
@@ -12028,7 +12028,7 @@ class UniDM {
|
|
|
12028
12028
|
mode: 4,
|
|
12029
12029
|
senderID: senderID.toString(),
|
|
12030
12030
|
ctime: new Date(`${args.ctime} GMT+0800`),
|
|
12031
|
-
weight:
|
|
12031
|
+
weight: 11,
|
|
12032
12032
|
pool: 2,
|
|
12033
12033
|
attr: [
|
|
12034
12034
|
"Protect"
|
package/dist/node/index.js
CHANGED
|
@@ -59,7 +59,7 @@ __webpack_require__.d(platform_namespaceObject, {
|
|
|
59
59
|
PlatformVideoSource: ()=>platform_PlatformVideoSource,
|
|
60
60
|
PlatformVideoSources: ()=>PlatformVideoSources
|
|
61
61
|
});
|
|
62
|
-
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.
|
|
62
|
+
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.1","TB":"https://github.com/ani-uni/danuni/tree/master/packages/dan-any#readme"}');
|
|
63
63
|
const color_pad = (s)=>s.length < 2 ? `0${s}` : s;
|
|
64
64
|
const decimalToHex = (n)=>color_pad(n.toString(16));
|
|
65
65
|
const isDarkColor = ({ r, g, b })=>0.299 * r + 0.587 * g + 0.114 * b < 0x30;
|
|
@@ -606,7 +606,7 @@ class UniDM {
|
|
|
606
606
|
mode: 4,
|
|
607
607
|
senderID: senderID.toString(),
|
|
608
608
|
ctime: new Date(`${args.ctime} GMT+0800`),
|
|
609
|
-
weight:
|
|
609
|
+
weight: 11,
|
|
610
610
|
pool: 2,
|
|
611
611
|
attr: [
|
|
612
612
|
"Protect"
|
|
@@ -21209,7 +21209,7 @@
|
|
|
21209
21209
|
function timestamp_timestampMs(timestamp) {
|
|
21210
21210
|
return 1000 * Number(timestamp.seconds) + Math.round(timestamp.nanos / 1000000);
|
|
21211
21211
|
}
|
|
21212
|
-
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.
|
|
21212
|
+
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.1","TB":"https://github.com/ani-uni/danuni/tree/master/packages/dan-any#readme"}');
|
|
21213
21213
|
const color_pad = (s)=>s.length < 2 ? `0${s}` : s;
|
|
21214
21214
|
const decimalToHex = (n)=>color_pad(n.toString(16));
|
|
21215
21215
|
const isDarkColor = ({ r, g, b })=>0.299 * r + 0.587 * g + 0.114 * b < 0x30;
|
|
@@ -23935,7 +23935,7 @@
|
|
|
23935
23935
|
mode: 4,
|
|
23936
23936
|
senderID: senderID.toString(),
|
|
23937
23937
|
ctime: new Date(`${args.ctime} GMT+0800`),
|
|
23938
|
-
weight:
|
|
23938
|
+
weight: 11,
|
|
23939
23939
|
pool: 2,
|
|
23940
23940
|
attr: [
|
|
23941
23941
|
"Protect"
|
|
@@ -21186,7 +21186,7 @@
|
|
|
21186
21186
|
function timestamp_timestampMs(timestamp) {
|
|
21187
21187
|
return 1000 * Number(timestamp.seconds) + Math.round(timestamp.nanos / 1000000);
|
|
21188
21188
|
}
|
|
21189
|
-
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.
|
|
21189
|
+
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.1","TB":"https://github.com/ani-uni/danuni/tree/master/packages/dan-any#readme"}');
|
|
21190
21190
|
const color_pad = (s)=>s.length < 2 ? `0${s}` : s;
|
|
21191
21191
|
const decimalToHex = (n)=>color_pad(n.toString(16));
|
|
21192
21192
|
const isDarkColor = ({ r, g, b })=>0.299 * r + 0.587 * g + 0.114 * b < 0x30;
|
|
@@ -23892,7 +23892,7 @@
|
|
|
23892
23892
|
mode: 4,
|
|
23893
23893
|
senderID: senderID.toString(),
|
|
23894
23894
|
ctime: new Date(`${args.ctime} GMT+0800`),
|
|
23895
|
-
weight:
|
|
23895
|
+
weight: 11,
|
|
23896
23896
|
pool: 2,
|
|
23897
23897
|
attr: [
|
|
23898
23898
|
"Protect"
|
|
@@ -21186,7 +21186,7 @@
|
|
|
21186
21186
|
function timestamp_timestampMs(timestamp) {
|
|
21187
21187
|
return 1000 * Number(timestamp.seconds) + Math.round(timestamp.nanos / 1000000);
|
|
21188
21188
|
}
|
|
21189
|
-
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.
|
|
21189
|
+
var package_namespaceObject = JSON.parse('{"UU":"@dan-uni/dan-any","rE":"1.4.1","TB":"https://github.com/ani-uni/danuni/tree/master/packages/dan-any#readme"}');
|
|
21190
21190
|
const color_pad = (s)=>s.length < 2 ? `0${s}` : s;
|
|
21191
21191
|
const decimalToHex = (n)=>color_pad(n.toString(16));
|
|
21192
21192
|
const isDarkColor = ({ r, g, b })=>0.299 * r + 0.587 * g + 0.114 * b < 0x30;
|
|
@@ -23892,7 +23892,7 @@
|
|
|
23892
23892
|
mode: 4,
|
|
23893
23893
|
senderID: senderID.toString(),
|
|
23894
23894
|
ctime: new Date(`${args.ctime} GMT+0800`),
|
|
23895
|
-
weight:
|
|
23895
|
+
weight: 11,
|
|
23896
23896
|
pool: 2,
|
|
23897
23897
|
attr: [
|
|
23898
23898
|
"Protect"
|
package/package.json
CHANGED
package/src/utils/dm-gen.ts
CHANGED
|
@@ -932,7 +932,7 @@ export class UniDM {
|
|
|
932
932
|
senderID: senderID.toString(),
|
|
933
933
|
// content: args.content,
|
|
934
934
|
ctime: new Date(`${args.ctime} GMT+0800`), // 无视本地时区,按照B站的东8区计算时间
|
|
935
|
-
weight:
|
|
935
|
+
weight: 11,
|
|
936
936
|
pool: Pools.Adv,
|
|
937
937
|
attr: [DMAttr.Protect],
|
|
938
938
|
platform: PlatformVideoSource.Bilibili,
|