@wzyjs/cli 0.3.29 → 0.3.30
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/index.js +22 -24
- package/package.json +6 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// ../../node_modules
|
|
2
|
+
// ../../node_modules/cac/dist/index.mjs
|
|
3
3
|
import { EventEmitter } from "events";
|
|
4
4
|
function toArr(any) {
|
|
5
5
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -684,10 +684,7 @@ var merge_default = (cli) => {
|
|
|
684
684
|
cli.command("m", "\u5408\u5E76 commit").option("--count [number]", "\u5408\u5E76\u51E0\u4E2Acommit\uFF0C\u4E0D\u586B\u4F1A\u81EA\u52A8\u8BA1\u7B97\u4E0E\u6700\u65B0commit\u76F8\u540C\u540D\u79F0\u7684\u6570\u91CF").option("--commit [boolean]", "\u662F\u5426\u5728\u5408\u5E76\u524D\u63D0\u4EA4\u4EE3\u7801").option("--push [boolean]", "\u662F\u5426\u5728\u5408\u5E76\u540E\u63A8\u9001\u4EE3\u7801").action(script_default);
|
|
685
685
|
};
|
|
686
686
|
|
|
687
|
-
//
|
|
688
|
-
import { fetch } from "undici";
|
|
689
|
-
|
|
690
|
-
// ../../node_modules/.bun/superjson@2.2.6/node_modules/superjson/dist/double-indexed-kv.js
|
|
687
|
+
// ../../node_modules/superjson/dist/double-indexed-kv.js
|
|
691
688
|
class DoubleIndexedKV {
|
|
692
689
|
constructor() {
|
|
693
690
|
this.keyToValue = new Map;
|
|
@@ -709,7 +706,7 @@ class DoubleIndexedKV {
|
|
|
709
706
|
}
|
|
710
707
|
}
|
|
711
708
|
|
|
712
|
-
// ../../node_modules
|
|
709
|
+
// ../../node_modules/superjson/dist/registry.js
|
|
713
710
|
class Registry {
|
|
714
711
|
constructor(generateIdentifier) {
|
|
715
712
|
this.generateIdentifier = generateIdentifier;
|
|
@@ -735,7 +732,7 @@ class Registry {
|
|
|
735
732
|
}
|
|
736
733
|
}
|
|
737
734
|
|
|
738
|
-
// ../../node_modules
|
|
735
|
+
// ../../node_modules/superjson/dist/class-registry.js
|
|
739
736
|
class ClassRegistry extends Registry {
|
|
740
737
|
constructor() {
|
|
741
738
|
super((c) => c.name);
|
|
@@ -756,7 +753,7 @@ class ClassRegistry extends Registry {
|
|
|
756
753
|
}
|
|
757
754
|
}
|
|
758
755
|
|
|
759
|
-
// ../../node_modules
|
|
756
|
+
// ../../node_modules/superjson/dist/util.js
|
|
760
757
|
function valuesOfObj(record) {
|
|
761
758
|
if ("values" in Object) {
|
|
762
759
|
return Object.values(record);
|
|
@@ -799,7 +796,7 @@ function findArr(record, predicate) {
|
|
|
799
796
|
return;
|
|
800
797
|
}
|
|
801
798
|
|
|
802
|
-
// ../../node_modules
|
|
799
|
+
// ../../node_modules/superjson/dist/custom-transformer-registry.js
|
|
803
800
|
class CustomTransformerRegistry {
|
|
804
801
|
constructor() {
|
|
805
802
|
this.transfomers = {};
|
|
@@ -815,7 +812,7 @@ class CustomTransformerRegistry {
|
|
|
815
812
|
}
|
|
816
813
|
}
|
|
817
814
|
|
|
818
|
-
// ../../node_modules
|
|
815
|
+
// ../../node_modules/superjson/dist/is.js
|
|
819
816
|
var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
|
|
820
817
|
var isUndefined = (payload) => typeof payload === "undefined";
|
|
821
818
|
var isNull = (payload) => payload === null;
|
|
@@ -846,7 +843,7 @@ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
|
846
843
|
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
847
844
|
var isURL = (payload) => payload instanceof URL;
|
|
848
845
|
|
|
849
|
-
// ../../node_modules
|
|
846
|
+
// ../../node_modules/superjson/dist/pathstringifier.js
|
|
850
847
|
var escapeKey = (key) => key.replace(/\\/g, "\\\\").replace(/\./g, "\\.");
|
|
851
848
|
var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
|
|
852
849
|
var parsePath = (string, legacyPaths) => {
|
|
@@ -883,7 +880,7 @@ var parsePath = (string, legacyPaths) => {
|
|
|
883
880
|
return result;
|
|
884
881
|
};
|
|
885
882
|
|
|
886
|
-
// ../../node_modules
|
|
883
|
+
// ../../node_modules/superjson/dist/transformer.js
|
|
887
884
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
888
885
|
return {
|
|
889
886
|
isApplicable,
|
|
@@ -1079,7 +1076,7 @@ var untransformValue = (json, type, superJson) => {
|
|
|
1079
1076
|
}
|
|
1080
1077
|
};
|
|
1081
1078
|
|
|
1082
|
-
// ../../node_modules
|
|
1079
|
+
// ../../node_modules/superjson/dist/accessDeep.js
|
|
1083
1080
|
var getNthKey = (value, n) => {
|
|
1084
1081
|
if (n > value.size)
|
|
1085
1082
|
throw new Error("index out of bounds");
|
|
@@ -1195,7 +1192,7 @@ var setDeep = (object, path, mapper) => {
|
|
|
1195
1192
|
return object;
|
|
1196
1193
|
};
|
|
1197
1194
|
|
|
1198
|
-
// ../../node_modules
|
|
1195
|
+
// ../../node_modules/superjson/dist/plainer.js
|
|
1199
1196
|
var enableLegacyPaths = (version) => version < 1;
|
|
1200
1197
|
function traverse(tree, walker, version, origin = []) {
|
|
1201
1198
|
if (!tree) {
|
|
@@ -1342,23 +1339,23 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
|
|
|
1342
1339
|
}
|
|
1343
1340
|
return result;
|
|
1344
1341
|
};
|
|
1345
|
-
// ../../node_modules
|
|
1342
|
+
// ../../node_modules/is-what/dist/getType.js
|
|
1346
1343
|
function getType2(payload) {
|
|
1347
1344
|
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
1348
1345
|
}
|
|
1349
1346
|
|
|
1350
|
-
// ../../node_modules
|
|
1347
|
+
// ../../node_modules/is-what/dist/isArray.js
|
|
1351
1348
|
function isArray2(payload) {
|
|
1352
1349
|
return getType2(payload) === "Array";
|
|
1353
1350
|
}
|
|
1354
|
-
// ../../node_modules
|
|
1351
|
+
// ../../node_modules/is-what/dist/isPlainObject.js
|
|
1355
1352
|
function isPlainObject2(payload) {
|
|
1356
1353
|
if (getType2(payload) !== "Object")
|
|
1357
1354
|
return false;
|
|
1358
1355
|
const prototype = Object.getPrototypeOf(payload);
|
|
1359
1356
|
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
1360
1357
|
}
|
|
1361
|
-
// ../../node_modules
|
|
1358
|
+
// ../../node_modules/copy-anything/dist/index.js
|
|
1362
1359
|
function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
1363
1360
|
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
1364
1361
|
if (propType === "enumerable")
|
|
@@ -1394,7 +1391,7 @@ function copy(target, options = {}) {
|
|
|
1394
1391
|
}, {});
|
|
1395
1392
|
}
|
|
1396
1393
|
|
|
1397
|
-
// ../../node_modules
|
|
1394
|
+
// ../../node_modules/superjson/dist/index.js
|
|
1398
1395
|
class SuperJSON {
|
|
1399
1396
|
constructor({ dedupe = false } = {}) {
|
|
1400
1397
|
this.classRegistry = new ClassRegistry;
|
|
@@ -1548,7 +1545,6 @@ var juejin_default = async (procedure, data) => {
|
|
|
1548
1545
|
};
|
|
1549
1546
|
|
|
1550
1547
|
// src/commands/scrap/rss.ts
|
|
1551
|
-
import { fetch as fetch2 } from "undici";
|
|
1552
1548
|
var url2 = "https://app.zhenyu.pro";
|
|
1553
1549
|
var rss_default = async (procedure, data) => {
|
|
1554
1550
|
if (!procedure) {
|
|
@@ -1596,7 +1592,7 @@ var rss_default = async (procedure, data) => {
|
|
|
1596
1592
|
const trpcPath = `rssItem.${procedure}`;
|
|
1597
1593
|
try {
|
|
1598
1594
|
const encodedInput = encodeURIComponent(dist_default2.stringify(input));
|
|
1599
|
-
const response = await
|
|
1595
|
+
const response = await fetch(`${baseUrl}/api/trpc/${trpcPath}?input=${encodedInput}`, {
|
|
1600
1596
|
method: "GET"
|
|
1601
1597
|
});
|
|
1602
1598
|
const responseText = await response.text();
|
|
@@ -1642,7 +1638,7 @@ var scrap_default = (cli) => {
|
|
|
1642
1638
|
// package.json
|
|
1643
1639
|
var package_default = {
|
|
1644
1640
|
name: "@wzyjs/cli",
|
|
1645
|
-
version: "0.3.
|
|
1641
|
+
version: "0.3.29",
|
|
1646
1642
|
description: "description",
|
|
1647
1643
|
author: "wzy",
|
|
1648
1644
|
main: "dist/index.js",
|
|
@@ -1660,8 +1656,10 @@ var package_default = {
|
|
|
1660
1656
|
],
|
|
1661
1657
|
dependencies: {
|
|
1662
1658
|
cac: "^6.7.14",
|
|
1663
|
-
superjson: "^2.2.6"
|
|
1664
|
-
|
|
1659
|
+
superjson: "^2.2.6"
|
|
1660
|
+
},
|
|
1661
|
+
devDependencies: {
|
|
1662
|
+
"@types/node": "^20.19.23"
|
|
1665
1663
|
},
|
|
1666
1664
|
publishConfig: {
|
|
1667
1665
|
access: "public"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wzyjs/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.30",
|
|
4
4
|
"description": "description",
|
|
5
5
|
"author": "wzy",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"cac": "^6.7.14",
|
|
21
|
-
"superjson": "^2.2.6"
|
|
22
|
-
|
|
21
|
+
"superjson": "^2.2.6"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^20.19.23"
|
|
23
25
|
},
|
|
24
26
|
"publishConfig": {
|
|
25
27
|
"access": "public"
|
|
26
28
|
},
|
|
27
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4e50539cd20e721602a057645c9b859530a1b8c5"
|
|
28
30
|
}
|