@vope/utils 1.8.0 → 1.9.0
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/cron.js +8 -0
- package/dist/index.cjs.js +14 -2
- package/dist/memory/basic.js +3 -2
- package/dist/neo4j-anchors.js +1 -0
- package/dist/union.js +2 -0
- package/package.json +21 -21
package/dist/cron.js
CHANGED
|
@@ -11,6 +11,7 @@ class Dic {
|
|
|
11
11
|
this.keys = hash8json(dics, "key");
|
|
12
12
|
this.values = hash8json(dics, "value");
|
|
13
13
|
}
|
|
14
|
+
dics;
|
|
14
15
|
keys;
|
|
15
16
|
values;
|
|
16
17
|
item(key) {
|
|
@@ -265,6 +266,7 @@ class InvalidUnit {
|
|
|
265
266
|
constructor(isEnableInvalid) {
|
|
266
267
|
this.isEnableInvalid = isEnableInvalid;
|
|
267
268
|
}
|
|
269
|
+
isEnableInvalid;
|
|
268
270
|
text() {
|
|
269
271
|
return this.isEnableInvalid ? "?" : "*";
|
|
270
272
|
}
|
|
@@ -274,6 +276,7 @@ class LastValue {
|
|
|
274
276
|
constructor(value) {
|
|
275
277
|
this.value = value;
|
|
276
278
|
}
|
|
279
|
+
value;
|
|
277
280
|
}
|
|
278
281
|
class DayLastUnit extends LastValue {
|
|
279
282
|
text() {
|
|
@@ -299,6 +302,8 @@ class RangeUnit {
|
|
|
299
302
|
this.start = start;
|
|
300
303
|
this.stop = stop;
|
|
301
304
|
}
|
|
305
|
+
start;
|
|
306
|
+
stop;
|
|
302
307
|
text() {
|
|
303
308
|
return `${this.start}-${this.stop}`;
|
|
304
309
|
}
|
|
@@ -309,6 +314,8 @@ class AggUnit {
|
|
|
309
314
|
this.values = values;
|
|
310
315
|
this.increment = increment;
|
|
311
316
|
}
|
|
317
|
+
values;
|
|
318
|
+
increment;
|
|
312
319
|
text() {
|
|
313
320
|
const { values, increment } = this;
|
|
314
321
|
let tmp;
|
|
@@ -431,6 +438,7 @@ class Parse {
|
|
|
431
438
|
this.year = this.parse(year);
|
|
432
439
|
}
|
|
433
440
|
}
|
|
441
|
+
cron;
|
|
434
442
|
second;
|
|
435
443
|
minute;
|
|
436
444
|
hour;
|
package/dist/index.cjs.js
CHANGED
|
@@ -386,6 +386,7 @@ var Dic = class {
|
|
|
386
386
|
this.keys = hash8json(dics, "key");
|
|
387
387
|
this.values = hash8json(dics, "value");
|
|
388
388
|
}
|
|
389
|
+
dics;
|
|
389
390
|
keys;
|
|
390
391
|
values;
|
|
391
392
|
item(key) {
|
|
@@ -640,6 +641,7 @@ var InvalidUnit = class {
|
|
|
640
641
|
constructor(isEnableInvalid) {
|
|
641
642
|
this.isEnableInvalid = isEnableInvalid;
|
|
642
643
|
}
|
|
644
|
+
isEnableInvalid;
|
|
643
645
|
text() {
|
|
644
646
|
return this.isEnableInvalid ? "?" : "*";
|
|
645
647
|
}
|
|
@@ -649,6 +651,7 @@ var LastValue = class {
|
|
|
649
651
|
constructor(value) {
|
|
650
652
|
this.value = value;
|
|
651
653
|
}
|
|
654
|
+
value;
|
|
652
655
|
};
|
|
653
656
|
var DayLastUnit = class extends LastValue {
|
|
654
657
|
text() {
|
|
@@ -674,6 +677,8 @@ var RangeUnit = class {
|
|
|
674
677
|
this.start = start;
|
|
675
678
|
this.stop = stop;
|
|
676
679
|
}
|
|
680
|
+
start;
|
|
681
|
+
stop;
|
|
677
682
|
text() {
|
|
678
683
|
return `${this.start}-${this.stop}`;
|
|
679
684
|
}
|
|
@@ -684,6 +689,8 @@ var AggUnit = class {
|
|
|
684
689
|
this.values = values;
|
|
685
690
|
this.increment = increment;
|
|
686
691
|
}
|
|
692
|
+
values;
|
|
693
|
+
increment;
|
|
687
694
|
text() {
|
|
688
695
|
const { values, increment } = this;
|
|
689
696
|
let tmp;
|
|
@@ -806,6 +813,7 @@ var Parse = class {
|
|
|
806
813
|
this.year = this.parse(year);
|
|
807
814
|
}
|
|
808
815
|
}
|
|
816
|
+
cron;
|
|
809
817
|
second;
|
|
810
818
|
minute;
|
|
811
819
|
hour;
|
|
@@ -1570,8 +1578,8 @@ var loadImage = (src) => {
|
|
|
1570
1578
|
var PUSH = 1;
|
|
1571
1579
|
var RESET = 2;
|
|
1572
1580
|
var DELETE = 0;
|
|
1573
|
-
var LIST_SYMBOL = Symbol();
|
|
1574
|
-
var MEMORYS_SYMBOL = Symbol();
|
|
1581
|
+
var LIST_SYMBOL = /* @__PURE__ */ Symbol();
|
|
1582
|
+
var MEMORYS_SYMBOL = /* @__PURE__ */ Symbol();
|
|
1575
1583
|
var MemoryBasic = class _MemoryBasic {
|
|
1576
1584
|
/**
|
|
1577
1585
|
* @param key 用于对数据进行分类的key
|
|
@@ -1583,6 +1591,7 @@ var MemoryBasic = class _MemoryBasic {
|
|
|
1583
1591
|
this.#reflex = config.reflex;
|
|
1584
1592
|
this.#emit = config.emit;
|
|
1585
1593
|
}
|
|
1594
|
+
key;
|
|
1586
1595
|
static PUSH = PUSH;
|
|
1587
1596
|
static RESET = RESET;
|
|
1588
1597
|
static DELETE = DELETE;
|
|
@@ -1903,6 +1912,7 @@ var Neo4jAhchors = class {
|
|
|
1903
1912
|
this.neo4j = neo4j;
|
|
1904
1913
|
this.config = Object.assign({}, config);
|
|
1905
1914
|
}
|
|
1915
|
+
neo4j;
|
|
1906
1916
|
config;
|
|
1907
1917
|
#anchors = {};
|
|
1908
1918
|
getDir(start, end) {
|
|
@@ -2498,6 +2508,8 @@ var Union = class {
|
|
|
2498
2508
|
this.key = key;
|
|
2499
2509
|
this.formatter = formatter2;
|
|
2500
2510
|
}
|
|
2511
|
+
key;
|
|
2512
|
+
formatter;
|
|
2501
2513
|
#data = {};
|
|
2502
2514
|
#options = {};
|
|
2503
2515
|
#raws = {};
|
package/dist/memory/basic.js
CHANGED
|
@@ -2,8 +2,8 @@ import { hash8strings } from "../convert/strings";
|
|
|
2
2
|
const PUSH = 1;
|
|
3
3
|
const RESET = 2;
|
|
4
4
|
const DELETE = 0;
|
|
5
|
-
const LIST_SYMBOL = Symbol();
|
|
6
|
-
const MEMORYS_SYMBOL = Symbol();
|
|
5
|
+
const LIST_SYMBOL = /* @__PURE__ */ Symbol();
|
|
6
|
+
const MEMORYS_SYMBOL = /* @__PURE__ */ Symbol();
|
|
7
7
|
class MemoryBasic {
|
|
8
8
|
/**
|
|
9
9
|
* @param key 用于对数据进行分类的key
|
|
@@ -15,6 +15,7 @@ class MemoryBasic {
|
|
|
15
15
|
this.#reflex = config.reflex;
|
|
16
16
|
this.#emit = config.emit;
|
|
17
17
|
}
|
|
18
|
+
key;
|
|
18
19
|
static PUSH = PUSH;
|
|
19
20
|
static RESET = RESET;
|
|
20
21
|
static DELETE = DELETE;
|
package/dist/neo4j-anchors.js
CHANGED
package/dist/union.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vope/utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -40,37 +40,37 @@
|
|
|
40
40
|
"sub_storage"
|
|
41
41
|
],
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/parser": "^7.
|
|
44
|
-
"@babel/traverse": "^7.
|
|
45
|
-
"@babel/types": "^7.
|
|
43
|
+
"@babel/parser": "^7.29.3",
|
|
44
|
+
"@babel/traverse": "^7.29.0",
|
|
45
|
+
"@babel/types": "^7.29.0",
|
|
46
46
|
"@rollup/plugin-alias": "^5.1.1",
|
|
47
|
-
"@rollup/plugin-commonjs": "^
|
|
47
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
48
48
|
"@rollup/plugin-json": "^6.1.0",
|
|
49
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
50
|
-
"@rollup/plugin-typescript": "^12.
|
|
51
|
-
"@types/babel__traverse": "^7.
|
|
52
|
-
"@types/mocha": "^10.0.
|
|
53
|
-
"@types/node": "^
|
|
49
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
50
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
51
|
+
"@types/babel__traverse": "^7.28.0",
|
|
52
|
+
"@types/mocha": "^10.0.10",
|
|
53
|
+
"@types/node": "^24.12.3",
|
|
54
54
|
"@types/sm-crypto": "^0.3.4",
|
|
55
|
-
"esbuild": "^0.
|
|
56
|
-
"glob": "^
|
|
57
|
-
"iconv-lite": "^0.
|
|
58
|
-
"mocha": "^
|
|
59
|
-
"puppeteer": "^24.
|
|
60
|
-
"rimraf": "^
|
|
61
|
-
"rollup": "^4.
|
|
55
|
+
"esbuild": "^0.28.0",
|
|
56
|
+
"glob": "^13.0.6",
|
|
57
|
+
"iconv-lite": "^0.7.2",
|
|
58
|
+
"mocha": "^11.7.5",
|
|
59
|
+
"puppeteer": "^24.43.0",
|
|
60
|
+
"rimraf": "^6.1.3",
|
|
61
|
+
"rollup": "^4.60.3",
|
|
62
62
|
"tslib": "^2.8.1",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
|
-
"uuid": "^
|
|
64
|
+
"uuid": "^14.0.0"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@type-challenges/utils": "^0.1.1",
|
|
68
68
|
"@types/lodash-es": "^4.17.12",
|
|
69
|
-
"@vope/types": "^1.
|
|
69
|
+
"@vope/types": "^1.3.0",
|
|
70
70
|
"csstype": "^3.2.3",
|
|
71
71
|
"localforage": "^1.10.0",
|
|
72
|
-
"lodash-es": "^4.
|
|
73
|
-
"sm-crypto": "^0.
|
|
72
|
+
"lodash-es": "^4.18.1",
|
|
73
|
+
"sm-crypto": "^0.4.0"
|
|
74
74
|
},
|
|
75
75
|
"pnpm": {
|
|
76
76
|
"onlyBuiltDependencies": [
|