@prosopo/cli 3.7.5 → 3.7.7
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 +27 -27
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +34 -0
- package/Dockerfile +27 -0
- package/dist/bundle/{i18nBackend-C078WszN.js → i18nBackend-F6WgK5_c.js} +6 -4
- package/dist/bundle/{i18nFrontend-pIqw8hl9.js → i18nFrontend-D7DSDiLn.js} +28 -22
- package/dist/bundle/{i18next-q3w8LsnI.js → i18next-DZyUEvVF.js} +2 -1
- package/dist/bundle/provider.cli.bundle.js +12088 -11723
- package/package.json +18 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.7.
|
|
2
|
+
> @prosopo/cli@3.7.7 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
|
[38;5;240m │[0m ╰─────── 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
|
[38;5;246m────╯[0m
|
|
92
92
|
[39m
|
|
93
|
-
[32m✓ built in
|
|
93
|
+
[32m✓ built in 61ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.7.
|
|
2
|
+
> @prosopo/cli@3.7.7 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
3:32:10 PM - 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
|
-
|
|
31
|
+
3:32:10 PM - 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'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
3:32:10 PM - 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
|
-
|
|
35
|
+
3:32:10 PM - 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
|
-
|
|
37
|
+
3:32:10 PM - 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
|
-
|
|
39
|
+
3:32:10 PM - 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
|
-
|
|
41
|
+
3:32:10 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
3:32:10 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
3:32:10 PM - 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
|
-
|
|
47
|
+
3:32:10 PM - 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
|
-
|
|
49
|
+
3:32:10 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
3:32:10 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
3:32:10 PM - 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
|
-
|
|
55
|
+
3:32:10 PM - 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
|
-
|
|
57
|
+
3:32:10 PM - 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
|
-
|
|
59
|
+
3:32:10 PM - 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
|
-
|
|
61
|
+
3:32:10 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.test.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
3:32:11 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/env.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
3:32:11 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/index.ts' is older than output '../env/tsconfig.tsbuildinfo'
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
3:32:11 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/middlewares/requestLoggerMiddleware.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
3:32:11 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/dataset.unit.test.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
3:32:11 PM - 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
|
-
|
|
73
|
+
3:32:11 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
3:32:11 PM - 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
|
-
|
|
77
|
+
3:32:11 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
3:32:11 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
|
|
80
80
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.7.
|
|
2
|
+
> @prosopo/cli@3.7.7 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/cli@3.7.
|
|
6
|
+
> @prosopo/cli@3.7.7 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
|
-
[32m✓ built in
|
|
89
|
+
[32m✓ built in 62ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @prosopo/cli
|
|
2
2
|
|
|
3
|
+
## 3.7.7
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [216f8cd]
|
|
7
|
+
- @prosopo/provider@5.0.5
|
|
8
|
+
- @prosopo/types@5.0.4
|
|
9
|
+
- @prosopo/api@4.0.4
|
|
10
|
+
- @prosopo/env@3.6.28
|
|
11
|
+
- @prosopo/keyring@2.9.67
|
|
12
|
+
|
|
13
|
+
## 3.7.6
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [132e9e3]
|
|
17
|
+
- Updated dependencies [a308b9b]
|
|
18
|
+
- Updated dependencies [8386644]
|
|
19
|
+
- Updated dependencies [16dbab0]
|
|
20
|
+
- Updated dependencies [69c6982]
|
|
21
|
+
- Updated dependencies [9091a78]
|
|
22
|
+
- Updated dependencies [9ec6cc4]
|
|
23
|
+
- Updated dependencies [6d4bb65]
|
|
24
|
+
- Updated dependencies [d5e104b]
|
|
25
|
+
- Updated dependencies [063e69d]
|
|
26
|
+
- @prosopo/provider@5.0.4
|
|
27
|
+
- @prosopo/types@5.0.3
|
|
28
|
+
- @prosopo/util@3.3.6
|
|
29
|
+
- @prosopo/locale@3.3.0
|
|
30
|
+
- @prosopo/env@3.6.27
|
|
31
|
+
- @prosopo/api@4.0.3
|
|
32
|
+
- @prosopo/common@3.1.50
|
|
33
|
+
- @prosopo/keyring@2.9.66
|
|
34
|
+
- @prosopo/logger@2.0.6
|
|
35
|
+
- @prosopo/dotenv@3.0.52
|
|
36
|
+
|
|
3
37
|
## 3.7.5
|
|
4
38
|
### Patch Changes
|
|
5
39
|
|
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-
|
|
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-
|
|
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
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
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
|
|
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),
|