@prosopo/cli 3.7.3 → 3.7.6

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
 
2
- > @prosopo/cli@3.7.3 build:cjs
2
+ > @prosopo/cli@3.7.6 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -90,4 +90,4 @@ dist/cjs/RateLimiter.cjs 5.42 kB │ gzip: 0.88 kB
90
90
   │ ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
91
91
  ────╯
92
92
  
93
- ✓ built in 62ms
93
+ ✓ built in 61ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/cli@3.7.3 build:tsc
2
+ > @prosopo/cli@3.7.6 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 9:46:19 AM - Projects in this build:
5
+ 7:06:03 AM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -28,53 +28,53 @@
28
28
  * ../../dev/workspace/tsconfig.json
29
29
  * tsconfig.json
30
30
 
31
- 9:46:19 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
31
+ 7:06:03 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/vite-plugin-copy.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
32
32
 
33
- 9:46:19 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
33
+ 7:06:03 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
34
34
 
35
- 9:46:19 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
35
+ 7:06:03 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
36
36
 
37
- 9:46:19 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
37
+ 7:06:04 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
38
38
 
39
- 9:46:19 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
39
+ 7:06:04 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
40
40
 
41
- 9:46:19 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
41
+ 7:06:04 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/api.test-d.ts' is older than output '../api/tsconfig.tsbuildinfo'
42
42
 
43
- 9:46:19 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
43
+ 7:06:04 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
44
44
 
45
- 9:46:20 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
45
+ 7:06:04 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
46
46
 
47
- 9:46:20 AM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
47
+ 7:06:04 AM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
48
48
 
49
- 9:46:20 AM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
49
+ 7:06:04 AM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/types.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
50
50
 
51
- 9:46:20 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
51
+ 7:06:04 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
52
52
 
53
- 9:46:20 AM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/tests/testRedisConnection.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
53
+ 7:06:04 AM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
54
54
 
55
- 9:46:20 AM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/ruleRecord.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
55
+ 7:06:04 AM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
56
56
 
57
- 9:46:20 AM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types.test-d.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
57
+ 7:06:04 AM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types.test-d.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
58
58
 
59
- 9:46:20 AM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
59
+ 7:06:04 AM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/unit/redisCacheEscalation.unit.test.ts' is older than output '../database/tsconfig.tsbuildinfo'
60
60
 
61
- 9:46:20 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.test.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
61
+ 7:06:04 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
62
62
 
63
- 9:46:20 AM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/index.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
63
+ 7:06:04 AM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/index.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
64
64
 
65
- 9:46:20 AM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
65
+ 7:06:04 AM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
66
66
 
67
- 9:46:20 AM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/apiExpressRouterFactory.unit.test.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
67
+ 7:06:04 AM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/testDoubles.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
68
68
 
69
- 9:46:20 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
69
+ 7:06:04 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
70
70
 
71
- 9:46:20 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
71
+ 7:06:04 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
72
72
 
73
- 9:46:20 AM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/dns.ts' is older than output '../provider/tsconfig.tsbuildinfo'
73
+ 7:06:04 AM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/devicePlatform.ts' is older than output '../provider/tsconfig.tsbuildinfo'
74
74
 
75
- 9:46:20 AM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/projectInfo.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
75
+ 7:06:04 AM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
76
76
 
77
- 9:46:20 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
77
+ 7:06:04 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
78
78
 
79
- 9:46:20 AM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
79
+ 7:06:04 AM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
80
80
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/cli@3.7.3 build
2
+ > @prosopo/cli@3.7.6 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/cli@3.7.3 build:cross-env
6
+ > @prosopo/cli@3.7.6 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -86,4 +86,4 @@ dist/commands/siteKeyRegister.js 3.30 kB │ gzip: 1.14 kB
86
86
  dist/prosopo.config.js 4.43 kB │ gzip: 1.47 kB
87
87
  dist/RateLimiter.js 5.02 kB │ gzip: 0.87 kB
88
88
 
89
- ✓ built in 68ms
89
+ ✓ built in 59ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @prosopo/cli
2
2
 
3
+ ## 3.7.6
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [132e9e3]
7
+ - Updated dependencies [a308b9b]
8
+ - Updated dependencies [8386644]
9
+ - Updated dependencies [16dbab0]
10
+ - Updated dependencies [69c6982]
11
+ - Updated dependencies [9091a78]
12
+ - Updated dependencies [9ec6cc4]
13
+ - Updated dependencies [6d4bb65]
14
+ - Updated dependencies [d5e104b]
15
+ - Updated dependencies [063e69d]
16
+ - @prosopo/provider@5.0.4
17
+ - @prosopo/types@5.0.3
18
+ - @prosopo/util@3.3.6
19
+ - @prosopo/locale@3.3.0
20
+ - @prosopo/env@3.6.27
21
+ - @prosopo/api@4.0.3
22
+ - @prosopo/common@3.1.50
23
+ - @prosopo/keyring@2.9.66
24
+ - @prosopo/logger@2.0.6
25
+ - @prosopo/dotenv@3.0.52
26
+
27
+ ## 3.7.5
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [d6cb841]
31
+ - Updated dependencies [fa0d494]
32
+ - Updated dependencies [d6cb841]
33
+ - @prosopo/provider@5.0.3
34
+ - @prosopo/types@5.0.2
35
+ - @prosopo/env@3.6.26
36
+ - @prosopo/api@4.0.2
37
+ - @prosopo/keyring@2.9.65
38
+
39
+ ## 3.7.4
40
+ ### Patch Changes
41
+
42
+ - @prosopo/env@3.6.25
43
+ - @prosopo/provider@5.0.2
44
+
3
45
  ## 3.7.3
