@prosopo/procaptcha-common 2.9.14 → 2.9.18
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/CHANGELOG.md +39 -0
- package/package.json +15 -9
- package/vite.test.config.ts +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @prosopo/procaptcha-common
|
|
2
2
|
|
|
3
|
+
## 2.9.18
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 93d92a7: little bump for publish all
|
|
7
|
+
- Updated dependencies [93d92a7]
|
|
8
|
+
- @prosopo/account@2.7.42
|
|
9
|
+
- @prosopo/load-balancer@2.8.12
|
|
10
|
+
- @prosopo/types@3.6.3
|
|
11
|
+
- @prosopo/widget-skeleton@2.7.11
|
|
12
|
+
|
|
13
|
+
## 2.9.17
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 8ee8434: bump node engines to 24 and npm version to 11
|
|
17
|
+
- cfee479: make @prosopo/config a dev dep
|
|
18
|
+
- Updated dependencies [8ee8434]
|
|
19
|
+
- Updated dependencies [cfee479]
|
|
20
|
+
- @prosopo/widget-skeleton@2.7.10
|
|
21
|
+
- @prosopo/load-balancer@2.8.11
|
|
22
|
+
- @prosopo/account@2.7.41
|
|
23
|
+
- @prosopo/types@3.6.2
|
|
24
|
+
|
|
25
|
+
## 2.9.16
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- e926831: mega mini bump for all to trigger publish all
|
|
29
|
+
- Updated dependencies [e926831]
|
|
30
|
+
- @prosopo/config@3.1.23
|
|
31
|
+
- @prosopo/account@2.7.40
|
|
32
|
+
- @prosopo/load-balancer@2.8.10
|
|
33
|
+
- @prosopo/types@3.6.1
|
|
34
|
+
- @prosopo/widget-skeleton@2.7.9
|
|
35
|
+
|
|
36
|
+
## 2.9.15
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- 9128d5e: correcting types
|
|
40
|
+
- 9128d5e: adding super fun tests
|
|
41
|
+
|
|
3
42
|
## 2.9.14
|
|
4
43
|
### Patch Changes
|
|
5
44
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-common",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.18",
|
|
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.42",
|
|
37
|
+
"@prosopo/load-balancer": "2.8.12",
|
|
38
|
+
"@prosopo/types": "3.6.3",
|
|
39
|
+
"@prosopo/widget-skeleton": "2.7.11",
|
|
38
40
|
"react": "18.3.1"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
43
|
+
"@prosopo/config": "3.1.25",
|
|
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
|
+
}
|