Skip to content

Commit d7e2257

Browse files
authored
Release 2.1.11 (#1510)
2 parents 38c651f + aaca233 commit d7e2257

File tree

103 files changed

+23342
-22615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+23342
-22615
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ fetch-retries=100 # try 100 times to download a pkg
44
fetch-retry-mintimeout=1 # 1ms between retries minimum
55
fetch-retry-maxtimeout=10000 # 10s between retries maximum
66
fetch-retry-factor=2 # increase timeout by 2x each retry
7-
prefer-offline=true # don't hit the network for packages that are already in the cache

demos/client-bundle-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"start": "vite serve ./src --port 9232 --config vite.config.ts",
1414
"clean": "echo 'nothing to clean'"
1515
},
16-
"version": "2.1.10",
16+
"version": "2.1.11",
1717
"devDependencies": {
18-
"@prosopo/dotenv": "2.1.10",
18+
"@prosopo/dotenv": "2.1.11",
1919
"@types/node": "22.5.5",
2020
"@vitest/coverage-v8": "2.1.1",
2121
"concurrently": "9.0.1",

demos/client-example-server/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/client-example-server",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "Backend for client-example",
55
"main": "dist/app.js",
66
"type": "module",
@@ -32,12 +32,12 @@
3232
"@noble/hashes": "1.5.0",
3333
"@polkadot/util": "12.6.2",
3434
"@polkadot/util-crypto": "12.6.2",
35-
"@prosopo/common": "2.1.10",
36-
"@prosopo/contract": "2.1.10",
37-
"@prosopo/dotenv": "2.1.10",
38-
"@prosopo/server": "2.1.10",
39-
"@prosopo/types": "2.1.10",
40-
"@prosopo/util": "2.1.10",
35+
"@prosopo/common": "2.1.11",
36+
"@prosopo/contract": "2.1.11",
37+
"@prosopo/dotenv": "2.1.11",
38+
"@prosopo/server": "2.1.11",
39+
"@prosopo/types": "2.1.11",
40+
"@prosopo/util": "2.1.11",
4141
"@typegoose/auto-increment": "4.6.0",
4242
"cors": "2.8.5",
4343
"express": "4.21.0",
@@ -47,7 +47,7 @@
4747
"zod": "3.23.8"
4848
},
4949
"devDependencies": {
50-
"@prosopo/config": "2.1.10",
50+
"@prosopo/config": "2.1.11",
5151
"@types/jsonwebtoken": "9.0.6",
5252
"@vitest/coverage-v8": "2.1.1",
5353
"concurrently": "9.0.1",

demos/client-example/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/client-example",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"private": true,
55
"type": "module",
66
"engines": {
@@ -13,14 +13,14 @@
1313
"@mui/material": "5.9.1",
1414
"@polkadot/extension-dapp": "0.46.9",
1515
"@polkadot/extension-inject": "0.46.9",
16-
"@prosopo/common": "2.1.10",
17-
"@prosopo/locale-browser": "2.1.10",
18-
"@prosopo/procaptcha-frictionless": "2.1.10",
19-
"@prosopo/procaptcha-pow": "2.1.10",
20-
"@prosopo/procaptcha-react": "2.1.10",
21-
"@prosopo/server": "2.1.10",
22-
"@prosopo/types": "2.1.10",
23-
"@prosopo/vite-plugin-watch-workspace": "2.1.10",
16+
"@prosopo/common": "2.1.11",
17+
"@prosopo/locale-browser": "2.1.11",
18+
"@prosopo/procaptcha-frictionless": "2.1.11",
19+
"@prosopo/procaptcha-pow": "2.1.11",
20+
"@prosopo/procaptcha-react": "2.1.11",
21+
"@prosopo/server": "2.1.11",
22+
"@prosopo/types": "2.1.11",
23+
"@prosopo/vite-plugin-watch-workspace": "2.1.11",
2424
"@types/react-dom": "18.3.0",
2525
"@vitejs/plugin-react": "4.3.1",
2626
"react": "18.3.1",
@@ -40,8 +40,8 @@
4040
}
4141
},
4242
"devDependencies": {
43-
"@prosopo/config": "2.1.10",
44-
"@prosopo/dotenv": "2.1.10",
43+
"@prosopo/config": "2.1.11",
44+
"@prosopo/dotenv": "2.1.11",
4545
"@types/node": "22.5.5",
4646
"@vitest/coverage-v8": "2.1.1",
4747
"concurrently": "9.0.1",

demos/cypress-shared/cypress/e2e/captcha.cy.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import { u8aToHex } from "@polkadot/util";
1717
import { ProsopoDatasetError } from "@prosopo/common";
1818
import { getPairAsync } from "@prosopo/contract";
1919
import { datasetWithSolutionHashes } from "@prosopo/datasets";
20-
import { AdminApiPaths, type Captcha } from "@prosopo/types";
20+
import {
21+
AdminApiPaths,
22+
type Captcha,
23+
type IUserSettings,
24+
} from "@prosopo/types";
2125
import { at } from "@prosopo/util";
2226
import { checkboxClass } from "../support/commands.js";
2327

@@ -27,6 +31,12 @@ describe("Captchas", () => {
2731
const pair = await getPairAsync(Cypress.env("PROSOPO_PROVIDER_MNEMONIC"));
2832
const signature = u8aToHex(pair.sign(timestamp.toString()));
2933
const adminSiteKeyURL = `http://localhost:9229${AdminApiPaths.SiteKeyRegister}`;
34+
const settings: IUserSettings = {
35+
captchaType: "pow",
36+
domains: ["0.0.0.0"],
37+
frictionlessThreshold: 0.5,
38+
powDifficulty: 2,
39+
};
3040
await fetch(adminSiteKeyURL, {
3141
method: "POST",
3242
headers: {
@@ -36,6 +46,7 @@ describe("Captchas", () => {
3646
},
3747
body: JSON.stringify({
3848
siteKey: Cypress.env("PROSOPO_SITE_KEY"),
49+
settings,
3950
}),
4051
});
4152
});

demos/cypress-shared/cypress/e2e/correct.captcha.cy.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import { u8aToHex } from "@polkadot/util";
1717
import { ProsopoDatasetError } from "@prosopo/common";
1818
import { getPairAsync } from "@prosopo/contract";
1919
import { datasetWithSolutionHashes } from "@prosopo/datasets";
20-
import { AdminApiPaths, type Captcha } from "@prosopo/types";
20+
import {
21+
AdminApiPaths,
22+
type Captcha,
23+
type IUserSettings,
24+
} from "@prosopo/types";
2125
import { checkboxClass } from "../support/commands.js";
2226

2327
describe("Captchas", () => {
@@ -26,6 +30,12 @@ describe("Captchas", () => {
2630
const pair = await getPairAsync(Cypress.env("PROSOPO_PROVIDER_MNEMONIC"));
2731
const signature = u8aToHex(pair.sign(timestamp.toString()));
2832
const adminSiteKeyURL = `http://localhost:9229${AdminApiPaths.SiteKeyRegister}`;
33+
const settings: IUserSettings = {
34+
captchaType: "pow",
35+
domains: ["0.0.0.0"],
36+
frictionlessThreshold: 0.5,
37+
powDifficulty: 2,
38+
};
2939
await fetch(adminSiteKeyURL, {
3040
method: "POST",
3141
headers: {
@@ -35,6 +45,7 @@ describe("Captchas", () => {
3545
},
3646
body: JSON.stringify({
3747
siteKey: Cypress.env("PROSOPO_SITE_KEY"),
48+
settings,
3849
}),
3950
});
4051
});

demos/cypress-shared/cypress/e2e/correct.captcha.signup.cy.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import { u8aToHex } from "@polkadot/util";
1717
import { ProsopoDatasetError } from "@prosopo/common";
1818
import { getPairAsync } from "@prosopo/contract";
1919
import { datasetWithSolutionHashes } from "@prosopo/datasets";
20-
import { AdminApiPaths, type Captcha } from "@prosopo/types";
20+
import {
21+
AdminApiPaths,
22+
type Captcha,
23+
type IUserSettings,
24+
} from "@prosopo/types";
2125
import { checkboxClass } from "../support/commands.js";
2226

2327
describe("Captchas", () => {
@@ -26,6 +30,12 @@ describe("Captchas", () => {
2630
const pair = await getPairAsync(Cypress.env("PROSOPO_PROVIDER_MNEMONIC"));
2731
const signature = u8aToHex(pair.sign(timestamp.toString()));
2832
const adminSiteKeyURL = `http://localhost:9229${AdminApiPaths.SiteKeyRegister}`;
33+
const settings: IUserSettings = {
34+
captchaType: "pow",
35+
domains: ["0.0.0.0"],
36+
frictionlessThreshold: 0.5,
37+
powDifficulty: 2,
38+
};
2939
await fetch(adminSiteKeyURL, {
3040
method: "POST",
3141
headers: {
@@ -35,6 +45,7 @@ describe("Captchas", () => {
3545
},
3646
body: JSON.stringify({
3747
siteKey: Cypress.env("PROSOPO_SITE_KEY"),
48+
settings,
3849
}),
3950
});
4051
});

demos/cypress-shared/cypress/support/commands.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ declare global {
3535

3636
export const checkboxClass = '[type="checkbox"]';
3737
function clickIAmHuman(): Cypress.Chainable<Captcha[]> {
38-
cy.intercept("GET", "**/prosopo/provider/captcha/**").as("getCaptcha");
38+
cy.intercept("POST", "**/prosopo/provider/client/captcha/**").as(
39+
"getCaptcha",
40+
);
3941
cy.get(checkboxClass, { timeout: 12000 }).first().click();
4042

4143
return cy
@@ -131,7 +133,9 @@ function clickCorrectCaptchaImages(
131133
}
132134

133135
function clickNextButton() {
134-
cy.intercept("POST", "**/prosopo/provider/solution").as("postSolution");
136+
cy.intercept("POST", "**/prosopo/provider/client/solution").as(
137+
"postSolution",
138+
);
135139
// Go to the next captcha or submit solution
136140
cy.get('button[data-cy="button-next"]').click({ force: true });
137141
cy.wait(0);

demos/cypress-shared/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"name": "@prosopo/cypress-shared",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"private": true,
55
"type": "module",
66
"engines": {
77
"node": "20",
88
"npm": ">=9"
99
},
1010
"dependencies": {
11-
"@prosopo/types": "2.1.10",
12-
"@prosopo/util": "2.1.10"
11+
"@prosopo/types": "2.1.11",
12+
"@prosopo/util": "2.1.11"
1313
},
1414
"devDependencies": {
1515
"@cypress/xpath": "2.0.3",
16-
"@prosopo/common": "2.1.10",
17-
"@prosopo/datasets": "2.1.10",
18-
"@prosopo/types-database": "2.1.10",
16+
"@prosopo/common": "2.1.11",
17+
"@prosopo/datasets": "2.1.11",
18+
"@prosopo/types-database": "2.1.11",
1919
"@types/node": "22.5.5",
2020
"@vitest/coverage-v8": "2.1.1",
2121
"concurrently": "9.0.1",

demos/provider-mock/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/provider-mock",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"author": "PROSOPO LIMITED <info@prosopo.io>",
55
"license": "Apache-2.0",
66
"main": "./dist/index.js",
@@ -16,9 +16,9 @@
1616
"build:cjs": "echo 'no cjs build'"
1717
},
1818
"dependencies": {
19-
"@prosopo/common": "2.1.10",
20-
"@prosopo/provider": "2.1.10",
21-
"@prosopo/types": "2.1.10",
19+
"@prosopo/common": "2.1.11",
20+
"@prosopo/provider": "2.1.11",
21+
"@prosopo/types": "2.1.11",
2222
"cors": "2.8.5",
2323
"express": "4.21.0"
2424
},

dev/config/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/config",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "Prosopo config library",
55
"main": "./dist/index.js",
66
"type": "module",
@@ -36,9 +36,9 @@
3636
"@babel/plugin-transform-react-jsx": "7.25.2",
3737
"@babel/plugin-transform-runtime": "7.25.4",
3838
"@babel/preset-env": "7.25.4",
39-
"@prosopo/common": "2.1.10",
40-
"@prosopo/types": "2.1.10",
41-
"@prosopo/util": "2.1.10",
39+
"@prosopo/common": "2.1.11",
40+
"@prosopo/types": "2.1.11",
41+
"@prosopo/util": "2.1.11",
4242
"@rollup/plugin-alias": "5.1.0",
4343
"@rollup/plugin-babel": "6.0.4",
4444
"@rollup/plugin-commonjs": "26.0.1",

dev/flux/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/flux",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "Tools for managing Flux deployment",
55
"main": "dist/index.js",
66
"bin": {
@@ -24,10 +24,10 @@
2424
"@noble/curves": "1.6.0",
2525
"@polkadot/util": "12.6.2",
2626
"@polkadot/util-crypto": "12.6.2",
27-
"@prosopo/common": "2.1.10",
28-
"@prosopo/config": "2.1.10",
29-
"@prosopo/dotenv": "2.1.10",
30-
"@prosopo/util": "2.1.10",
27+
"@prosopo/common": "2.1.11",
28+
"@prosopo/config": "2.1.11",
29+
"@prosopo/dotenv": "2.1.11",
30+
"@prosopo/util": "2.1.11",
3131
"openpgp": "5.11.2",
3232
"qs": "6.13.0",
3333
"socket.io-client": "4.7.5",

dev/gh-actions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/gh-actions",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "",
55
"private": true,
66
"scripts": {

dev/lint/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/lint",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "",
55
"private": true,
66
"scripts": {
@@ -37,7 +37,7 @@
3737
"npm": ">=9"
3838
},
3939
"dependencies": {
40-
"@prosopo/util": "2.1.10",
40+
"@prosopo/util": "2.1.11",
4141
"fast-glob": "3.3.2",
4242
"zod": "3.23.8"
4343
}

dev/prosoponator-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/prosoponator-bot",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "",
55
"private": true,
66
"scripts": {

dev/scripts/env.development

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=development
1818
PROSOPO_LOG_LEVEL=debug
1919
PROSOPO_MONGO_CAPTCHA_URI=
2020
PROSOPO_MONGO_EVENTS_URI=mongodb+srv://<MONGO_URI_HERE>/frictionless_events
21-
PROSOPO_PACKAGE_VERSION=2.1.10
21+
PROSOPO_PACKAGE_VERSION=2.1.11
2222
PROSOPO_PROVIDER_ACCOUNT_PASSWORD=
2323
PROSOPO_PROVIDER_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV
2424
PROSOPO_PROVIDER_JSON=
@@ -32,4 +32,6 @@ WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=
3232
WATCHTOWER_NOTIFICATIONS=
3333
WATCHTOWER_POLL_INTERVAL=30
3434
WATCHTOWER_REMOVE_VOLUMES=true
35-
35+
PROSOPO_ADMIN_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV
36+
PROSOPO_ADMIN_JSON=
37+
PROSOPO_ADMIN_MNEMONIC=puppy cream effort carbon despair leg pyramid cotton endorse immense drill peasant

dev/scripts/env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=production
1616
PROSOPO_LOG_LEVEL=info
1717
PROSOPO_MONGO_CAPTCHA_URI=
1818
PROSOPO_MONGO_EVENTS_URI=mongodb+srv://<MONGO_URI_HERE>/frictionless_events
19-
PROSOPO_PACKAGE_VERSION=2.1.10
19+
PROSOPO_PACKAGE_VERSION=2.1.11
2020
PROSOPO_PROVIDER_ACCOUNT_PASSWORD=
2121
PROSOPO_PROVIDER_ADDRESS=
2222
PROSOPO_PROVIDER_JSON=

dev/scripts/env.staging

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=staging
2121
PROSOPO_LOG_LEVEL=info
2222
PROSOPO_MONGO_CAPTCHA_URI=
2323
PROSOPO_MONGO_EVENTS_URI=mongodb+srv://<MONGO_URI_HERE>/frictionless_events
24-
PROSOPO_PACKAGE_VERSION=2.1.10
24+
PROSOPO_PACKAGE_VERSION=2.1.11
2525
PROSOPO_PROVIDER_ACCOUNT_PASSWORD=
2626
PROSOPO_PROVIDER_ADDRESS=
2727
PROSOPO_PROVIDER_JSON=
@@ -35,3 +35,6 @@ WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=
3535
WATCHTOWER_NOTIFICATIONS=
3636
WATCHTOWER_POLL_INTERVAL=30
3737
WATCHTOWER_REMOVE_VOLUMES=true
38+
PROSOPO_ADMIN_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV
39+
PROSOPO_ADMIN_JSON=
40+
PROSOPO_ADMIN_MNEMONIC=puppy cream effort carbon despair leg pyramid cotton endorse immense drill peasant

0 commit comments

Comments
 (0)