@prosopo/cli 3.8.25 → 3.8.26
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 -5
- package/.turbo/turbo-build$colon$tsc.log +30 -33
- package/.turbo/turbo-build.log +4 -10
- package/CHANGELOG.md +34 -0
- package/LICENSE +201 -0
- package/dist/bundle/provider.cli.bundle.js +77469 -100404
- package/dist/bundle/{src-CVL8EKQE.js → src-CpsWPfpk.js} +3 -3
- package/dist/tests/bundle/bundle.integration.test.js +1 -1
- package/dist/tests/bundle/bundle.integration.test.js.map +1 -1
- package/package.json +82 -82
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, o as t, s as n } from "./provider.cli.bundle.js";
|
|
2
|
-
//#region ../../node_modules/mmdb-lib/lib/utils.js
|
|
2
|
+
//#region ../../node_modules/.pnpm/mmdb-lib@3.0.3/node_modules/mmdb-lib/lib/utils.js
|
|
3
3
|
var r = /* @__PURE__ */ t(((e) => {
|
|
4
4
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
5
5
|
assert: (e, t) => {
|
|
@@ -702,7 +702,7 @@ var _ = class extends Error {
|
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
704
|
//#endregion
|
|
705
|
-
//#region ../../node_modules/@maxmind/geoip2-node/dist/src/utils.js
|
|
705
|
+
//#region ../../node_modules/.pnpm/@maxmind+geoip2-node@7.1.0/node_modules/@maxmind/geoip2-node/dist/src/utils.js
|
|
706
706
|
function w(e) {
|
|
707
707
|
return e.replace(/_+(\w?)/g, (e, t, n) => n === 0 ? t : t.toUpperCase());
|
|
708
708
|
}
|
|
@@ -775,7 +775,7 @@ function I(e) {
|
|
|
775
775
|
return t;
|
|
776
776
|
}
|
|
777
777
|
//#endregion
|
|
778
|
-
//#region ../../node_modules/@maxmind/geoip2-node/dist/src/models/Country.js
|
|
778
|
+
//#region ../../node_modules/.pnpm/@maxmind+geoip2-node@7.1.0/node_modules/@maxmind/geoip2-node/dist/src/models/Country.js
|
|
779
779
|
var L = class {
|
|
780
780
|
continent;
|
|
781
781
|
country;
|
|
@@ -6,7 +6,7 @@ const execPromise = promisify(exec);
|
|
|
6
6
|
describe("provider bundle", () => {
|
|
7
7
|
test("bundle runs after bundling", async () => {
|
|
8
8
|
const rootDir = getCliPkgDir();
|
|
9
|
-
await execPromise(`cd ${rootDir} && NODE_ENV=production
|
|
9
|
+
await execPromise(`cd ${rootDir} && NODE_ENV=production pnpm run bundle`);
|
|
10
10
|
const { stdout: runOut, stderr: runErr } = await execPromise(`cd ${rootDir} && node dist/bundle/provider.cli.bundle.js version`);
|
|
11
11
|
assert(/{"version":"\d+\.\d+\.\d+"}/.test(runOut));
|
|
12
12
|
}, 120000);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.integration.test.js","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAclD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAChD,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAEpC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAChC,IAAI,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;QAE7C,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;QAG/B,MAAM,WAAW,CAAC,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"bundle.integration.test.js","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAA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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
2
|
+
"name": "@prosopo/cli",
|
|
3
|
+
"version": "3.8.26",
|
|
4
|
+
"description": "CLI for Prosopo Provider",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": "^24"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@polkadot/types-codec": "16.5.6",
|
|
20
|
+
"@prosopo/api": "4.4.0",
|
|
21
|
+
"@prosopo/common": "3.1.62",
|
|
22
|
+
"@prosopo/logger": "2.1.3",
|
|
23
|
+
"@prosopo/dotenv": "3.0.60",
|
|
24
|
+
"@prosopo/env": "3.6.69",
|
|
25
|
+
"@prosopo/keyring": "2.10.1",
|
|
26
|
+
"@prosopo/locale": "3.7.0",
|
|
27
|
+
"@prosopo/provider": "5.15.0",
|
|
28
|
+
"@prosopo/types": "5.13.0",
|
|
29
|
+
"@prosopo/util": "3.3.14",
|
|
30
|
+
"@prosopo/workspace": "3.2.2",
|
|
31
|
+
"cron-parser": "5.10.0",
|
|
32
|
+
"dotenv": "16.4.5",
|
|
33
|
+
"yargs": "18.1.0",
|
|
34
|
+
"zod": "3.23.8"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@polkadot-api/substrate-client": "0.7.0",
|
|
38
|
+
"@prosopo/config": "3.4.3",
|
|
39
|
+
"@types/cors": "2.8.19",
|
|
40
|
+
"@types/express": "4.17.25",
|
|
41
|
+
"@types/node": "22.10.2",
|
|
42
|
+
"@types/yargs": "17.0.35",
|
|
43
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
44
|
+
"concurrently": "9.0.1",
|
|
45
|
+
"del-cli": "6.0.0",
|
|
46
|
+
"express": "4.22.2",
|
|
47
|
+
"npm-run-all": "4.1.5",
|
|
48
|
+
"smoldot": "2.0.26",
|
|
49
|
+
"tslib": "2.7.0",
|
|
50
|
+
"tsx": "4.20.3",
|
|
51
|
+
"typescript": "5.6.2",
|
|
52
|
+
"vite": "8.1.5",
|
|
53
|
+
"vitest": "4.1.11"
|
|
54
|
+
},
|
|
55
|
+
"author": "Prosopo",
|
|
56
|
+
"license": "Apache-2.0",
|
|
57
|
+
"sideEffects": false,
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+https://github.com/prosopo/captcha.git",
|
|
61
|
+
"directory": "packages/cli"
|
|
62
|
+
},
|
|
63
|
+
"prosopo": {
|
|
64
|
+
"dockerImage": "prosopo/provider"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
68
|
+
"build": "pnpm run build:cross-env --mode ${NODE_ENV:-development}",
|
|
69
|
+
"build:cross-env": "vite build --config vite.esm.config.ts",
|
|
70
|
+
"build:tsc": "tsc --build --verbose",
|
|
71
|
+
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
72
|
+
"docker-tag": "node ../../docker/docker-tag.mjs",
|
|
73
|
+
"build:docker": "docker buildx build --progress=plain --tag $(pnpm run --silent docker-tag) --platform linux/amd64 -f ./Dockerfile ../..",
|
|
74
|
+
"publish:docker": "docker push $(pnpm run --silent docker-tag)",
|
|
75
|
+
"typecheck": "tsc --project tsconfig.types.json",
|
|
76
|
+
"test": "NODE_ENV=${NODE_ENV:-test}; pnpm exec vitest run --config ./vite.test.config.ts",
|
|
77
|
+
"bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
78
|
+
"cli": "node ./dist/cli.js",
|
|
79
|
+
"start": "node ./dist/cli.js --api",
|
|
80
|
+
"start:admin": "node ./dist/cli.js --api --adminApi",
|
|
81
|
+
"start:dev": "node ./dist/cli.js --api --dev"
|
|
82
|
+
}
|
|
83
|
+
}
|