diff --git a/demos/client-bundle-example/package.json b/demos/client-bundle-example/package.json index 2d2119916c..703f731aff 100644 --- a/demos/client-bundle-example/package.json +++ b/demos/client-bundle-example/package.json @@ -13,9 +13,9 @@ "start": "vite serve ./src --port 9232 --config vite.config.ts", "clean": "echo 'nothing to clean'" }, - "version": "2.1.15", + "version": "2.1.16", "devDependencies": { - "@prosopo/dotenv": "2.1.15", + "@prosopo/dotenv": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", diff --git a/demos/client-example-server/package.json b/demos/client-example-server/package.json index 08d302c592..f67917ee04 100644 --- a/demos/client-example-server/package.json +++ b/demos/client-example-server/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/client-example-server", - "version": "2.1.15", + "version": "2.1.16", "description": "Backend for client-example", "main": "dist/app.js", "type": "module", @@ -32,12 +32,12 @@ "@noble/hashes": "1.5.0", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/server": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/server": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "@typegoose/auto-increment": "4.6.0", "cors": "2.8.5", "express": "4.21.1", @@ -47,7 +47,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/jsonwebtoken": "9.0.6", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", diff --git a/demos/client-example/package.json b/demos/client-example/package.json index 669fadf57e..f394a5debb 100644 --- a/demos/client-example/package.json +++ b/demos/client-example/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/client-example", - "version": "2.1.15", + "version": "2.1.16", "private": true, "type": "module", "engines": { @@ -13,14 +13,14 @@ "@mui/material": "5.9.1", "@polkadot/extension-dapp": "0.46.9", "@polkadot/extension-inject": "0.46.9", - "@prosopo/common": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha-frictionless": "2.1.15", - "@prosopo/procaptcha-pow": "2.1.15", - "@prosopo/procaptcha-react": "2.1.15", - "@prosopo/server": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/vite-plugin-watch-workspace": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha-frictionless": "2.1.16", + "@prosopo/procaptcha-pow": "2.1.16", + "@prosopo/procaptcha-react": "2.1.16", + "@prosopo/server": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/vite-plugin-watch-workspace": "2.1.16", "@types/react-dom": "18.3.0", "@vitejs/plugin-react": "4.3.1", "express": "4.21.1", @@ -41,8 +41,8 @@ } }, "devDependencies": { - "@prosopo/config": "2.1.15", - "@prosopo/dotenv": "2.1.15", + "@prosopo/config": "2.1.16", + "@prosopo/dotenv": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", diff --git a/demos/cypress-shared/cypress/e2e/captcha.cy.ts b/demos/cypress-shared/cypress/e2e/captcha.cy.ts index 54aab99fd4..961bbacc61 100644 --- a/demos/cypress-shared/cypress/e2e/captcha.cy.ts +++ b/demos/cypress-shared/cypress/e2e/captcha.cy.ts @@ -23,7 +23,7 @@ import { type IUserSettings, } from "@prosopo/types"; import { at } from "@prosopo/util"; -import { checkboxClass } from "../support/commands.js"; +import { checkboxClass, getWidgetElement } from "../support/commands.js"; describe("Captchas", () => { before(async () => { @@ -69,7 +69,7 @@ describe("Captchas", () => { // visit the base URL specified on command line when running cypress return cy.visit(Cypress.env("default_page")).then(() => { - cy.get(checkboxClass).should("be.visible"); + getWidgetElement(checkboxClass).should("be.visible"); // wrap the solutions to make them available to the tests cy.wrap(solutions).as("solutions"); }); diff --git a/demos/cypress-shared/cypress/e2e/correct.captcha.cy.ts b/demos/cypress-shared/cypress/e2e/correct.captcha.cy.ts index 866ff90c72..adcd0452a2 100644 --- a/demos/cypress-shared/cypress/e2e/correct.captcha.cy.ts +++ b/demos/cypress-shared/cypress/e2e/correct.captcha.cy.ts @@ -22,7 +22,7 @@ import { type Captcha, type IUserSettings, } from "@prosopo/types"; -import { checkboxClass } from "../support/commands.js"; +import { checkboxClass, getWidgetElement } from "../support/commands.js"; describe("Captchas", () => { before(async () => { @@ -69,7 +69,7 @@ describe("Captchas", () => { // visit the base URL specified on command line when running cypress return cy.visit(Cypress.env("default_page")).then(() => { - cy.get(checkboxClass).should("be.visible"); + getWidgetElement(checkboxClass).should("be.visible"); // wrap the solutions to make them available to the tests cy.wrap(solutions).as("solutions"); }); @@ -90,9 +90,7 @@ describe("Captchas", () => { cy.clickNextButton(); }); }); - cy.get("input[type='checkbox']").then((checkboxes) => { - cy.wrap(checkboxes).first().should("not.be.checked"); - }); + getWidgetElement(checkboxClass).first().should("not.be.checked"); }); // check the logs by going through all recorded calls @@ -115,9 +113,7 @@ describe("Captchas", () => { }) .then(() => { // Get inputs of type checkbox - cy.get("input[type='checkbox']").then((checkboxes) => { - cy.wrap(checkboxes).first().should("be.checked"); - }); + getWidgetElement(checkboxClass).first().should("be.checked"); }); }); }); diff --git a/demos/cypress-shared/cypress/e2e/correct.captcha.signup.cy.ts b/demos/cypress-shared/cypress/e2e/correct.captcha.signup.cy.ts index 93e1d965e5..520513e730 100644 --- a/demos/cypress-shared/cypress/e2e/correct.captcha.signup.cy.ts +++ b/demos/cypress-shared/cypress/e2e/correct.captcha.signup.cy.ts @@ -22,7 +22,7 @@ import { type Captcha, type IUserSettings, } from "@prosopo/types"; -import { checkboxClass } from "../support/commands.js"; +import { checkboxClass, getWidgetElement } from "../support/commands.js"; describe("Captchas", () => { before(async () => { @@ -69,7 +69,7 @@ describe("Captchas", () => { // visit the base URL specified on command line when running cypress return cy.visit(Cypress.env("default_page")).then(() => { - cy.get(checkboxClass).should("be.visible"); + getWidgetElement(checkboxClass).should("be.visible"); // wrap the solutions to make them available to the tests cy.wrap(solutions).as("solutions"); }); @@ -100,7 +100,10 @@ describe("Captchas", () => { cy.wait("@postSolution"); // Get checked checkboxes - cy.get("input[type='checkbox']:checked").should("have.length.gte", 1); + getWidgetElement(`${checkboxClass}:checked`).should( + "have.length.gte", + 1, + ); const uniqueId = `test${Cypress._.random(0, 1e6)}`; cy.get('input[type="password"]').type("password"); diff --git a/demos/cypress-shared/cypress/support/commands.ts b/demos/cypress-shared/cypress/support/commands.ts index d1543e2bf4..9fcfc657b3 100644 --- a/demos/cypress-shared/cypress/support/commands.ts +++ b/demos/cypress-shared/cypress/support/commands.ts @@ -22,23 +22,38 @@ declare global { // biome-ignore lint/suspicious/noExplicitAny: TODO fix any interface Chainable { clickIAmHuman(): Cypress.Chainable; + captchaImages(): Cypress.Chainable>; + clickCorrectCaptchaImages( captcha: Captcha, ): Chainable>; + getSelectors(captcha: Captcha): Cypress.Chainable; + clickNextButton(): Cypress.Chainable; + elementExists(element: string): Chainable; } } } export const checkboxClass = '[type="checkbox"]'; + +export function getWidgetElement( + selector: string, + options: object = {}, +): Chainable> { + options = { ...options, includeShadowDom: true }; + + return cy.get(selector, options); +} + function clickIAmHuman(): Cypress.Chainable { cy.intercept("POST", "**/prosopo/provider/client/captcha/**").as( "getCaptcha", ); - cy.get(checkboxClass, { timeout: 12000 }).first().click(); + getWidgetElement(checkboxClass, { timeout: 12000 }).first().click(); return cy .wait("@getCaptcha", { timeout: 36000 }) @@ -69,19 +84,24 @@ function clickIAmHuman(): Cypress.Chainable { } function captchaImages(): Cypress.Chainable> { - return cy - .xpath("//p[contains(text(),'all containing')]", { timeout: 4000 }) - .should("be.visible") - .parent() - .parent() - .parent() - .parent() - .children() - .next() - .children() - .first() - .children() - .as("captchaImages"); + return getWidgetElement("p").then(($p) => { + const $pWithText = $p.filter((index, el) => { + return Cypress.$(el).text().includes("all containing"); + }); + + cy.wrap($pWithText) + .should("be.visible") + .parent() + .parent() + .parent() + .parent() + .children() + .next() + .children() + .first() + .children() + .as("captchaImages"); + }); } function getSelectors(captcha: Captcha) { @@ -121,7 +141,7 @@ function clickCorrectCaptchaImages( cy.getSelectors(captcha).then((selectors: string[]) => { console.log("captchaId", captcha.captchaId, "selectors", selectors); // Click the correct images - cy.get(selectors.join(", ")).then((elements) => { + getWidgetElement(selectors.join(", ")).then((elements) => { if (elements.length > 0) { cy.wrap(elements).click({ multiple: true }); } @@ -137,7 +157,7 @@ function clickNextButton() { "postSolution", ); // Go to the next captcha or submit solution - cy.get('button[data-cy="button-next"]').click({ force: true }); + getWidgetElement('button[data-cy="button-next"]').click({ force: true }); cy.wait(0); } diff --git a/demos/cypress-shared/package.json b/demos/cypress-shared/package.json index d3b2643d58..2a8473f798 100644 --- a/demos/cypress-shared/package.json +++ b/demos/cypress-shared/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/cypress-shared", - "version": "2.1.15", + "version": "2.1.16", "private": true, "type": "module", "engines": { @@ -8,15 +8,15 @@ "npm": ">=9" }, "dependencies": { - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { "@cypress/xpath": "2.0.3", - "@prosopo/common": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/types-database": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/types-database": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", diff --git a/demos/provider-mock/package.json b/demos/provider-mock/package.json index d1e6f2ea01..3ec228f8e0 100644 --- a/demos/provider-mock/package.json +++ b/demos/provider-mock/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/provider-mock", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -16,9 +16,9 @@ "build:cjs": "echo 'no cjs build'" }, "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/provider": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/provider": "2.1.16", + "@prosopo/types": "2.1.16", "cors": "2.8.5", "express": "4.21.1" }, diff --git a/dev/config/package.json b/dev/config/package.json index 35e0613389..cdbffe7acd 100644 --- a/dev/config/package.json +++ b/dev/config/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/config", - "version": "2.1.15", + "version": "2.1.16", "description": "Prosopo config library", "main": "./dist/index.js", "type": "module", @@ -36,9 +36,9 @@ "@babel/plugin-transform-react-jsx": "7.25.2", "@babel/plugin-transform-runtime": "7.25.4", "@babel/preset-env": "7.25.4", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "@rollup/plugin-alias": "5.1.0", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-commonjs": "26.0.1", diff --git a/dev/flux/package.json b/dev/flux/package.json index ab57a05fb9..59e1d3ca12 100644 --- a/dev/flux/package.json +++ b/dev/flux/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/flux", - "version": "2.1.15", + "version": "2.1.16", "description": "Tools for managing Flux deployment", "main": "dist/index.js", "bin": { @@ -24,10 +24,10 @@ "@noble/curves": "1.6.0", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "openpgp": "5.11.2", "qs": "6.13.0", diff --git a/dev/gh-actions/package.json b/dev/gh-actions/package.json index 0853fe2733..852720d2e6 100644 --- a/dev/gh-actions/package.json +++ b/dev/gh-actions/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/gh-actions", - "version": "2.1.15", + "version": "2.1.16", "description": "", "private": true, "scripts": { diff --git a/dev/lint/package.json b/dev/lint/package.json index e82e53001e..2c76c2b676 100644 --- a/dev/lint/package.json +++ b/dev/lint/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/lint", - "version": "2.1.15", + "version": "2.1.16", "description": "", "private": true, "scripts": { @@ -37,7 +37,7 @@ "npm": ">=9" }, "dependencies": { - "@prosopo/util": "2.1.15", + "@prosopo/util": "2.1.16", "express": "4.21.1", "fast-glob": "3.3.2", "zod": "3.23.8" diff --git a/dev/prosoponator-bot/package.json b/dev/prosoponator-bot/package.json index e59be50d2c..25b39fceb4 100644 --- a/dev/prosoponator-bot/package.json +++ b/dev/prosoponator-bot/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/prosoponator-bot", - "version": "2.1.15", + "version": "2.1.16", "description": "", "private": true, "scripts": { diff --git a/dev/scripts/env.development b/dev/scripts/env.development index f2bf2cf1bd..7809dbd96b 100644 --- a/dev/scripts/env.development +++ b/dev/scripts/env.development @@ -18,7 +18,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=development PROSOPO_LOG_LEVEL=debug PROSOPO_MONGO_CAPTCHA_URI= PROSOPO_MONGO_EVENTS_URI=mongodb+srv:///frictionless_events -PROSOPO_PACKAGE_VERSION=2.1.15 +PROSOPO_PACKAGE_VERSION=2.1.16 PROSOPO_PROVIDER_ACCOUNT_PASSWORD= PROSOPO_PROVIDER_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV PROSOPO_PROVIDER_JSON= diff --git a/dev/scripts/env.production b/dev/scripts/env.production index 3c9bd24539..513d582f19 100644 --- a/dev/scripts/env.production +++ b/dev/scripts/env.production @@ -16,7 +16,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=production PROSOPO_LOG_LEVEL=info PROSOPO_MONGO_CAPTCHA_URI= PROSOPO_MONGO_EVENTS_URI=mongodb+srv:///frictionless_events -PROSOPO_PACKAGE_VERSION=2.1.15 +PROSOPO_PACKAGE_VERSION=2.1.16 PROSOPO_PROVIDER_ACCOUNT_PASSWORD= PROSOPO_PROVIDER_ADDRESS= PROSOPO_PROVIDER_JSON= diff --git a/dev/scripts/env.staging b/dev/scripts/env.staging index ce4a4d58fd..ae831e2fbd 100644 --- a/dev/scripts/env.staging +++ b/dev/scripts/env.staging @@ -21,7 +21,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=staging PROSOPO_LOG_LEVEL=info PROSOPO_MONGO_CAPTCHA_URI= PROSOPO_MONGO_EVENTS_URI=mongodb+srv:///frictionless_events -PROSOPO_PACKAGE_VERSION=2.1.15 +PROSOPO_PACKAGE_VERSION=2.1.16 PROSOPO_PROVIDER_ACCOUNT_PASSWORD= PROSOPO_PROVIDER_ADDRESS= PROSOPO_PROVIDER_JSON= diff --git a/dev/scripts/env.test b/dev/scripts/env.test index 7c92aa2ffc..b6d645d74e 100644 --- a/dev/scripts/env.test +++ b/dev/scripts/env.test @@ -21,7 +21,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=development PROSOPO_LOG_LEVEL=info PROSOPO_MONGO_CAPTCHA_URI=mongodb://root:root@localhost:27017/captchastorage?authSource=admin PROSOPO_MONGO_EVENTS_URI=mongodb+srv:///frictionless_events -PROSOPO_PACKAGE_VERSION=2.1.15 +PROSOPO_PACKAGE_VERSION=2.1.16 PROSOPO_PROVIDER_ACCOUNT_PASSWORD= PROSOPO_PROVIDER_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV PROSOPO_PROVIDER_JSON= diff --git a/dev/scripts/package.json b/dev/scripts/package.json index 0aa8729e8c..5036544f05 100644 --- a/dev/scripts/package.json +++ b/dev/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/scripts", - "version": "2.1.15", + "version": "2.1.16", "description": "Dev scripts for working with prosopo packages", "main": "dist/index.js", "type": "module", @@ -26,18 +26,18 @@ "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/cli": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/env": "2.1.15", - "@prosopo/provider": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", - "@prosopo/types-env": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/cli": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/env": "2.1.16", + "@prosopo/provider": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", + "@prosopo/types-env": "2.1.16", + "@prosopo/util": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1", "fast-glob": "3.3.2", diff --git a/dev/ts-brand/package.json b/dev/ts-brand/package.json index 8dc486a181..7cad59cde0 100644 --- a/dev/ts-brand/package.json +++ b/dev/ts-brand/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/ts-brand", - "version": "2.1.15", + "version": "2.1.16", "description": "Brand your TypeScript types", "main": "./dist/index.js", "type": "module", @@ -24,7 +24,7 @@ "author": "Prosopo Limited", "license": "Apache-2.0", "dependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1" }, diff --git a/dev/vite-plugin-watch-workspace/package.json b/dev/vite-plugin-watch-workspace/package.json index 34f509da9d..bbd6bb6ede 100644 --- a/dev/vite-plugin-watch-workspace/package.json +++ b/dev/vite-plugin-watch-workspace/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/vite-plugin-watch-workspace", - "version": "2.1.15", + "version": "2.1.16", "description": "Vite plugin for watching and rebuilding external files", "main": "./dist/index.js", "type": "module", @@ -23,7 +23,7 @@ "author": "Prosopo Limited", "license": "Apache-2.0", "dependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "debug": "4.3.7", "esbuild": "0.23.1", "express": "4.21.1", diff --git a/docker/images/provider/package.json b/docker/images/provider/package.json index 8935ae8a1b..0440cf82c1 100644 --- a/docker/images/provider/package.json +++ b/docker/images/provider/package.json @@ -5,5 +5,5 @@ "node": "20", "npm": ">=9" }, - "version": "2.1.15" + "version": "2.1.16" } diff --git a/package-lock.json b/package-lock.json index af01d17c75..46e28a1622 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prosopo/captcha", - "version": "2.1.15", + "version": "2.1.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@prosopo/captcha", - "version": "2.1.15", + "version": "2.1.16", "hasInstallScript": true, "license": "Apache-2.0", "workspaces": [ @@ -43,12 +43,12 @@ }, "demos/client-bundle-example": { "name": "@prosopo/client-bundle-example", - "version": "2.1.15", + "version": "2.1.16", "dependencies": { "express": "4.21.1" }, "devDependencies": { - "@prosopo/dotenv": "2.1.15", + "@prosopo/dotenv": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", @@ -67,21 +67,21 @@ }, "demos/client-example": { "name": "@prosopo/client-example", - "version": "2.1.15", + "version": "2.1.16", "dependencies": { "@emotion/react": "11.13.3", "@emotion/styled": "11.13.0", "@mui/material": "5.9.1", "@polkadot/extension-dapp": "0.46.9", "@polkadot/extension-inject": "0.46.9", - "@prosopo/common": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha-frictionless": "2.1.15", - "@prosopo/procaptcha-pow": "2.1.15", - "@prosopo/procaptcha-react": "2.1.15", - "@prosopo/server": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/vite-plugin-watch-workspace": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha-frictionless": "2.1.16", + "@prosopo/procaptcha-pow": "2.1.16", + "@prosopo/procaptcha-react": "2.1.16", + "@prosopo/server": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/vite-plugin-watch-workspace": "2.1.16", "@types/react-dom": "18.3.0", "@vitejs/plugin-react": "4.3.1", "express": "4.21.1", @@ -90,8 +90,8 @@ "react-router-dom": "6.26.2" }, "devDependencies": { - "@prosopo/config": "2.1.15", - "@prosopo/dotenv": "2.1.15", + "@prosopo/config": "2.1.16", + "@prosopo/dotenv": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", @@ -110,18 +110,18 @@ }, "demos/client-example-server": { "name": "@prosopo/client-example-server", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "1.5.0", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/server": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/server": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "@typegoose/auto-increment": "4.6.0", "cors": "2.8.5", "express": "4.21.1", @@ -131,7 +131,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/jsonwebtoken": "9.0.6", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", @@ -150,17 +150,17 @@ }, "demos/cypress-shared": { "name": "@prosopo/cypress-shared", - "version": "2.1.15", + "version": "2.1.16", "dependencies": { - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { "@cypress/xpath": "2.0.3", - "@prosopo/common": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/types-database": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/types-database": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", @@ -182,12 +182,12 @@ }, "demos/provider-mock": { "name": "@prosopo/provider-mock", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/provider": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/provider": "2.1.16", + "@prosopo/types": "2.1.16", "cors": "2.8.5", "express": "4.21.1" }, @@ -209,7 +209,7 @@ }, "dev/config": { "name": "@prosopo/config", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@babel/core": "7.25.2", @@ -217,9 +217,9 @@ "@babel/plugin-transform-react-jsx": "7.25.2", "@babel/plugin-transform-runtime": "7.25.4", "@babel/preset-env": "7.25.4", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "@rollup/plugin-alias": "5.1.0", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-commonjs": "26.0.1", @@ -276,16 +276,16 @@ }, "dev/flux": { "name": "@prosopo/flux", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@noble/curves": "1.6.0", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "openpgp": "5.11.2", "qs": "6.13.0", @@ -315,7 +315,7 @@ }, "dev/gh-actions": { "name": "@prosopo/gh-actions", - "version": "2.1.15", + "version": "2.1.16", "license": "ISC", "dependencies": { "@octokit/graphql": "8.1.1", @@ -392,10 +392,10 @@ }, "dev/lint": { "name": "@prosopo/lint", - "version": "2.1.15", + "version": "2.1.16", "license": "ISC", "dependencies": { - "@prosopo/util": "2.1.15", + "@prosopo/util": "2.1.16", "express": "4.21.1", "fast-glob": "3.3.2", "zod": "3.23.8" @@ -419,7 +419,7 @@ }, "dev/prosoponator-bot": { "name": "@prosopo/prosoponator-bot", - "version": "2.1.15", + "version": "2.1.16", "license": "ISC", "dependencies": { "@actions/core": "1.10.1", @@ -452,7 +452,7 @@ }, "dev/scripts": { "name": "@prosopo/scripts", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@iarna/toml": "2.2.5", @@ -461,18 +461,18 @@ "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/cli": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/env": "2.1.15", - "@prosopo/provider": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", - "@prosopo/types-env": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/cli": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/env": "2.1.16", + "@prosopo/provider": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", + "@prosopo/types-env": "2.1.16", + "@prosopo/util": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1", "fast-glob": "3.3.2", @@ -527,10 +527,10 @@ }, "dev/ts-brand": { "name": "@prosopo/ts-brand", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1" }, @@ -552,10 +552,10 @@ }, "dev/vite-plugin-watch-workspace": { "name": "@prosopo/vite-plugin-watch-workspace", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "debug": "4.3.7", "esbuild": "0.23.1", "express": "4.21.1", @@ -20975,7 +20975,7 @@ }, "packages/account": { "name": "@prosopo/account", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/extension-base": "0.46.9", @@ -20984,15 +20984,15 @@ "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/fingerprint": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/fingerprint": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21010,14 +21010,14 @@ }, "packages/api": { "name": "@prosopo/api", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/types": "2.1.15", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21035,22 +21035,22 @@ }, "packages/cli": { "name": "@prosopo/cli", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/keyring": "12.6.2", "@polkadot/types-codec": "10.13.1", "@polkadot/util-crypto": "12.6.2", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/env": "2.1.15", - "@prosopo/locale": "2.1.15", - "@prosopo/provider": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/env": "2.1.16", + "@prosopo/locale": "2.1.16", + "@prosopo/provider": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "cors": "2.8.5", "cron-parser": "4.9.0", "dotenv": "16.4.5", @@ -21059,7 +21059,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/cors": "2.8.17", "@types/yargs": "17.0.33", "@vitest/coverage-v8": "2.1.1", @@ -21080,17 +21080,17 @@ }, "packages/common": { "name": "@prosopo/common", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/util-crypto": "12.6.2", - "@prosopo/locale": "2.1.15", + "@prosopo/locale": "2.1.16", "consola": "3.2.3", "express": "4.21.1", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21109,7 +21109,7 @@ }, "packages/contract": { "name": "@prosopo/contract", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "10.13.1", @@ -21119,16 +21119,16 @@ "@polkadot/types-codec": "10.13.1", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/tx": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/tx": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "rxjs": "7.8.1" }, "devDependencies": { "@polkadot/api-augment": "10.13.1", - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21174,13 +21174,13 @@ }, "packages/database": { "name": "@prosopo/database", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", "express": "4.21.1", "mongodb": "6.9.0", "mongodb-memory-server": "10.0.0", @@ -21204,17 +21204,17 @@ }, "packages/datasets": { "name": "@prosopo/datasets", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/util": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21233,15 +21233,15 @@ }, "packages/datasets-fs": { "name": "@prosopo/datasets-fs", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "1.5.0", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "bcrypt": "5.1.1", "cli-progress": "3.12.0", "express": "4.21.1", @@ -21250,7 +21250,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/bcrypt": "5.0.2", "@types/cli-progress": "3.11.6", "@vitest/coverage-v8": "2.1.1", @@ -21271,7 +21271,7 @@ }, "packages/detector": { "name": "@prosopo/detector", - "version": "2.1.15", + "version": "2.1.16", "dependencies": { "express": "4.21.1" }, @@ -21293,11 +21293,11 @@ }, "packages/dotenv": { "name": "@prosopo/dotenv", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1" }, @@ -21319,22 +21319,22 @@ }, "packages/env": { "name": "@prosopo/env", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/database": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", - "@prosopo/types-env": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/database": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", + "@prosopo/types-env": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21352,17 +21352,17 @@ }, "packages/file-server": { "name": "@prosopo/file-server", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/util": "2.1.15", + "@prosopo/util": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1", "node-fetch": "3.3.2", "sharp": "0.33.5" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/express": "4.17.21", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", @@ -21400,7 +21400,7 @@ }, "packages/fingerprint": { "name": "@prosopo/fingerprint", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@fingerprintjs/fingerprintjs": "3.4.2", @@ -21482,12 +21482,12 @@ }, "packages/load-balancer": { "name": "@prosopo/load-balancer", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { @@ -21508,7 +21508,7 @@ }, "packages/locale": { "name": "@prosopo/locale", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "express": "4.21.1", @@ -21518,7 +21518,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "del-cli": "6.0.0", "dotenv": "16.4.5", @@ -21536,17 +21536,17 @@ }, "packages/locale-browser": { "name": "@prosopo/locale-browser", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/locale": "2.1.15", + "@prosopo/locale": "2.1.16", "express": "4.21.1", "i18next-browser-languagedetector": "7.2.1", "react-i18next": "11.18.6", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "del-cli": "6.0.0", "dotenv": "16.4.5", @@ -21564,26 +21564,26 @@ }, "packages/procaptcha": { "name": "@prosopo/procaptcha", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "10.13.1", "@polkadot/api-contract": "10.13.1", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/account": "2.1.15", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/load-balancer": "2.1.15", - "@prosopo/procaptcha-common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/account": "2.1.16", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/load-balancer": "2.1.16", + "@prosopo/procaptcha-common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "jsdom": "25.0.0" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21602,22 +21602,22 @@ }, "packages/procaptcha-bundle": { "name": "@prosopo/procaptcha-bundle", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/dotenv": "2.1.15", - "@prosopo/locale": "2.1.15", - "@prosopo/procaptcha-frictionless": "2.1.15", - "@prosopo/procaptcha-pow": "2.1.15", - "@prosopo/procaptcha-react": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/dotenv": "2.1.16", + "@prosopo/locale": "2.1.16", + "@prosopo/procaptcha-frictionless": "2.1.16", + "@prosopo/procaptcha-pow": "2.1.16", + "@prosopo/procaptcha-react": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "react": "18.3.1", "react-dom": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/jsdom": "21.1.7", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", @@ -21636,17 +21636,17 @@ }, "packages/procaptcha-common": { "name": "@prosopo/procaptcha-common", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/load-balancer": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/load-balancer": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21664,20 +21664,20 @@ }, "packages/procaptcha-frictionless": { "name": "@prosopo/procaptcha-frictionless", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/detector": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha-pow": "2.1.15", - "@prosopo/procaptcha-react": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/web-components": "2.1.15", + "@prosopo/detector": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha-pow": "2.1.16", + "@prosopo/procaptcha-react": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/web-components": "2.1.16", "express": "4.21.1", "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21695,24 +21695,24 @@ }, "packages/procaptcha-pow": { "name": "@prosopo/procaptcha-pow", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/util": "12.6.2", - "@prosopo/account": "2.1.15", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha": "2.1.15", - "@prosopo/procaptcha-common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", - "@prosopo/web-components": "2.1.15", + "@prosopo/account": "2.1.16", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha": "2.1.16", + "@prosopo/procaptcha-common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", + "@prosopo/web-components": "2.1.16", "express": "4.21.1", "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21730,22 +21730,22 @@ }, "packages/procaptcha-react": { "name": "@prosopo/procaptcha-react", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha": "2.1.15", - "@prosopo/procaptcha-common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", - "@prosopo/web-components": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha": "2.1.16", + "@prosopo/procaptcha-common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", + "@prosopo/web-components": "2.1.16", "csstype": "3.1.3", "express": "4.21.1", "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21791,23 +21791,23 @@ }, "packages/provider": { "name": "@prosopo/provider", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "1.5.0", "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/database": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/env": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", - "@prosopo/types-env": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/database": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/env": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", + "@prosopo/types-env": "2.1.16", + "@prosopo/util": "2.1.16", "cron": "3.1.7", "express": "4.21.1", "ip-address": "10.0.1", @@ -21865,19 +21865,19 @@ }, "packages/server": { "name": "@prosopo/server", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21895,7 +21895,7 @@ }, "packages/tx": { "name": "@prosopo/tx", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "10.13.1", @@ -21905,12 +21905,12 @@ "@polkadot/types": "10.13.1", "@polkadot/types-codec": "10.13.1", "@polkadot/util": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -21956,7 +21956,7 @@ }, "packages/types": { "name": "@prosopo/types", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "10.13.1", @@ -21966,15 +21966,15 @@ "@polkadot/types": "10.13.1", "@polkadot/types-codec": "10.13.1", "@polkadot/util": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/locale": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/locale": "2.1.16", "express": "4.21.1", "ip-address": "10.0.1", "scale-ts": "1.6.0", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", @@ -21993,18 +21993,18 @@ }, "packages/types-database": { "name": "@prosopo/types-database", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1", "mongodb": "6.9.0", "mongoose": "8.6.2", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -22022,17 +22022,17 @@ }, "packages/types-env": { "name": "@prosopo/types-env", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@polkadot/keyring": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", @@ -22078,11 +22078,11 @@ }, "packages/util": { "name": "@prosopo/util", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "1.5.0", - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1", "lodash": "4.17.21", @@ -22113,7 +22113,7 @@ }, "packages/web-components": { "name": "@prosopo/web-components", - "version": "2.1.15", + "version": "2.1.16", "license": "Apache-2.0", "dependencies": { "@emotion/react": "11.13.3", @@ -22122,7 +22122,7 @@ "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/package.json b/package.json index 699068c3be..327f8f3608 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/captcha", - "version": "2.1.15", + "version": "2.1.16", "author": "Prosopo", "type": "module", "repository": { diff --git a/packages/account/package.json b/packages/account/package.json index 5c230e75fd..a9ae4077d5 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/account", - "version": "2.1.15", + "version": "2.1.16", "description": "Services and Utils for Prosopo account gen and management", "main": "dist/index.js", "type": "module", @@ -37,15 +37,15 @@ "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/fingerprint": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/fingerprint": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/api/package.json b/packages/api/package.json index fcaa223d8a..7728250a02 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/api", - "version": "2.1.15", + "version": "2.1.16", "description": "Wrapper for the provider API", "main": "dist/index.js", "type": "module", @@ -31,11 +31,11 @@ }, "homepage": "https://github.com/prosopo/captcha#readme", "dependencies": { - "@prosopo/types": "2.1.15", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index ae6e2833e3..7d146ca643 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/cli", - "version": "2.1.15", + "version": "2.1.16", "description": "CLI for Prosopo Provider", "main": "dist/index.js", "type": "module", @@ -29,16 +29,16 @@ "@polkadot/keyring": "12.6.2", "@polkadot/types-codec": "10.13.1", "@polkadot/util-crypto": "12.6.2", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/dotenv": "2.1.15", - "@prosopo/env": "2.1.15", - "@prosopo/locale": "2.1.15", - "@prosopo/provider": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/dotenv": "2.1.16", + "@prosopo/env": "2.1.16", + "@prosopo/locale": "2.1.16", + "@prosopo/provider": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "cors": "2.8.5", "cron-parser": "4.9.0", "dotenv": "16.4.5", @@ -47,7 +47,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/cors": "2.8.17", "@types/yargs": "17.0.33", "@vitest/coverage-v8": "2.1.1", diff --git a/packages/common/package.json b/packages/common/package.json index 28f07184b2..4026ea2833 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/common", - "version": "2.1.15", + "version": "2.1.16", "description": "Prosopo common library", "main": "./dist/index.js", "type": "module", @@ -25,13 +25,13 @@ "license": "Apache-2.0", "dependencies": { "@polkadot/util-crypto": "12.6.2", - "@prosopo/locale": "2.1.15", + "@prosopo/locale": "2.1.16", "consola": "3.2.3", "express": "4.21.1", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/contract/package.json b/packages/contract/package.json index ac3ec2a6b4..ca233b637f 100644 --- a/packages/contract/package.json +++ b/packages/contract/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/contract", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "scripts": { @@ -43,16 +43,16 @@ "@polkadot/types-codec": "10.13.1", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/tx": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/tx": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "rxjs": "7.8.1" }, "devDependencies": { "@polkadot/api-augment": "10.13.1", - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/database/package.json b/packages/database/package.json index 32f9adae3c..2a46645471 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/database", - "version": "2.1.15", + "version": "2.1.16", "description": "Prosopo database plugins for provider", "main": "dist/index.js", "type": "module", @@ -31,10 +31,10 @@ }, "homepage": "https://github.com/prosopo/captcha#readme", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", "express": "4.21.1", "mongodb": "6.9.0", "mongodb-memory-server": "10.0.0", diff --git a/packages/datasets-fs/package.json b/packages/datasets-fs/package.json index d0acfe6b99..ba231953d4 100644 --- a/packages/datasets-fs/package.json +++ b/packages/datasets-fs/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/datasets-fs", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "private": false, @@ -28,9 +28,9 @@ "@noble/hashes": "1.5.0", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "bcrypt": "5.1.1", "cli-progress": "3.12.0", "express": "4.21.1", @@ -39,7 +39,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/bcrypt": "5.0.2", "@types/cli-progress": "3.11.6", "@vitest/coverage-v8": "2.1.1", diff --git a/packages/datasets/package.json b/packages/datasets/package.json index 392258834b..cdb1f6d658 100644 --- a/packages/datasets/package.json +++ b/packages/datasets/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/datasets", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "private": false, @@ -38,13 +38,13 @@ }, "dependencies": { "@polkadot/util": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/detector/package.json b/packages/detector/package.json index 877885acad..4689b829ce 100644 --- a/packages/detector/package.json +++ b/packages/detector/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/detector", - "version": "2.1.15", + "version": "2.1.16", "main": "src/index.js", "engines": { "node": "20", diff --git a/packages/dotenv/package.json b/packages/dotenv/package.json index ebd0fe0ace..ef405bddff 100644 --- a/packages/dotenv/package.json +++ b/packages/dotenv/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/dotenv", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "private": false, @@ -25,8 +25,8 @@ }, "types": "./dist/index.d.ts", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1" }, diff --git a/packages/env/package.json b/packages/env/package.json index 8653e7213f..d7fb7d2ee1 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/env", - "version": "2.1.15", + "version": "2.1.16", "description": "Path env prosopo environment", "main": "dist/index.js", "type": "module", @@ -24,19 +24,19 @@ "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/database": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", - "@prosopo/types-env": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/database": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", + "@prosopo/types-env": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "overrides": { "@polkadot/keyring": "12.6.2" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/file-server/package.json b/packages/file-server/package.json index d2b77a5d86..d3d43fb1bd 100644 --- a/packages/file-server/package.json +++ b/packages/file-server/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/file-server", - "version": "2.1.15", + "version": "2.1.16", "description": "Simple static file server", "main": "dist/index.js", "type": "module", @@ -22,14 +22,14 @@ "start": "node ./dist/index.js" }, "dependencies": { - "@prosopo/util": "2.1.15", + "@prosopo/util": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1", "node-fetch": "3.3.2", "sharp": "0.33.5" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/express": "4.17.21", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", diff --git a/packages/fingerprint/package.json b/packages/fingerprint/package.json index 7033e256d1..b7a2c774ad 100644 --- a/packages/fingerprint/package.json +++ b/packages/fingerprint/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/fingerprint", - "version": "2.1.15", + "version": "2.1.16", "description": "Provider fingerprint", "main": "dist/index.js", "type": "module", diff --git a/packages/load-balancer/package.json b/packages/load-balancer/package.json index ebc6545118..b0395ae840 100644 --- a/packages/load-balancer/package.json +++ b/packages/load-balancer/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/load-balancer", - "version": "2.1.15", + "version": "2.1.16", "description": "Provider load balancer", "main": "dist/index.js", "type": "module", @@ -31,9 +31,9 @@ }, "homepage": "https://github.com/prosopo/captcha#readme", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { diff --git a/packages/locale-browser/package.json b/packages/locale-browser/package.json index 1b82124f5c..d7a9de0a5f 100644 --- a/packages/locale-browser/package.json +++ b/packages/locale-browser/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/locale-browser", - "version": "2.1.15", + "version": "2.1.16", "description": "Prosopo browser locale", "main": "./dist/index.js", "type": "module", @@ -24,14 +24,14 @@ "author": "Prosopo Limited", "license": "Apache-2.0", "dependencies": { - "@prosopo/locale": "2.1.15", + "@prosopo/locale": "2.1.16", "express": "4.21.1", "i18next-browser-languagedetector": "7.2.1", "react-i18next": "11.18.6", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "del-cli": "6.0.0", "dotenv": "16.4.5", diff --git a/packages/locale/package.json b/packages/locale/package.json index d8177ca360..0d410445b7 100644 --- a/packages/locale/package.json +++ b/packages/locale/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/locale", - "version": "2.1.15", + "version": "2.1.16", "description": "Prosopo locale library", "main": "./dist/index.js", "type": "module", @@ -31,7 +31,7 @@ "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "del-cli": "6.0.0", "dotenv": "16.4.5", diff --git a/packages/locale/src/translations.ts b/packages/locale/src/translations.ts index 419391a3d9..5adba7ffad 100644 --- a/packages/locale/src/translations.ts +++ b/packages/locale/src/translations.ts @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. import z from "zod"; -import translationsDe from "./locales/de.json" assert { type: "json" }; -import translationsEn from "./locales/en.json" assert { type: "json" }; -import translationsEs from "./locales/es.json" assert { type: "json" }; -import translationsFr from "./locales/fr.json" assert { type: "json" }; -import translationsIt from "./locales/it.json" assert { type: "json" }; -import translationsPtBR from "./locales/pt-BR.json" assert { type: "json" }; -import translationsPt from "./locales/pt.json" assert { type: "json" }; +import translationsDe from "./locales/de.json" with { type: "json" }; +import translationsEn from "./locales/en.json" with { type: "json" }; +import translationsEs from "./locales/es.json" with { type: "json" }; +import translationsFr from "./locales/fr.json" with { type: "json" }; +import translationsIt from "./locales/it.json" with { type: "json" }; +import translationsPtBR from "./locales/pt-BR.json" with { type: "json" }; +import translationsPt from "./locales/pt.json" with { type: "json" }; export const Languages = ["de", "en", "es", "fr", "it", "pt", "pt-BR"] as const; diff --git a/packages/locale/src/util.ts b/packages/locale/src/util.ts index 6290336ea2..fb22fca57f 100644 --- a/packages/locale/src/util.ts +++ b/packages/locale/src/util.ts @@ -13,7 +13,7 @@ // limitations under the License. import { z } from "zod"; -import translationEn from "./locales/en.json" assert { type: "json" }; +import translationEn from "./locales/en.json" with { type: "json" }; export function isClientSide(): boolean { return !!( diff --git a/packages/procaptcha-bundle/package.json b/packages/procaptcha-bundle/package.json index 5a0e77385a..878360aa76 100644 --- a/packages/procaptcha-bundle/package.json +++ b/packages/procaptcha-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/procaptcha-bundle", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -29,13 +29,13 @@ }, "browserslist": ["> 0.5%, last 2 versions, not dead"], "dependencies": { - "@prosopo/dotenv": "2.1.15", - "@prosopo/locale": "2.1.15", - "@prosopo/procaptcha-frictionless": "2.1.15", - "@prosopo/procaptcha-pow": "2.1.15", - "@prosopo/procaptcha-react": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/dotenv": "2.1.16", + "@prosopo/locale": "2.1.16", + "@prosopo/procaptcha-frictionless": "2.1.16", + "@prosopo/procaptcha-pow": "2.1.16", + "@prosopo/procaptcha-react": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "react": "18.3.1", "react-dom": "18.3.1" @@ -53,7 +53,7 @@ "registry": "https://registry.npmjs.org" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/jsdom": "21.1.7", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", diff --git a/packages/procaptcha-bundle/src/util/renderLogic.tsx b/packages/procaptcha-bundle/src/util/renderLogic.tsx index 086904e42a..07feac6abf 100644 --- a/packages/procaptcha-bundle/src/util/renderLogic.tsx +++ b/packages/procaptcha-bundle/src/util/renderLogic.tsx @@ -1,3 +1,5 @@ +import createCache from "@emotion/cache"; +import { CacheProvider } from "@emotion/react"; // Copyright 2021-2024 Prosopo (UK) Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -26,37 +28,75 @@ import { setValidChallengeLength } from "./timeout.js"; const identifierPrefix = "procaptcha-"; +function makeShadowRoot( + element: Element, + renderOptions?: ProcaptchaRenderOptions, +): ShadowRoot { + // todo maybe introduce customCSS in renderOptions. + const customCss = ""; + + const wrapperElement = document.createElement("prosopo-procaptcha"); + + const wrapperShadow = wrapperElement.attachShadow({ mode: "open" }); + wrapperShadow.innerHTML += + ''; + wrapperShadow.innerHTML += + "" !== customCss ? `` : ""; + + element.appendChild(wrapperElement); + + return wrapperShadow; +} + export const renderLogic = ( elements: Element[], config: ProcaptchaClientConfigOutput, renderOptions?: ProcaptchaRenderOptions, ) => { const roots: Root[] = []; + for (const element of elements) { const callbacks = getDefaultCallbacks(element); + const shadowRoot = makeShadowRoot(element, renderOptions); setUserCallbacks(renderOptions, callbacks, element); setTheme(renderOptions, element, config); setValidChallengeLength(renderOptions, element, config); setLanguage(renderOptions, element, config); + const emotionCache = createCache({ + key: "procaptcha", + prepend: true, + container: shadowRoot, + }); + let root: Root | null = null; switch (renderOptions?.captchaType) { case "pow": console.log("rendering pow"); - root = createRoot(element, { identifierPrefix }); - root.render(); + root = createRoot(shadowRoot, { identifierPrefix }); + root.render( + + + , + ); break; case "image": console.log("rendering image"); - root = createRoot(element, { identifierPrefix }); - root.render(); + root = createRoot(shadowRoot, { identifierPrefix }); + root.render( + + + , + ); break; default: console.log("rendering frictionless"); - root = createRoot(element, { identifierPrefix }); + root = createRoot(shadowRoot, { identifierPrefix }); root.render( - , + + + , ); break; } diff --git a/packages/procaptcha-common/package.json b/packages/procaptcha-common/package.json index f665925eae..0e6d28c6e2 100644 --- a/packages/procaptcha-common/package.json +++ b/packages/procaptcha-common/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/procaptcha-common", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -26,14 +26,14 @@ }, "browserslist": ["> 0.5%, last 2 versions, not dead"], "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/load-balancer": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/load-balancer": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/procaptcha-frictionless/package.json b/packages/procaptcha-frictionless/package.json index e52aaa3492..586adcdc64 100644 --- a/packages/procaptcha-frictionless/package.json +++ b/packages/procaptcha-frictionless/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/procaptcha-frictionless", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -26,17 +26,17 @@ }, "browserslist": ["> 0.5%, last 2 versions, not dead"], "dependencies": { - "@prosopo/detector": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha-pow": "2.1.15", - "@prosopo/procaptcha-react": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/web-components": "2.1.15", + "@prosopo/detector": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha-pow": "2.1.16", + "@prosopo/procaptcha-react": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/web-components": "2.1.16", "express": "4.21.1", "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/procaptcha-pow/package.json b/packages/procaptcha-pow/package.json index 6e8391c055..e4bfd9368a 100644 --- a/packages/procaptcha-pow/package.json +++ b/packages/procaptcha-pow/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/procaptcha-pow", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -27,15 +27,15 @@ "browserslist": ["> 0.5%, last 2 versions, not dead"], "dependencies": { "@polkadot/util": "12.6.2", - "@prosopo/account": "2.1.15", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha": "2.1.15", - "@prosopo/procaptcha-common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", - "@prosopo/web-components": "2.1.15", + "@prosopo/account": "2.1.16", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha": "2.1.16", + "@prosopo/procaptcha-common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", + "@prosopo/web-components": "2.1.16", "express": "4.21.1", "react": "18.3.1" }, @@ -47,7 +47,7 @@ } }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/procaptcha-react/package.json b/packages/procaptcha-react/package.json index 2c273164f5..3db852d1a8 100644 --- a/packages/procaptcha-react/package.json +++ b/packages/procaptcha-react/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/procaptcha-react", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -26,13 +26,13 @@ }, "browserslist": ["> 0.5%, last 2 versions, not dead"], "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/locale-browser": "2.1.15", - "@prosopo/procaptcha": "2.1.15", - "@prosopo/procaptcha-common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", - "@prosopo/web-components": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/locale-browser": "2.1.16", + "@prosopo/procaptcha": "2.1.16", + "@prosopo/procaptcha-common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", + "@prosopo/web-components": "2.1.16", "csstype": "3.1.3", "express": "4.21.1", "react": "18.3.1" @@ -50,7 +50,7 @@ } }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/procaptcha/package.json b/packages/procaptcha/package.json index a95a47bf35..0de320d416 100644 --- a/packages/procaptcha/package.json +++ b/packages/procaptcha/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/procaptcha", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -33,14 +33,14 @@ "@polkadot/api-contract": "10.13.1", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/account": "2.1.15", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/load-balancer": "2.1.15", - "@prosopo/procaptcha-common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/account": "2.1.16", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/load-balancer": "2.1.16", + "@prosopo/procaptcha-common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/util": "2.1.16", "express": "4.21.1", "jsdom": "25.0.0" }, @@ -57,7 +57,7 @@ } }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/provider/package.json b/packages/provider/package.json index 7f0a667516..bb6fdf9374 100644 --- a/packages/provider/package.json +++ b/packages/provider/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/provider", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "main": "./dist/index.js", @@ -27,16 +27,16 @@ "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", "@polkadot/util-crypto": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/config": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/database": "2.1.15", - "@prosopo/datasets": "2.1.15", - "@prosopo/env": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", - "@prosopo/types-env": "2.1.15", - "@prosopo/util": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/config": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/database": "2.1.16", + "@prosopo/datasets": "2.1.16", + "@prosopo/env": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", + "@prosopo/types-env": "2.1.16", + "@prosopo/util": "2.1.16", "cron": "3.1.7", "express": "4.21.1", "ip-address": "10.0.1", diff --git a/packages/server/package.json b/packages/server/package.json index 23a1ba085c..70bd9ec349 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/server", - "version": "2.1.15", + "version": "2.1.16", "description": "NodeJS package for server side communication with the prosopo captcha client", "main": "./dist/index.js", "type": "module", @@ -34,14 +34,14 @@ "dependencies": { "@polkadot/keyring": "12.6.2", "@polkadot/util": "12.6.2", - "@prosopo/api": "2.1.15", - "@prosopo/common": "2.1.15", - "@prosopo/contract": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/api": "2.1.16", + "@prosopo/common": "2.1.16", + "@prosopo/contract": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/tx/package.json b/packages/tx/package.json index 3ad887fd1f..85702dc0f5 100644 --- a/packages/tx/package.json +++ b/packages/tx/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/tx", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "scripts": { @@ -37,12 +37,12 @@ "@polkadot/types": "10.13.1", "@polkadot/types-codec": "10.13.1", "@polkadot/util": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/types-database/package.json b/packages/types-database/package.json index 2d2aebb327..ca582f9148 100644 --- a/packages/types-database/package.json +++ b/packages/types-database/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/types-database", - "version": "2.1.15", + "version": "2.1.16", "description": "Types for prosopo database", "main": "dist/index.js", "type": "module", @@ -31,15 +31,15 @@ }, "homepage": "https://github.com/prosopo/captcha#readme", "dependencies": { - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", "express": "4.21.1", "mongodb": "6.9.0", "mongoose": "8.6.2", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/types-env/package.json b/packages/types-env/package.json index 73ffdff384..671f989566 100644 --- a/packages/types-env/package.json +++ b/packages/types-env/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/types-env", - "version": "2.1.15", + "version": "2.1.16", "description": "Types for prosopo environment", "main": "dist/index.js", "type": "module", @@ -32,13 +32,13 @@ "homepage": "https://github.com/prosopo/captcha#readme", "dependencies": { "@polkadot/keyring": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/types": "2.1.15", - "@prosopo/types-database": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/types": "2.1.16", + "@prosopo/types-database": "2.1.16", "express": "4.21.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/packages/types/package.json b/packages/types/package.json index cccacbd55a..5f9af1a483 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/types", - "version": "2.1.15", + "version": "2.1.16", "description": "Types for prosopo TypeScript packages", "main": "dist/index.js", "type": "module", @@ -38,15 +38,15 @@ "@polkadot/types": "10.13.1", "@polkadot/types-codec": "10.13.1", "@polkadot/util": "12.6.2", - "@prosopo/common": "2.1.15", - "@prosopo/locale": "2.1.15", + "@prosopo/common": "2.1.16", + "@prosopo/locale": "2.1.16", "express": "4.21.1", "ip-address": "10.0.1", "scale-ts": "1.6.0", "zod": "3.23.8" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@types/node": "22.5.5", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", diff --git a/packages/types/src/client/user.ts b/packages/types/src/client/user.ts index 7b41b1773f..bf3f61fd83 100644 --- a/packages/types/src/client/user.ts +++ b/packages/types/src/client/user.ts @@ -40,10 +40,20 @@ export interface IUserData { createdAt: Timestamp; activated: boolean; tier: Tier; + tierRequestQuota: number; // how many requests the user is entitled to in this tier (note this may vary for the same tier, e.g. pro @ 100k, pro @ 200k, etc) marketingPreferences: boolean; originUrl: string; settings?: IUserSettings; updatedAtTimestamp?: Timestamp; + tierCheckoutId?: string; // prosopo (not stripe!) checkout session id / lock + stripeCustomerId?: string; // stripe customer id + stripeTierCheckoutId?: string; // stripe checkout session id + stripeTierSubscriptionId?: string; // stripe subscription id + stripeTierPriceId?: string; // stripe price id for the subscription + stripeTierNext?: string; // the next tier the user is moving to, if any + stripeTierNextAt?: number; // the time the user will move to the next tier, if any + stripeTierCancelAt?: number; // the time the user's subscription will be cancelled (e.g. if cancelling at end of billing period) + stripeUpdatedAt?: number; // the time the user's stripe details were last updated (needed for webhook ordering) } export interface IUserSettings { diff --git a/packages/util/package.json b/packages/util/package.json index ce7b6abba6..a73942e014 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/util", - "version": "2.1.15", + "version": "2.1.16", "author": "PROSOPO LIMITED ", "license": "Apache-2.0", "private": false, @@ -32,7 +32,7 @@ "types": "./dist/index.d.ts", "dependencies": { "@noble/hashes": "1.5.0", - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "dotenv": "16.4.5", "express": "4.21.1", "lodash": "4.17.21", diff --git a/packages/web-components/package.json b/packages/web-components/package.json index a20f64b371..4b99f0ea86 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -1,6 +1,6 @@ { "name": "@prosopo/web-components", - "version": "2.1.15", + "version": "2.1.16", "description": "Non business logic utilities for web applications", "main": "dist/index.js", "type": "module", @@ -37,7 +37,7 @@ "react": "18.3.1" }, "devDependencies": { - "@prosopo/config": "2.1.15", + "@prosopo/config": "2.1.16", "@vitest/coverage-v8": "2.1.1", "concurrently": "9.0.1", "del-cli": "6.0.0", diff --git a/typedoc.config.js b/typedoc.config.js index d8ef7af63c..3ddc8ecbb2 100644 --- a/typedoc.config.js +++ b/typedoc.config.js @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -import pkgJson from "./package.json" assert { type: "json" }; +import pkgJson from "./package.json" with { type: "json" }; export default { extends: "./typedoc.base.config.js",