Skip to content

Commit 7c680cc

Browse files
authored
Release 2.3.2 (#1633)
2 parents 5f02087 + c5768ed commit 7c680cc

File tree

189 files changed

+28778
-24233
lines changed

Some content is hidden

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

189 files changed

+28778
-24233
lines changed

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.3.1",
16+
"version": "2.3.2",
1717
"devDependencies": {
18-
"@prosopo/dotenv": "2.3.1",
18+
"@prosopo/dotenv": "2.3.2",
1919
"@types/node": "22.5.5",
2020
"@vitest/coverage-v8": "2.1.1",
2121
"concurrently": "9.0.1",

demos/client-bundle-example/src/frictionless.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Procaptcha demo: Live Test</title>
55
<script type="module">
66
async function captchaLoaded() {
7-
const render = (await import('./assets/procaptcha.bundle')).render
7+
const render = (await import('./assets/procaptcha.bundle.js')).render
88
console.log('Captcha loaded')
99
// Get the Element using elementId
1010
const captchaContainer = document.getElementById('procaptcha-container')

demos/client-bundle-example/src/urlParams.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Procaptcha demo: Live Test</title>
55
<script type="module">
66
async function captchaLoaded() {
7-
const render = (await import('./assets/procaptcha.bundle')).render
7+
const render = (await import('./assets/procaptcha.bundle.js')).render
88
console.log('Captcha loaded')
99
// Get the Element using elementId
1010
const captchaContainer = document.getElementById('procaptcha-container')

demos/client-example-server/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prosopo/client-example-server",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
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.3.1",
35+
"@prosopo/common": "2.3.2",
3636
"@prosopo/contract": "2.2.3",
37-
"@prosopo/dotenv": "2.3.1",
38-
"@prosopo/server": "2.3.1",
39-
"@prosopo/types": "2.3.1",
40-
"@prosopo/util": "2.3.1",
37+
"@prosopo/dotenv": "2.3.2",
38+
"@prosopo/server": "2.3.2",
39+
"@prosopo/types": "2.3.2",
40+
"@prosopo/util": "2.3.2",
4141
"@typegoose/auto-increment": "4.6.0",
4242
"cors": "2.8.5",
4343
"express": "4.21.1",
@@ -47,7 +47,7 @@
4747
"zod": "3.23.8"
4848
},
4949
"devDependencies": {
50-
"@prosopo/config": "2.3.1",
50+
"@prosopo/config": "2.3.2",
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.3.1",
3+
"version": "2.3.2",
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.3.1",
17-
"@prosopo/locale-browser": "2.3.1",
18-
"@prosopo/procaptcha-frictionless": "2.3.1",
19-
"@prosopo/procaptcha-pow": "2.3.1",
20-
"@prosopo/procaptcha-react": "2.3.1",
21-
"@prosopo/server": "2.3.1",
22-
"@prosopo/types": "2.3.1",
23-
"@prosopo/vite-plugin-watch-workspace": "2.3.1",
16+
"@prosopo/common": "2.3.2",
17+
"@prosopo/locale-browser": "2.3.2",
18+
"@prosopo/procaptcha-frictionless": "2.3.2",
19+
"@prosopo/procaptcha-pow": "2.3.2",
20+
"@prosopo/procaptcha-react": "2.3.2",
21+
"@prosopo/server": "2.3.2",
22+
"@prosopo/types": "2.3.2",
23+
"@prosopo/vite-plugin-watch-workspace": "2.3.2",
2424
"@types/react-dom": "18.3.0",
2525
"@vitejs/plugin-react": "4.3.1",
2626
"express": "4.21.1",
@@ -41,8 +41,8 @@
4141
}
4242
},
4343
"devDependencies": {
44-
"@prosopo/config": "2.3.1",
45-
"@prosopo/dotenv": "2.3.1",
44+
"@prosopo/config": "2.3.2",
45+
"@prosopo/dotenv": "2.3.2",
4646
"@types/node": "22.5.5",
4747
"@vitest/coverage-v8": "2.1.1",
4848
"concurrently": "9.0.1",

demos/cypress-shared/package.json

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

demos/ios-webview/procaptcha.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
6093CEA72CA96BB9006699D1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6093CEA62CA96BB9006699D1 /* ContentView.swift */; };
1212
6093CEA92CA96BBD006699D1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6093CEA82CA96BBD006699D1 /* Assets.xcassets */; };
1313
6093CEAD2CA96BBD006699D1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6093CEAC2CA96BBD006699D1 /* Preview Assets.xcassets */; };
14+
CE79A1EA2D38EC2200047A40 /* procaptcha.html in Resources */ = {isa = PBXBuildFile; fileRef = CE79A1E92D38EC2200047A40 /* procaptcha.html */; };
1415
/* End PBXBuildFile section */
1516

