@prosopo/procaptcha-frictionless 0.3.42 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -122,13 +122,14 @@ const Manager = (configInput, state, onStateUpdate, callbacks) => {
122
122
  isHuman: true,
123
123
  loading: false
124
124
  });
125
- events2.onHuman({
126
- providerUrl,
125
+ events2.onHuman(types.encodeProcaptchaOutput({
126
+ [types.ApiParams.providerUrl]: providerUrl,
127
127
  [types.ApiParams.user]: getAccount().account.address,
128
128
  [types.ApiParams.dapp]: getDappAccount(),
129
129
  [types.ApiParams.challenge]: challenge.challenge,
130
- [types.ApiParams.blockNumber]: getRandomProviderResponse.blockNumber
131
- });
130
+ [types.ApiParams.blockNumber]: getRandomProviderResponse.blockNumber,
131
+ [types.ApiParams.nonce]: solution
132
+ }));
132
133
  setValidChallengeTimeout();
133
134
  }
134
135
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-frictionless",
3
- "version": "0.3.42",
3
+ "version": "1.0.1",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -35,10 +35,10 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@fingerprintjs/botd": "^1.9.0",
38
- "@prosopo/procaptcha-pow": "0.3.42",
39
- "@prosopo/procaptcha-react": "0.3.42",
40
- "@prosopo/types": "0.3.42",
41
- "@prosopo/web-components": "0.3.42",
38
+ "@prosopo/procaptcha-pow": "1.0.1",
39
+ "@prosopo/procaptcha-react": "1.0.1",
40
+ "@prosopo/types": "1.0.1",
41
+ "@prosopo/web-components": "1.0.1",
42
42
  "react": "^18.3.1"
43
43
  },
44
44
  "devDependencies": {