@prosopo/procaptcha-wrapper 2.5.5 → 2.6.6

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,42 @@
1
+ # @prosopo/procaptcha-wrapper
2
+
3
+ ## 2.6.6
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [b0d7207]
7
+ - @prosopo/types@3.0.3
8
+
9
+ ## 2.6.5
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [f682f0c]
13
+ - @prosopo/locale@3.0.2
14
+ - @prosopo/types@3.0.2
15
+
16
+ ## 2.6.4
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [87bd9bc]
20
+ - @prosopo/locale@3.0.1
21
+ - @prosopo/types@3.0.1
22
+
23
+ ## 2.6.3
24
+ ### Patch Changes
25
+
26
+ - dead520: fix dep versions
27
+
28
+ ## 2.6.2
29
+ ### Patch Changes
30
+
31
+ - 5705cfb: use build+bundle npm scripts
32
+
33
+ ## 2.6.1
34
+ ### Patch Changes
35
+
36
+ - 86c22b8: structured logging
37
+
38
+ ## 2.6.0
39
+
40
+ ### Minor Changes
41
+
42
+ - a0bfc8a: bump all pkg versions since independent versioning applied
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export declare const ProcaptchaLanguages: {
22
22
  readonly dutch: "nl";
23
23
  readonly norwegian: "no";
24
24
  readonly polish: "pl";
25
- readonly portugeseBrazil: "pt-br";
25
+ readonly portugeseBrazil: "pt-BR";
26
26
  readonly portuguese: "pt";
27
27
  readonly romanian: "ro";
28
28
  readonly russian: "ru";
@@ -32,7 +32,7 @@ export declare const ProcaptchaLanguages: {
32
32
  readonly turkish: "tr";
33
33
  readonly ukrainian: "uk";
34
34
  readonly vietnamese: "vi";
35
- readonly chinese: "zh";
35
+ readonly chinese: "zh-CN";
36
36
  };
37
37
 
38
38
  export declare interface ProcaptchaRenderOptions {
@@ -50,12 +50,15 @@ export declare interface ProcaptchaRenderOptions {
50
50
  "reset-callback"?: string | (() => void);
51
51
  language?: (typeof ProcaptchaLanguages)[keyof typeof ProcaptchaLanguages];
52
52
  size?: "invisible";
53
+ web3?: boolean;
54
+ userAccountAddress?: string;
53
55
  }
54
56
 
55
57
  export declare enum ProcaptchaType {
56
58
  image = "image",
57
59
  pow = "pow",
58
- frictionless = "frictionless"
60
+ frictionless = "frictionless",
61
+ invisible = "invisible"
59
62
  }
60
63
 
61
64
  declare type RendererFunction = (element: HTMLElement, options: ProcaptchaRenderOptions) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-wrapper",
3
- "version": "2.5.5",
3
+ "version": "2.6.6",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "20",
@@ -11,12 +11,17 @@
11
11
  "scripts": {
12
12
  "test": "echo \"No test specified\"",
13
13
  "clean": "del-cli ./dist",
14
- "build": "npx vite build"
14
+ "build": "tsc --build",
15
+ "bundle": "vite build"
16
+ },
17
+ "dependencies": {
18
+ "@prosopo/types": "3.0.3",
19
+ "@prosopo/locale": "3.0.2"
15
20
  },
16
21
  "devDependencies": {
17
- "@prosopo/procaptcha-integration-build-config": "1.0.0",
22
+ "@prosopo/procaptcha-integration-build-config": "1.1.0",
18
23
  "del-cli": "6.0.0",
19
- "@prosopo/types": "2.5.5"
24
+ "@prosopo/types": "3.0.3"
20
25
  },
21
26
  "author": "PROSOPO LIMITED <info@prosopo.io>",
22
27
  "license": "Apache-2.0",