@prosopo/procaptcha-common 2.9.14 → 2.9.19
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 +51 -0
- package/.turbo/turbo-build.log +50 -0
- package/CHANGELOG.md +49 -0
- package/package.json +15 -9
- package/vite.test.config.ts +39 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
> @prosopo/procaptcha-common@2.9.19 build:cjs
|
|
3
|
+
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
|
+
|
|
5
|
+
ViteCommonJSConfig: .
|
|
6
|
+
{
|
|
7
|
+
tsConfigPaths: [
|
|
8
|
+
'/home/runner/work/captcha/captcha/packages/load-balancer/tsconfig.json',
|
|
9
|
+
'/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
|
|
10
|
+
'/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
|
|
11
|
+
'/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
|
|
12
|
+
'/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
|
|
13
|
+
'/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
|
|
14
|
+
'/home/runner/work/captcha/captcha/packages/widget-skeleton/tsconfig.json',
|
|
15
|
+
'/home/runner/work/captcha/captcha/packages/account/tsconfig.json',
|
|
16
|
+
'/home/runner/work/captcha/captcha/packages/fingerprint/tsconfig.json',
|
|
17
|
+
'/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
{
|
|
21
|
+
externals: [
|
|
22
|
+
'@prosopo/load-balancer',
|
|
23
|
+
'@prosopo/common',
|
|
24
|
+
'@prosopo/locale',
|
|
25
|
+
'@prosopo/types',
|
|
26
|
+
'@prosopo/util',
|
|
27
|
+
'@prosopo/util-crypto',
|
|
28
|
+
'@prosopo/widget-skeleton',
|
|
29
|
+
'@prosopo/account',
|
|
30
|
+
'@prosopo/fingerprint',
|
|
31
|
+
'@prosopo/keyring'
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
[36mvite v6.4.1 [32mbuilding SSR bundle for production...[36m[39m
|
|
35
|
+
Bundle build started
|
|
36
|
+
transforming...
|
|
37
|
+
Build end
|
|
38
|
+
[32m✓[39m 10 modules transformed.
|
|
39
|
+
[33mEntry module "src/reactComponents/Checkbox.tsx" is using named and default exports together. Consumers of your bundle will have to use `..default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.[39m
|
|
40
|
+
rendering chunks...
|
|
41
|
+
[2mdist/cjs/[22m[36mcallbacks/defaultEvents.cjs [39m[1m[2m0.31 kB[22m[1m[22m
|
|
42
|
+
[2mdist/cjs/[22m[36melements/window.cjs [39m[1m[2m0.39 kB[22m[1m[22m
|
|
43
|
+
[2mdist/cjs/[22m[36melements/form.cjs [39m[1m[2m0.65 kB[22m[1m[22m
|
|
44
|
+
[2mdist/cjs/[22m[36mproviders.cjs [39m[1m[2m0.98 kB[22m[1m[22m
|
|
45
|
+
[2mdist/cjs/[22m[36mindex.cjs [39m[1m[2m1.16 kB[22m[1m[22m
|
|
46
|
+
[2mdist/cjs/[22m[36mextensionLoader.cjs [39m[1m[2m1.48 kB[22m[1m[22m
|
|
47
|
+
[2mdist/cjs/[22m[36mreactComponents/Reload.cjs [39m[1m[2m3.19 kB[22m[1m[22m
|
|
48
|
+
[2mdist/cjs/[22m[36mstate/builder.cjs [39m[1m[2m3.26 kB[22m[1m[22m
|
|
49
|
+
[2mdist/cjs/[22m[36mcallbacks/defaultCallbacks.cjs [39m[1m[2m4.07 kB[22m[1m[22m
|
|
50
|
+
[2mdist/cjs/[22m[36mreactComponents/Checkbox.cjs [39m[1m[2m4.26 kB[22m[1m[22m
|
|
51
|
+
[32m✓ built in 223ms[39m
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
> @prosopo/procaptcha-common@2.9.19 build
|
|
3
|
+
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV
|
|
4
|
+
|
|
5
|
+
ViteEsmConfig: .
|
|
6
|
+
{
|
|
7
|
+
tsConfigPaths: [
|
|
8
|
+
'/home/runner/work/captcha/captcha/packages/load-balancer/tsconfig.json',
|
|
9
|
+
'/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
|
|
10
|
+
'/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
|
|
11
|
+
'/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
|
|
12
|
+
'/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
|
|
13
|
+
'/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json',
|
|
14
|
+
'/home/runner/work/captcha/captcha/packages/widget-skeleton/tsconfig.json',
|
|
15
|
+
'/home/runner/work/captcha/captcha/packages/account/tsconfig.json',
|
|
16
|
+
'/home/runner/work/captcha/captcha/packages/fingerprint/tsconfig.json',
|
|
17
|
+
'/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
{
|
|
21
|
+
externals: [
|
|
22
|
+
'@prosopo/load-balancer',
|
|
23
|
+
'@prosopo/common',
|
|
24
|
+
'@prosopo/locale',
|
|
25
|
+
'@prosopo/types',
|
|
26
|
+
'@prosopo/util',
|
|
27
|
+
'@prosopo/util-crypto',
|
|
28
|
+
'@prosopo/widget-skeleton',
|
|
29
|
+
'@prosopo/account',
|
|
30
|
+
'@prosopo/fingerprint',
|
|
31
|
+
'@prosopo/keyring'
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
[36mvite v6.4.1 [32mbuilding SSR bundle for production...[36m[39m
|
|
35
|
+
Bundle build started
|
|
36
|
+
transforming...
|
|
37
|
+
Build end
|
|
38
|
+
[32m✓[39m 10 modules transformed.
|
|
39
|
+
rendering chunks...
|
|
40
|
+
[2mdist/[22m[36mcallbacks/defaultEvents.js [39m[1m[2m0.19 kB[22m[1m[22m
|
|
41
|
+
[2mdist/[22m[36mextensionLoader.js [39m[1m[2m0.21 kB[22m[1m[22m
|
|
42
|
+
[2mdist/[22m[36melements/window.js [39m[1m[2m0.29 kB[22m[1m[22m
|
|
43
|
+
[2mdist/[22m[36melements/form.js [39m[1m[2m0.52 kB[22m[1m[22m
|
|
44
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m0.77 kB[22m[1m[22m
|
|
45
|
+
[2mdist/[22m[36mproviders.js [39m[1m[2m0.83 kB[22m[1m[22m
|
|
46
|
+
[2mdist/[22m[36mreactComponents/Reload.js [39m[1m[2m3.01 kB[22m[1m[22m
|
|
47
|
+
[2mdist/[22m[36mstate/builder.js [39m[1m[2m3.14 kB[22m[1m[22m
|
|
48
|
+
[2mdist/[22m[36mcallbacks/defaultCallbacks.js [39m[1m[2m3.91 kB[22m[1m[22m
|
|
49
|
+
[2mdist/[22m[36mreactComponents/Checkbox.js [39m[1m[2m4.04 kB[22m[1m[22m
|
|
50
|
+
[32m✓ built in 254ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @prosopo/procaptcha-common
|
|
2
2
|
|
|
3
|
+
## 2.9.19
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 7d5eb3f: bump
|
|
7
|
+
- Updated dependencies [7d5eb3f]
|
|
8
|
+
- @prosopo/account@2.7.43
|
|
9
|
+
- @prosopo/load-balancer@2.8.13
|
|
10
|
+
- @prosopo/types@3.6.4
|
|
11
|
+
- @prosopo/widget-skeleton@2.7.12
|
|
12
|
+
|
|
13
|
+
## 2.9.18
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 93d92a7: little bump for publish all
|
|
17
|
+
- Updated dependencies [93d92a7]
|
|
18
|
+
- @prosopo/account@2.7.42
|
|
19
|
+
- @prosopo/load-balancer@2.8.12
|
|
20
|
+
- @prosopo/types@3.6.3
|
|
21
|
+
- @prosopo/widget-skeleton@2.7.11
|
|
22
|
+
|
|
23
|
+
## 2.9.17
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 8ee8434: bump node engines to 24 and npm version to 11
|
|
27
|
+
- cfee479: make @prosopo/config a dev dep
|
|
28
|
+
- Updated dependencies [8ee8434]
|
|
29
|
+
- Updated dependencies [cfee479]
|
|
30
|
+
- @prosopo/widget-skeleton@2.7.10
|
|
31
|
+
- @prosopo/load-balancer@2.8.11
|
|
32
|
+
- @prosopo/account@2.7.41
|
|
33
|
+
- @prosopo/types@3.6.2
|
|
34
|
+
|
|
35
|
+
## 2.9.16
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- e926831: mega mini bump for all to trigger publish all
|
|
39
|
+
- Updated dependencies [e926831]
|
|
40
|
+
- @prosopo/config@3.1.23
|
|
41
|
+
- @prosopo/account@2.7.40
|
|
42
|
+
- @prosopo/load-balancer@2.8.10
|
|
43
|
+
- @prosopo/types@3.6.1
|
|
44
|
+
- @prosopo/widget-skeleton@2.7.9
|
|
45
|
+
|
|
46
|
+
## 2.9.15
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 9128d5e: correcting types
|
|
50
|
+
- 9128d5e: adding super fun tests
|
|
51
|
+
|
|
3
52
|
## 2.9.14
|
|
4
53
|
### Patch Changes
|
|
5
54
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-common",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.19",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "
|
|
11
|
-
"npm": "
|
|
10
|
+
"node": "^24",
|
|
11
|
+
"npm": "^11"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -24,25 +24,31 @@
|
|
|
24
24
|
"build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
25
25
|
"build:tsc": "tsc --build --verbose",
|
|
26
26
|
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
27
|
-
"typecheck": "tsc --project tsconfig.types.json"
|
|
27
|
+
"typecheck": "tsc --project tsconfig.types.json",
|
|
28
|
+
"test": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --config ./vite.test.config.ts",
|
|
29
|
+
"test:watch": "NODE_ENV=${NODE_ENV:-test}; npx vitest --config ./vite.test.config.ts",
|
|
30
|
+
"test:coverage": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --coverage --config ./vite.test.config.ts"
|
|
28
31
|
},
|
|
29
32
|
"browserslist": ["> 0.5%, last 2 versions, not dead"],
|
|
30
33
|
"dependencies": {
|
|
31
34
|
"@emotion/react": "11.11.1",
|
|
32
35
|
"@emotion/styled": "11.11.0",
|
|
33
|
-
"@prosopo/account": "2.7.
|
|
34
|
-
"@prosopo/
|
|
35
|
-
"@prosopo/
|
|
36
|
-
"@prosopo/
|
|
37
|
-
"@prosopo/widget-skeleton": "2.7.8",
|
|
36
|
+
"@prosopo/account": "2.7.43",
|
|
37
|
+
"@prosopo/load-balancer": "2.8.13",
|
|
38
|
+
"@prosopo/types": "3.6.4",
|
|
39
|
+
"@prosopo/widget-skeleton": "2.7.12",
|
|
38
40
|
"react": "18.3.1"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
43
|
+
"@prosopo/config": "3.1.26",
|
|
44
|
+
"@types/jsdom": "21.1.7",
|
|
41
45
|
"@types/node": "22.10.2",
|
|
42
46
|
"@types/react": "18.3.1",
|
|
43
47
|
"@vitest/coverage-v8": "3.2.4",
|
|
44
48
|
"concurrently": "9.0.1",
|
|
45
49
|
"del-cli": "6.0.0",
|
|
50
|
+
"dotenv": "16.4.5",
|
|
51
|
+
"jsdom": "25.0.0",
|
|
46
52
|
"npm-run-all": "4.1.5",
|
|
47
53
|
"tslib": "2.7.0",
|
|
48
54
|
"tsx": "4.20.3",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright 2021-2025 Prosopo (UK) Ltd.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
import fs from "node:fs";
|
|
16
|
+
import path from "node:path";
|
|
17
|
+
import { ViteTestConfig } from "@prosopo/config";
|
|
18
|
+
import dotenv from "dotenv";
|
|
19
|
+
process.env.NODE_ENV = "test";
|
|
20
|
+
// if .env.test exists at this level, use it, otherwise use the one at the root
|
|
21
|
+
const envFile = `.env.${process.env.NODE_ENV || "development"}`;
|
|
22
|
+
let envPath = envFile;
|
|
23
|
+
if (fs.existsSync(envFile)) {
|
|
24
|
+
envPath = path.resolve(envFile);
|
|
25
|
+
} else if (fs.existsSync(`../../${envFile}`)) {
|
|
26
|
+
envPath = path.resolve(`../../${envFile}`);
|
|
27
|
+
} else {
|
|
28
|
+
throw new Error(`No ${envFile} file found`);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
dotenv.config({ path: envPath });
|
|
32
|
+
|
|
33
|
+
export default function () {
|
|
34
|
+
const config = ViteTestConfig();
|
|
35
|
+
config.test = config.test || {};
|
|
36
|
+
config.test.environment = "jsdom";
|
|
37
|
+
config.test.globals = true;
|
|
38
|
+
return config;
|
|
39
|
+
}
|