4
46
  ### Patch Changes
5
47
 
package/Dockerfile ADDED
@@ -0,0 +1,27 @@
1
+ FROM node:24
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ # set shell to bash and error on any failure, unset variables, and pipefail
6
+ SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
7
+
8
+ COPY ./packages/cli/dist/bundle/ ./
9
+
10
+ COPY ./packages/locale/dist/locales/ ./locales/
11
+
12
+ # download the GeoLite2 databases into the same directory
13
+ RUN curl -L -o GeoLite2-Country.mmdb https://git.io/GeoLite2-Country.mmdb
14
+ RUN curl -L -o GeoLite2-City.mmdb https://git.io/GeoLite2-City.mmdb
15
+ RUN curl -L -o GeoLite2-ASN.mmdb https://git.io/GeoLite2-ASN.mmdb
16
+
17
+ # make the provider cli executable
18
+ # create a package.json file for the provider cli to force it to run in module mode and set the binary for npx
19
+ RUN echo '#!/usr/bin/env node' | cat - provider.cli.bundle.js > temp && mv temp provider.cli.bundle.js && \
20
+ echo '{ "name": "prosopo-provider", "bin": { "provider": "./provider.cli.bundle.js" }, "type": "module" }' > /usr/src/app/package.json
21
+
22
+ # install the provider cli binary
23
+ RUN npm i
24
+
25
+ EXPOSE 9229 9339 80 443
26
+
27
+ CMD ["npx" , "provider" ,"--api"]
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./i18next-q3w8LsnI.js";
1
+ import { n as e, t } from "./i18next-DZyUEvVF.js";
2
2
  import { i as n, l as r, r as i, s as a } from "./provider.cli.bundle.js";
3
3
  import o from "node:path";
4
4
  //#region ../locale/dist/util.js
@@ -3543,10 +3543,12 @@ function v(n) {
3543
3543
  ...e,
3544
3544
  ns: ["translation"],
3545
3545
  backend: { loadPath: _ }
3546
- }), t.on("loaded", () => {
3547
- n?.(t);
3548
3546
  });
3549
- }
3547
+ let a = !1;
3548
+ t.on("loaded", () => {
3549
+ a || (a = !0, n?.(t));
3550
+ });
3551
+ } else n?.(t);
3550
3552
  return t;
3551
3553
  }
3552
3554
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./i18next-q3w8LsnI.js";
1
+ import { n as e, t } from "./i18next-DZyUEvVF.js";
2
2
  import { l as n } from "./provider.cli.bundle.js";
3
3
  //#region ../../node_modules/react-i18next/dist/es/unescape.js
4
4
  var r = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, i = {
@@ -824,27 +824,33 @@ var we = function(e) {
824
824
  return `${import.meta.url.replace(`/${n}`, "")}/locales/${e}/${t}.json`;
825
825
  };
826
826
  function $(n, r) {
827
- return t.isInitialized || (t.use(k).use(new C(null, {
828
- order: [
829
- "cookie",
830
- "localStorage",
831
- "navigator"
832
- ],
833
- lookupQuerystring: "lng",
834
- lookupCookie: "i18next",
835
- lookupLocalStorage: "i18nextLng",
836
- caches: ["localStorage", "cookie"]
837
- })).use(c).init({
838
- ...e,
839
- ...r ? { lng: r } : {},
840
- backend: {
841
- backends: [Z, we((e, t) => import(Q(e, t)))],
842
- backendOptions: [{ loadPath: Q("{{lng}}", "{{ns}}") }]
843
- },
844
- ...Te
845
- }), t.on("loaded", () => {
846
- n?.(t);
847
- })), t;
827
+ if (t.isInitialized) n?.(t);
828
+ else {
829
+ t.use(k).use(new C(null, {
830
+ order: [
831
+ "cookie",
832
+ "localStorage",
833
+ "navigator"
834
+ ],
835
+ lookupQuerystring: "lng",
836
+ lookupCookie: "i18next",
837
+ lookupLocalStorage: "i18nextLng",
838
+ caches: ["localStorage", "cookie"]
839
+ })).use(c).init({
840
+ ...e,
841
+ ...r ? { lng: r } : {},
842
+ backend: {
843
+ backends: [Z, we((e, t) => import(Q(e, t)))],
844
+ backendOptions: [{ loadPath: Q("{{lng}}", "{{ns}}") }]
845
+ },
846
+ ...Te
847
+ });
848
+ let i = !1;
849
+ t.on("loaded", () => {
850
+ i || (i = !0, n?.(t));
851
+ });
852
+ }
853
+ return t;
848
854
  }
849
855
  //#endregion
850
856
  export { $ as default, $ as initializeI18n };
@@ -1,7 +1,8 @@
1
1
  import { n as e, t } from "./provider.cli.bundle.js";
2
+ //#endregion
2
3
  //#region ../locale/dist/i18SharedOptions.js
3
4
  var n = {
4
- debug: (typeof process < "u" ? process.env?.PROSOPO_LOG_LEVEL : void 0) === "debug",
5
+ debug: (typeof process < "u" ? process : void 0)?.env?.PROSOPO_LOG_LEVEL === "debug",
5
6
  fallbackLng: t.enum.en,
6
7
  namespace: "translation",
7
8
  supportedLngs: Object.values(e),