@captchafox/react 1.10.0 → 1.11.0

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/dist/index.cjs CHANGED
@@ -109,6 +109,12 @@ function loadCaptchaScript() {
109
109
  return withRetry(() => loadScript(props));
110
110
  });
111
111
  }
112
+ var setVersion = (name) => {
113
+ window._tsdk = {
114
+ n: name,
115
+ v: "1.11.0"
116
+ };
117
+ };
112
118
  var isApiReady = () => typeof (window == null ? void 0 : window.captchafox) !== "undefined";
113
119
 
114
120
  // src/CaptchaFox.tsx
@@ -189,6 +195,7 @@ var CaptchaFox = (0, import_react.forwardRef)(
189
195
  }
190
196
  }, [widgetId]);
191
197
  (0, import_react.useEffect)(() => {
198
+ setVersion("rj");
192
199
  return () => {
193
200
  clearEvents();
194
201
  };
package/dist/index.js CHANGED
@@ -71,6 +71,12 @@ function loadCaptchaScript() {
71
71
  return withRetry(() => loadScript(props));
72
72
  });
73
73
  }
74
+ var setVersion = (name) => {
75
+ window._tsdk = {
76
+ n: name,
77
+ v: "1.11.0"
78
+ };
79
+ };
74
80
  var isApiReady = () => typeof (window == null ? void 0 : window.captchafox) !== "undefined";
75
81
 
76
82
  // src/CaptchaFox.tsx
@@ -151,6 +157,7 @@ var CaptchaFox = forwardRef(
151
157
  }
152
158
  }, [widgetId]);
153
159
  useEffect(() => {
160
+ setVersion("rj");
154
161
  return () => {
155
162
  clearEvents();
156
163
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captchafox/react",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",