1617
/* Begin PBXFileReference section */
@@ -20,6 +21,7 @@
2021
6093CEA82CA96BBD006699D1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2122
6093CEAA2CA96BBD006699D1 /* procaptcha.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = procaptcha.entitlements; sourceTree = "<group>"; };
2223
6093CEAC2CA96BBD006699D1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
24+
CE79A1E92D38EC2200047A40 /* procaptcha.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = procaptcha.html; sourceTree = "<group>"; };
2325
/* End PBXFileReference section */
2426

2527
/* Begin PBXFrameworksBuildPhase section */
@@ -55,6 +57,7 @@
5557
6093CEA42CA96BB9006699D1 /* procaptchaApp.swift */,
5658
6093CEA62CA96BB9006699D1 /* ContentView.swift */,
5759
6093CEA82CA96BBD006699D1 /* Assets.xcassets */,
60+
CE79A1E92D38EC2200047A40 /* procaptcha.html */,
5861
6093CEAA2CA96BBD006699D1 /* procaptcha.entitlements */,
5962
6093CEAB2CA96BBD006699D1 /* Preview Content */,
6063
);
@@ -127,6 +130,7 @@
127130
isa = PBXResourcesBuildPhase;
128131
buildActionMask = 2147483647;
129132
files = (
133+
CE79A1EA2D38EC2200047A40 /* procaptcha.html in Resources */,
130134
6093CEAD2CA96BBD006699D1 /* Preview Assets.xcassets in Resources */,
131135
6093CEA92CA96BBD006699D1 /* Assets.xcassets in Resources */,
132136
);
@@ -282,6 +286,7 @@
282286
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
283287
MACOSX_DEPLOYMENT_TARGET = 13.3;
284288
MARKETING_VERSION = 1.0;
289+
NSExceptionAllInsecureHTTPLoads = YES;
285290
PRODUCT_BUNDLE_IDENTIFIER = io.prosopo.procaptcha;
286291
PRODUCT_NAME = "$(TARGET_NAME)";
287292
SDKROOT = auto;
@@ -320,6 +325,7 @@
320325
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
321326
MACOSX_DEPLOYMENT_TARGET = 13.3;
322327
MARKETING_VERSION = 1.0;
328+
NSExceptionAllInsecureHTTPLoads = YES;
323329
PRODUCT_BUNDLE_IDENTIFIER = io.prosopo.procaptcha;
324330
PRODUCT_NAME = "$(TARGET_NAME)";
325331
SDKROOT = auto;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>BuildLocationStyle</key>
6+
<string>UseAppPreferences</string>
7+
<key>CustomBuildLocationType</key>
8+
<string>RelativeToDerivedData</string>
9+
<key>DerivedDataLocationStyle</key>
10+
<string>Default</string>
11+
<key>ShowSharedSchemesAutomaticallyEnabled</key>
12+
<true/>
13+
</dict>
14+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>procaptcha.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>

demos/ios-webview/procaptcha/ContentView.swift

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import SwiftUI
22
import WebKit
33

