@prosopo/cli 3.8.15 → 3.8.18
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/.turbo/turbo-build$colon$cjs.log +2 -2
- package/.turbo/turbo-build$colon$tsc.log +31 -31
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +68 -0
- package/dist/bundle/decodeBehavior.js +15 -0
- package/dist/bundle/decodePayload.js +15 -0
- package/dist/bundle/decodeSimd.js +15 -0
- package/dist/bundle/i18SharedOptions-CRkwRXkj.js +12 -0
- package/dist/bundle/{i18nBackend-WFIUNZjB.js → i18nBackend-C5Be0TE1.js} +17 -17
- package/dist/bundle/i18nFrontend-CZ7yONJC.js +106 -0
- package/dist/bundle/prosopo-native-puzzle.node +0 -0
- package/dist/bundle/provider.cli.bundle.js +23428 -24427
- package/dist/bundle/{src-CFhgWFIS.js → src-CVL8EKQE.js} +14 -14
- package/package.json +12 -12
- package/vite.config.ts +19 -0
- package/dist/bundle/decodeBehavior-BIrrnKdS.js +0 -556
- package/dist/bundle/decodeSimd-DwxGPcIO.js +0 -617
- package/dist/bundle/i18nFrontend-6CA6EKm9.js +0 -905
- package/dist/bundle/i18next-CzgfK_Ir.js +0 -1231
- package/dist/bundle/node-ponyfill-ByScaio2.js +0 -1534
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, o as t, s as n } from "./provider.cli.bundle.js";
|
|
2
2
|
//#region ../../node_modules/mmdb-lib/lib/utils.js
|
|
3
|
-
var r = /* @__PURE__ */
|
|
3
|
+
var r = /* @__PURE__ */ t(((e) => {
|
|
4
4
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
5
5
|
assert: (e, t) => {
|
|
6
6
|
if (!e) throw Error(t);
|
|
7
7
|
},
|
|
8
8
|
legacyErrorMessage: "Maxmind v2 module has changed API.\nUpgrade instructions can be found here: https://github.com/runk/node-maxmind/wiki/Migration-guide\nIf you want to use legacy library then explicitly install maxmind@1"
|
|
9
9
|
};
|
|
10
|
-
})), i = /* @__PURE__ */
|
|
10
|
+
})), i = /* @__PURE__ */ t(((e) => {
|
|
11
11
|
var t = e && e.__importDefault || function(e) {
|
|
12
12
|
return e && e.__esModule ? e : { default: e };
|
|
13
13
|
};
|
|
@@ -117,7 +117,7 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
117
117
|
return n;
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
})), a = /* @__PURE__ */
|
|
120
|
+
})), a = /* @__PURE__ */ t(((e) => {
|
|
121
121
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
122
122
|
var t = "(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])", n = `(?:${t}\\.){3}${t}`, r = RegExp(`^${n}$`), i = "(?:[0-9a-fA-F]{1,4})", a = RegExp(`^(?:(?:${i}:){7}(?:${i}|:)|(?:${i}:){6}(?:${n}|:${i}|:)|(?:${i}:){5}(?::${n}|(?::${i}){1,2}|:)|(?:${i}:){4}(?:(?::${i}){0,1}:${n}|(?::${i}){1,3}|:)|(?:${i}:){3}(?:(?::${i}){0,2}:${n}|(?::${i}){1,4}|:)|(?:${i}:){2}(?:(?::${i}){0,3}:${n}|(?::${i}){1,5}|:)|(?:${i}:){1}(?:(?::${i}){0,4}:${n}|(?::${i}){1,6}|:)|(?::(?:(?::${i}){0,5}:${n}|(?::${i}){1,7}|:)))(?:%[0-9a-zA-Z-.:]{1,})?\$`), o = (e) => {
|
|
123
123
|
let t = e.split(".", 4);
|
|
@@ -165,7 +165,7 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
165
165
|
parse: (e) => e.indexOf(":") === -1 ? o(e) : c(e),
|
|
166
166
|
validate: (e) => r.test(e) || a.test(e)
|
|
167
167
|
};
|
|
168
|
-
})), o = /* @__PURE__ */
|
|
168
|
+
})), o = /* @__PURE__ */ t(((e) => {
|
|
169
169
|
var t = e && e.__importDefault || function(e) {
|
|
170
170
|
return e && e.__esModule ? e : { default: e };
|
|
171
171
|
};
|
|
@@ -205,7 +205,7 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
205
205
|
}
|
|
206
206
|
return !1;
|
|
207
207
|
};
|
|
208
|
-
})), s = /* @__PURE__ */
|
|
208
|
+
})), s = /* @__PURE__ */ t(((e) => {
|
|
209
209
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
210
210
|
var t = (e) => (t) => e.readUIntBE(t + 3, 3), n = (e) => (t) => e.readUIntBE(t, 3), r = (e) => (t) => (e[t + 3] & 240) << 20 | e.readUIntBE(t, 3), i = (e) => (t) => (e[t + 3] & 15) << 24 | e.readUIntBE(t + 4, 3), a = (e) => (t) => e.readUInt32BE(t), o = (e) => (t) => e.readUInt32BE(t + 4);
|
|
211
211
|
e.default = (e, s) => {
|
|
@@ -225,9 +225,9 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
225
225
|
}
|
|
226
226
|
throw Error("Unsupported record size");
|
|
227
227
|
};
|
|
228
|
-
})), c = /* @__PURE__ */
|
|
228
|
+
})), c = /* @__PURE__ */ t(((e) => {
|
|
229
229
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
230
|
-
})), l = /* @__PURE__ */
|
|
230
|
+
})), l = /* @__PURE__ */ t(((e) => {
|
|
231
231
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
232
232
|
r === void 0 && (r = n);
|
|
233
233
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -281,7 +281,7 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
281
281
|
return t;
|
|
282
282
|
}
|
|
283
283
|
}, n(c(), e);
|
|
284
|
-
})), u = /* @__PURE__ */
|
|
284
|
+
})), u = /* @__PURE__ */ t(((e) => {
|
|
285
285
|
var t = class {
|
|
286
286
|
#e;
|
|
287
287
|
#t;
|
|
@@ -500,7 +500,7 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
500
500
|
return new t(e, n, r);
|
|
501
501
|
}
|
|
502
502
|
e.LRU = t, e.lru = n;
|
|
503
|
-
})), d = /* @__PURE__ */
|
|
503
|
+
})), d = /* @__PURE__ */ t(((e) => {
|
|
504
504
|
var t = e && e.__importDefault || function(e) {
|
|
505
505
|
return e && e.__esModule ? e : { default: e };
|
|
506
506
|
};
|
|
@@ -513,7 +513,7 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
513
513
|
createReadStream: r.default.createReadStream,
|
|
514
514
|
stat: i.default.promisify(r.default.stat)
|
|
515
515
|
};
|
|
516
|
-
})), f = /* @__PURE__ */
|
|
516
|
+
})), f = /* @__PURE__ */ t(((e) => {
|
|
517
517
|
var t = e && e.__importDefault || function(e) {
|
|
518
518
|
return e && e.__esModule ? e : { default: e };
|
|
519
519
|
};
|
|
@@ -566,16 +566,16 @@ var r = /* @__PURE__ */ e(((e) => {
|
|
|
566
566
|
return t === 4 || t === 6;
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
|
-
})), p = /* @__PURE__ */
|
|
569
|
+
})), p = /* @__PURE__ */ t(((e) => {
|
|
570
570
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = (e) => !e || e.length < 3 ? !1 : e[0] === 31 && e[1] === 139 && e[2] === 8;
|
|
571
|
-
})), m = /* @__PURE__ */
|
|
571
|
+
})), m = /* @__PURE__ */ t(((e) => {
|
|
572
572
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
573
573
|
concat2: (e, t) => e << 8 | t,
|
|
574
574
|
concat3: (e, t, n) => e << 16 | t << 8 | n,
|
|
575
575
|
concat4: (e, t, n, r) => e << 24 | t << 16 | n << 8 | r,
|
|
576
576
|
legacyErrorMessage: "Maxmind v2 module has changed API.\nUpgrade instructions can be found here: https://github.com/runk/node-maxmind/wiki/Migration-guide\nIf you want to use legacy libary then explicitly install maxmind@1"
|
|
577
577
|
};
|
|
578
|
-
})), h = /* @__PURE__ */
|
|
578
|
+
})), h = /* @__PURE__ */ e((/* @__PURE__ */ t(((e) => {
|
|
579
579
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
580
580
|
r === void 0 && (r = n);
|
|
581
581
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.18",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@polkadot/types-codec": "16.5.6",
|
|
38
|
-
"@prosopo/api": "4.3.
|
|
39
|
-
"@prosopo/common": "3.1.
|
|
40
|
-
"@prosopo/logger": "2.0
|
|
41
|
-
"@prosopo/dotenv": "3.0.
|
|
42
|
-
"@prosopo/env": "3.6.
|
|
43
|
-
"@prosopo/keyring": "2.9.
|
|
44
|
-
"@prosopo/locale": "3.
|
|
45
|
-
"@prosopo/provider": "5.
|
|
46
|
-
"@prosopo/types": "5.
|
|
47
|
-
"@prosopo/util": "3.3.
|
|
38
|
+
"@prosopo/api": "4.3.3",
|
|
39
|
+
"@prosopo/common": "3.1.59",
|
|
40
|
+
"@prosopo/logger": "2.1.0",
|
|
41
|
+
"@prosopo/dotenv": "3.0.57",
|
|
42
|
+
"@prosopo/env": "3.6.62",
|
|
43
|
+
"@prosopo/keyring": "2.9.95",
|
|
44
|
+
"@prosopo/locale": "3.6.0",
|
|
45
|
+
"@prosopo/provider": "5.12.2",
|
|
46
|
+
"@prosopo/types": "5.10.0",
|
|
47
|
+
"@prosopo/util": "3.3.11",
|
|
48
48
|
"@prosopo/workspace": "3.2.1",
|
|
49
49
|
"cron-parser": "5.10.0",
|
|
50
50
|
"dotenv": "16.4.5",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"zod": "3.23.8"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@prosopo/config": "3.
|
|
55
|
+
"@prosopo/config": "3.4.0",
|
|
56
56
|
"@polkadot-api/substrate-client": "0.7.0",
|
|
57
57
|
"@types/cors": "2.8.19",
|
|
58
58
|
"@types/node": "22.10.2",
|
package/vite.config.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { createRequire } from "node:module";
|
|
|
15
15
|
import * as path from "node:path";
|
|
16
16
|
import {
|
|
17
17
|
ViteBackendConfig,
|
|
18
|
+
copyAssetsPlugin,
|
|
18
19
|
nodejsPolarsNativeFilePlugin,
|
|
19
20
|
} from "@prosopo/config";
|
|
20
21
|
import { loadEnv } from "@prosopo/dotenv";
|
|
@@ -51,7 +52,24 @@ const nativeBinaryPaths = [
|
|
|
51
52
|
),
|
|
52
53
|
dest: "prosopo-native-merkle.node",
|
|
53
54
|
},
|
|
55
|
+
{
|
|
56
|
+
src: nativeRequire.resolve(
|
|
57
|
+
"@prosopo/native-puzzle/index.linux-x64-gnu.node",
|
|
58
|
+
),
|
|
59
|
+
dest: "prosopo-native-puzzle.node",
|
|
60
|
+
},
|
|
54
61
|
];
|
|
62
|
+
// The obfuscated decoders are loaded by URL at runtime, not by import, so a
|
|
63
|
+
// decoder worker can load the same file the main thread would — a bundled
|
|
64
|
+
// dynamic import becomes a content-hashed chunk that a worker cannot name.
|
|
65
|
+
// Copying them under stable basenames is what makes that URL constructible.
|
|
66
|
+
const decoderDir = path.resolve(dir, "../provider/src/tasks/detection");
|
|
67
|
+
const decoderAssets = [
|
|
68
|
+
"decodePayload.js",
|
|
69
|
+
"decodeSimd.js",
|
|
70
|
+
"decodeBehavior.js",
|
|
71
|
+
].map((file) => ({ src: path.join(decoderDir, file), dest: file }));
|
|
72
|
+
|
|
55
73
|
const bundleOutDir = path.resolve(dir, "dist/bundle");
|
|
56
74
|
|
|
57
75
|
// Merge with generic backend config
|
|
@@ -68,6 +86,7 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
68
86
|
backendConfig.plugins = [
|
|
69
87
|
...(backendConfig.plugins ?? []),
|
|
70
88
|
nodejsPolarsNativeFilePlugin(nativeBinaryPaths, bundleOutDir),
|
|
89
|
+
copyAssetsPlugin(decoderAssets, bundleOutDir),
|
|
71
90
|
];
|
|
72
91
|
return defineConfig({
|
|
73
92
|
ssr: {
|