@prosopo/cli 3.8.24 → 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.
@@ -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;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bundle.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.integration.test.d.ts","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.integration.test.ts"],"names":[],"mappings":""}
@@ -6,9 +6,9 @@ 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 npm run bundle`);
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);
13
13
  });
14
- //# sourceMappingURL=bundle.unit.test.js.map
14
+ //# sourceMappingURL=bundle.integration.test.js.map
@@ -0,0 +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,yCAAyC,CAAC,CAAC;QAG1E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,WAAW,CAC3D,MAAM,OAAO,qDAAqD,CAClE,CAAC;QACF,MAAM,CAAC,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC,EAAE,MAAM,CAAC,CAAC;AACZ,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,83 +1,83 @@
1
1
  {
2
- "name": "@prosopo/cli",
3
- "version": "3.8.24",
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
- "npm": "^11"
11
- },
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js",
16
- "require": "./dist/cjs/index.cjs"
17
- }
18
- },
19
- "scripts": {
20
- "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
21
- "build": "npm run build:cross-env -- --mode ${NODE_ENV:-development}",
22
- "build:cross-env": "vite build --config vite.esm.config.ts",
23
- "build:tsc": "tsc --build --verbose",
24
- "build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
25
- "docker-tag": "node ../../docker/docker-tag.mjs",
26
- "build:docker": "docker buildx build --progress=plain --tag $(npm run --silent docker-tag) --platform linux/amd64 -f ./Dockerfile ../..",
27
- "publish:docker": "docker push $(npm run --silent docker-tag)",
28
- "typecheck": "tsc --project tsconfig.types.json",
29
- "test": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --config ./vite.test.config.ts",
30
- "bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
31
- "cli": "node ./dist/cli.js",
32
- "start": "node ./dist/cli.js --api",
33
- "start:admin": "node ./dist/cli.js --api --adminApi",
34
- "start:dev": "node ./dist/cli.js --api --dev"
35
- },
36
- "dependencies": {
37
- "@polkadot/types-codec": "16.5.6",
38
- "@prosopo/api": "4.3.7",
39
- "@prosopo/common": "3.1.60",
40
- "@prosopo/logger": "2.1.1",
41
- "@prosopo/dotenv": "3.0.58",
42
- "@prosopo/env": "3.6.67",
43
- "@prosopo/keyring": "2.9.99",
44
- "@prosopo/locale": "3.6.1",
45
- "@prosopo/provider": "5.13.4",
46
- "@prosopo/types": "5.11.1",
47
- "@prosopo/util": "3.3.12",
48
- "@prosopo/workspace": "3.2.1",
49
- "cron-parser": "5.10.0",
50
- "dotenv": "16.4.5",
51
- "yargs": "18.1.0",
52
- "zod": "3.23.8"
53
- },
54
- "devDependencies": {
55
- "@prosopo/config": "3.4.2",
56
- "@polkadot-api/substrate-client": "0.7.0",
57
- "@types/cors": "2.8.19",
58
- "@types/node": "22.10.2",
59
- "@types/yargs": "17.0.35",
60
- "@vitest/coverage-v8": "4.1.11",
61
- "concurrently": "9.0.1",
62
- "del-cli": "6.0.0",
63
- "express": "4.22.2",
64
- "npm-run-all": "4.1.5",
65
- "smoldot": "2.0.26",
66
- "tslib": "2.7.0",
67
- "tsx": "4.20.3",
68
- "typescript": "5.6.2",
69
- "vite": "8.1.5",
70
- "vitest": "4.1.11"
71
- },
72
- "author": "Prosopo",
73
- "license": "Apache-2.0",
74
- "sideEffects": false,
75
- "repository": {
76
- "type": "git",
77
- "url": "git+https://github.com/prosopo/captcha.git",
78
- "directory": "packages/cli"
79
- },
80
- "prosopo": {
81
- "dockerImage": "prosopo/provider"
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
+ }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=bundle.unit.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle.unit.test.d.ts","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.unit.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle.unit.test.js","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.unit.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,wCAAwC,CAAC,CAAC;QAGzE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,WAAW,CAC3D,MAAM,OAAO,qDAAqD,CAClE,CAAC;QACF,MAAM,CAAC,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,CAAC,EAAE,MAAM,CAAC,CAAC;AACZ,CAAC,CAAC,CAAC"}