Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.3.2 #1633

Merged
merged 19 commits into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demos/client-bundle-example/package.json
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@
"start": "vite serve ./src --port 9232 --config vite.config.ts",
"clean": "echo 'nothing to clean'"
},
"version": "2.3.1",
"version": "2.3.2",
"devDependencies": {
"@prosopo/dotenv": "2.3.1",
"@prosopo/dotenv": "2.3.2",
"@types/node": "22.5.5",
"@vitest/coverage-v8": "2.1.1",
"concurrently": "9.0.1",
2 changes: 1 addition & 1 deletion demos/client-bundle-example/src/frictionless.html
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<title>Procaptcha demo: Live Test</title>
<script type="module">
async function captchaLoaded() {
const render = (await import('./assets/procaptcha.bundle')).render
const render = (await import('./assets/procaptcha.bundle.js')).render
console.log('Captcha loaded')
// Get the Element using elementId
const captchaContainer = document.getElementById('procaptcha-container')
2 changes: 1 addition & 1 deletion demos/client-bundle-example/src/urlParams.html
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<title>Procaptcha demo: Live Test</title>
<script type="module">
async function captchaLoaded() {
const render = (await import('./assets/procaptcha.bundle')).render
const render = (await import('./assets/procaptcha.bundle.js')).render
console.log('Captcha loaded')
// Get the Element using elementId
const captchaContainer = document.getElementById('procaptcha-container')
14 changes: 7 additions & 7 deletions demos/client-example-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/client-example-server",
"version": "2.3.1",
"version": "2.3.2",
"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.3.1",
"@prosopo/common": "2.3.2",
"@prosopo/contract": "2.2.3",
"@prosopo/dotenv": "2.3.1",
"@prosopo/server": "2.3.1",
"@prosopo/types": "2.3.1",
"@prosopo/util": "2.3.1",
"@prosopo/dotenv": "2.3.2",
"@prosopo/server": "2.3.2",
"@prosopo/types": "2.3.2",
"@prosopo/util": "2.3.2",
"@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.3.1",
"@prosopo/config": "2.3.2",
"@types/jsonwebtoken": "9.0.6",
"@vitest/coverage-v8": "2.1.1",
"concurrently": "9.0.1",
22 changes: 11 additions & 11 deletions demos/client-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/client-example",
"version": "2.3.1",
"version": "2.3.2",
"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.3.1",
"@prosopo/locale-browser": "2.3.1",
"@prosopo/procaptcha-frictionless": "2.3.1",
"@prosopo/procaptcha-pow": "2.3.1",
"@prosopo/procaptcha-react": "2.3.1",
"@prosopo/server": "2.3.1",
"@prosopo/types": "2.3.1",
"@prosopo/vite-plugin-watch-workspace": "2.3.1",
"@prosopo/common": "2.3.2",
"@prosopo/locale-browser": "2.3.2",
"@prosopo/procaptcha-frictionless": "2.3.2",
"@prosopo/procaptcha-pow": "2.3.2",
"@prosopo/procaptcha-react": "2.3.2",
"@prosopo/server": "2.3.2",
"@prosopo/types": "2.3.2",
"@prosopo/vite-plugin-watch-workspace": "2.3.2",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.3.1",
"express": "4.21.1",
@@ -41,8 +41,8 @@
}
},
"devDependencies": {
"@prosopo/config": "2.3.1",
"@prosopo/dotenv": "2.3.1",
"@prosopo/config": "2.3.2",
"@prosopo/dotenv": "2.3.2",
"@types/node": "22.5.5",
"@vitest/coverage-v8": "2.1.1",
"concurrently": "9.0.1",
12 changes: 6 additions & 6 deletions demos/cypress-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "@prosopo/cypress-shared",
"version": "2.3.1",
"version": "2.3.2",
"private": true,
"type": "module",
"engines": {
"node": "20",
"npm": ">=9"
},
"dependencies": {
"@prosopo/types": "2.3.1",
"@prosopo/util": "2.3.1",
"@prosopo/types": "2.3.2",
"@prosopo/util": "2.3.2",
"express": "4.21.1"
},
"devDependencies": {
"@cypress/xpath": "2.0.3",
"@prosopo/common": "2.3.1",
"@prosopo/datasets": "2.3.1",
"@prosopo/types-database": "2.3.1",
"@prosopo/common": "2.3.2",
"@prosopo/datasets": "2.3.2",
"@prosopo/types-database": "2.3.2",
"@types/node": "22.5.5",
"@vitest/coverage-v8": "2.1.1",
"concurrently": "9.0.1",
6 changes: 6 additions & 0 deletions demos/ios-webview/procaptcha.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
6093CEA72CA96BB9006699D1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6093CEA62CA96BB9006699D1 /* ContentView.swift */; };
6093CEA92CA96BBD006699D1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6093CEA82CA96BBD006699D1 /* Assets.xcassets */; };
6093CEAD2CA96BBD006699D1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6093CEAC2CA96BBD006699D1 /* Preview Assets.xcassets */; };
CE79A1EA2D38EC2200047A40 /* procaptcha.html in Resources */ = {isa = PBXBuildFile; fileRef = CE79A1E92D38EC2200047A40 /* procaptcha.html */; };
/* End PBXBuildFile section */

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