44
struct WebView: UIViewRepresentable {
5-
let htmlString: String
5+
let filePath: String
66

77
func makeCoordinator() -> Coordinator {
88
return Coordinator(self)
@@ -49,8 +49,10 @@ struct WebView: UIViewRepresentable {
4949
webView.isInspectable = true
5050

5151
//DispatchQueue.main.asyncAfter(deadline: .now() + 30) {
52-
// baseURL must be set for localstorage to work. If localstorage is not required, it can be set to nil. Localstorage errors appear like "SecurityError: The operation is insecure."
53-
webView.loadHTMLString(htmlString, baseURL: URL(string: "https://prosopo.io"))
52+
guard let fileUrl = Bundle.main.url(forResource: filePath, withExtension: nil) else {
53+
fatalError("html file \(filePath) not found")
54+
}
55+
webView.loadFileURL(fileUrl, allowingReadAccessTo: fileUrl.deletingLastPathComponent())
5456
//}
5557

5658
return webView
@@ -89,25 +91,7 @@ struct ContentView: View {
8991
var body: some View {
9092
VStack {
9193
Text("Demo Procaptcha:")
92-
WebView(htmlString: """
93-
<html>
94-
<head>
95-
<title>Procaptcha</title>
96-
<meta name="viewport" content="width=device-width, initial-scale=1">
97-
<script type="module" src="https://js.prosopo.io/js/procaptcha.bundle.js" async defer></script>
98-
</head>
99-
<body>
100-
<form action="" method="POST">
101-
<input type="text" name="email" placeholder="Email" />
102-
<input type="password" name="password" placeholder="Password" />
103-
<p>image</p>
104-
<div class="procaptcha" data-sitekey="5FWCbfR7pH9QiZqLgmm5Rw4QbFwyU5EaMqUV4G6xrvrTZDtC" data-captcha-type="image"></div>
105-
<br />
106-
<input type="submit" value="Submit" />
107-
</form>
108-
</body>
109-
</html>
110-
""")
94+
WebView(filePath: "procaptcha.html")
11195
}
11296
.padding()
11397
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<html><div style='width:100%;height:100px'></div>
2+
<head>
3+
<title>Procaptcha</title>
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<script type="module" src="https://js.prosopo.io/js/procaptcha.bundle.js" async defer></script>
6+
</head>
7+
<body>
8+
<form action="" method="POST">
9+
<input type="text" name="email" placeholder="Email" />
10+
<input type="password" name="password" placeholder="Password" />
11+
<div class="procaptcha" data-sitekey="5FWCbfR7pH9QiZqLgmm5Rw4QbFwyU5EaMqUV4G6xrvrTZDtC" data-captcha-type="image"></div>
12+
<br />
13+
<input type="submit" value="Submit" />
14+
</form>
15+
</body>
16+
</html>
17+

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.3.1",
3+
"version": "2.3.2",
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.3.1",
20-
"@prosopo/provider": "2.3.1",
21-
"@prosopo/types": "2.3.1",
19+
"@prosopo/common": "2.3.2",
20+
"@prosopo/provider": "2.3.2",
21+
"@prosopo/types": "2.3.2",
2222
"cors": "2.8.5",
2323
"express": "4.21.1"
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.3.1",
3+
"version": "2.3.2",
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.3.1",
40-
"@prosopo/types": "2.3.1",
41-
"@prosopo/util": "2.3.1",
39+
"@prosopo/common": "2.3.2",
40+
"@prosopo/types": "2.3.2",
41+
"@prosopo/util": "2.3.2",
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.3.1",
3+
"version": "2.3.2",
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.3.1",
28-
"@prosopo/config": "2.3.1",
29-
"@prosopo/dotenv": "2.3.1",
30-
"@prosopo/util": "2.3.1",
27+
"@prosopo/common": "2.3.2",
28+
"@prosopo/config": "2.3.2",
29+
"@prosopo/dotenv": "2.3.2",
30+
"@prosopo/util": "2.3.2",
3131
"express": "4.21.1",
3232
"openpgp": "5.11.2",
3333
"qs": "6.13.0",

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.3.1",
3+
"version": "2.3.2",
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.3.1",
3+
"version": "2.3.2",
44
"description": "",
55
"private": true,
66
"scripts": {
@@ -37,7 +37,7 @@
3737
"npm": ">=9"
3838
},
3939
"dependencies": {
40-
"@prosopo/util": "2.3.1",
40+
"@prosopo/util": "2.3.2",
4141
"express": "4.21.1",
4242
"fast-glob": "3.3.2",
4343
"zod": "3.23.8"

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.3.1",
3+
"version": "2.3.2",
44
"description": "",
55
"private": true,
66
"scripts": {

dev/scripts/env.development

Lines changed: 1 addition & 1 deletion
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.3.1
21+
PROSOPO_PACKAGE_VERSION=2.3.2
2222
PROSOPO_PROVIDER_ACCOUNT_PASSWORD=
2323
PROSOPO_PROVIDER_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV
2424
PROSOPO_PROVIDER_JSON=

0 commit comments

Comments
 (0)