@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.
@@ -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
+ vite v6.4.1 building SSR bundle for production...
35
+ Bundle build started
36
+ transforming...
37
+ Build end
38
+ ✓ 10 modules transformed.
39
+ Entry 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.
40
+ rendering chunks...
41
+ dist/cjs/callbacks/defaultEvents.cjs 0.31 kB
42
+ dist/cjs/elements/window.cjs 0.39 kB
43
+ dist/cjs/elements/form.cjs 0.65 kB
44
+ dist/cjs/providers.cjs 0.98 kB
45
+ dist/cjs/index.cjs 1.16 kB
46
+ dist/cjs/extensionLoader.cjs 1.48 kB
47
+ dist/cjs/reactComponents/Reload.cjs 3.19 kB
48
+ dist/cjs/state/builder.cjs 3.26 kB
49
+ dist/cjs/callbacks/defaultCallbacks.cjs 4.07 kB
50
+ dist/cjs/reactComponents/Checkbox.cjs 4.26 kB
51
+ ✓ built in 223ms
@@ -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
+ vite v6.4.1 building SSR bundle for production...
35
+ Bundle build started
36
+ transforming...
37
+ Build end
38
+ ✓ 10 modules transformed.
39
+ rendering chunks...
40
+ dist/callbacks/defaultEvents.js 0.19 kB
41
+ dist/extensionLoader.js 0.21 kB
42
+ dist/elements/window.js 0.29 kB
43
+ dist/elements/form.js 0.52 kB
44
+ dist/index.js 0.77 kB
45
+ dist/providers.js 0.83 kB
46
+ dist/reactComponents/Reload.js 3.01 kB
47
+ dist/state/builder.js 3.14 kB
48
+ dist/callbacks/defaultCallbacks.js 3.91 kB
49
+ dist/reactComponents/Checkbox.js 4.04 kB
50
+ ✓ built in 254ms
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.14",
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": ">=v20.0.0",
11
- "npm": ">=10.6.0"
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.39",
34
- "@prosopo/config": "3.1.22",
35
- "@prosopo/load-balancer": "2.8.9",
36
- "@prosopo/types": "3.6.0",
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
+ }