/* Begin PBXFrameworksBuildPhase section */
@@ -55,6 +57,7 @@
6093CEA42CA96BB9006699D1 /* procaptchaApp.swift */,
6093CEA62CA96BB9006699D1 /* ContentView.swift */,
6093CEA82CA96BBD006699D1 /* Assets.xcassets */,
CE79A1E92D38EC2200047A40 /* procaptcha.html */,
6093CEAA2CA96BBD006699D1 /* procaptcha.entitlements */,
6093CEAB2CA96BBD006699D1 /* Preview Content */,
);
@@ -127,6 +130,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CE79A1EA2D38EC2200047A40 /* procaptcha.html in Resources */,
6093CEAD2CA96BBD006699D1 /* Preview Assets.xcassets in Resources */,
6093CEA92CA96BBD006699D1 /* Assets.xcassets in Resources */,
);
@@ -282,6 +286,7 @@
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13.3;
MARKETING_VERSION = 1.0;
NSExceptionAllInsecureHTTPLoads = YES;
PRODUCT_BUNDLE_IDENTIFIER = io.prosopo.procaptcha;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
@@ -320,6 +325,7 @@
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 13.3;
MARKETING_VERSION = 1.0;
NSExceptionAllInsecureHTTPLoads = YES;
PRODUCT_BUNDLE_IDENTIFIER = io.prosopo.procaptcha;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildLocationStyle</key>
<string>UseAppPreferences</string>
<key>CustomBuildLocationType</key>
<string>RelativeToDerivedData</string>
<key>DerivedDataLocationStyle</key>
<string>Default</string>
<key>ShowSharedSchemesAutomaticallyEnabled</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>procaptcha.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
28 changes: 6 additions & 22 deletions demos/ios-webview/procaptcha/ContentView.swift
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import SwiftUI
import WebKit

struct WebView: UIViewRepresentable {
let htmlString: String
let filePath: String

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

//DispatchQueue.main.asyncAfter(deadline: .now() + 30) {
// 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."
webView.loadHTMLString(htmlString, baseURL: URL(string: "https://prosopo.io"))
guard let fileUrl = Bundle.main.url(forResource: filePath, withExtension: nil) else {
fatalError("html file \(filePath) not found")
}
webView.loadFileURL(fileUrl, allowingReadAccessTo: fileUrl.deletingLastPathComponent())
//}

return webView
@@ -89,25 +91,7 @@ struct ContentView: View {
var body: some View {
VStack {
Text("Demo Procaptcha:")
WebView(htmlString: """
<html>
<head>
<title>Procaptcha</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module" src="https://js.prosopo.io/js/procaptcha.bundle.js" async defer></script>
</head>
<body>
<form action="" method="POST">
<input type="text" name="email" placeholder="Email" />
<input type="password" name="password" placeholder="Password" />
<p>image</p>
<div class="procaptcha" data-sitekey="5FWCbfR7pH9QiZqLgmm5Rw4QbFwyU5EaMqUV4G6xrvrTZDtC" data-captcha-type="image"></div>
<br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
""")
WebView(filePath: "procaptcha.html")
}
.padding()
}
17 changes: 17 additions & 0 deletions demos/ios-webview/procaptcha/procaptcha.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html><div style='width:100%;height:100px'></div>
<head>
<title>Procaptcha</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module" src="https://js.prosopo.io/js/procaptcha.bundle.js" async defer></script>
</head>
<body>
<form action="" method="POST">
<input type="text" name="email" placeholder="Email" />
<input type="password" name="password" placeholder="Password" />
<div class="procaptcha" data-sitekey="5FWCbfR7pH9QiZqLgmm5Rw4QbFwyU5EaMqUV4G6xrvrTZDtC" data-captcha-type="image"></div>
<br />
<input type="submit" value="Submit" />
</form>
</body>
</html>

8 changes: 4 additions & 4 deletions demos/provider-mock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/provider-mock",
"version": "2.3.1",
"version": "2.3.2",
"author": "PROSOPO LIMITED <[email protected]>",
"license": "Apache-2.0",
"main": "./dist/index.js",
@@ -16,9 +16,9 @@
"build:cjs": "echo 'no cjs build'"
},
"dependencies": {
"@prosopo/common": "2.3.1",
"@prosopo/provider": "2.3.1",
"@prosopo/types": "2.3.1",
"@prosopo/common": "2.3.2",
"@prosopo/provider": "2.3.2",
"@prosopo/types": "2.3.2",
"cors": "2.8.5",
"express": "4.21.1"
},
8 changes: 4 additions & 4 deletions dev/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/config",
"version": "2.3.1",
"version": "2.3.2",
"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.3.1",
"@prosopo/types": "2.3.1",
"@prosopo/util": "2.3.1",
"@prosopo/common": "2.3.2",
"@prosopo/types": "2.3.2",
"@prosopo/util": "2.3.2",
"@rollup/plugin-alias": "5.1.0",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-commonjs": "26.0.1",
10 changes: 5 additions & 5 deletions dev/flux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/flux",
"version": "2.3.1",
"version": "2.3.2",
"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.3.1",
"@prosopo/config": "2.3.1",
"@prosopo/dotenv": "2.3.1",
"@prosopo/util": "2.3.1",
"@prosopo/common": "2.3.2",
"@prosopo/config": "2.3.2",
"@prosopo/dotenv": "2.3.2",
"@prosopo/util": "2.3.2",
"express": "4.21.1",
"openpgp": "5.11.2",
"qs": "6.13.0",
2 changes: 1 addition & 1 deletion dev/gh-actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/gh-actions",
"version": "2.3.1",
"version": "2.3.2",
"description": "",
"private": true,
"scripts": {
4 changes: 2 additions & 2 deletions dev/lint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/lint",
"version": "2.3.1",
"version": "2.3.2",
"description": "",
"private": true,
"scripts": {
@@ -37,7 +37,7 @@
"npm": ">=9"
},
"dependencies": {
"@prosopo/util": "2.3.1",
"@prosopo/util": "2.3.2",
"express": "4.21.1",
"fast-glob": "3.3.2",
"zod": "3.23.8"
2 changes: 1 addition & 1 deletion dev/prosoponator-bot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prosopo/prosoponator-bot",
"version": "2.3.1",
"version": "2.3.2",
"description": "",
"private": true,
"scripts": {
2 changes: 1 addition & 1 deletion dev/scripts/env.development
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ PROSOPO_DEFAULT_ENVIRONMENT=development
PROSOPO_LOG_LEVEL=debug
PROSOPO_MONGO_CAPTCHA_URI=
PROSOPO_MONGO_EVENTS_URI=mongodb+srv://<MONGO_URI_HERE>/frictionless_events
PROSOPO_PACKAGE_VERSION=2.3.1
PROSOPO_PACKAGE_VERSION=2.3.2
PROSOPO_PROVIDER_ACCOUNT_PASSWORD=
PROSOPO_PROVIDER_ADDRESS=5EjTA28bKSbFPPyMbUjNtArxyqjwq38r1BapVmLZShaqEedV
PROSOPO_PROVIDER_JSON=
Loading