Skip to content

Commit 17ab909

Browse files
authored
bump to 4.0.0 (#109)
1 parent 897f4bf commit 17ab909

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

__tests__/Hcaptcha.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('Hcaptcha', () => {
103103
expect(config.debugInfo).toMatchObject({
104104
customDebug: 'enabled',
105105
'dep_mocked-md5': true,
106-
sdk_3_0_2: true,
106+
sdk_4_0_0: true,
107107
});
108108

109109
expect(query).toMatchObject({

__tests__/__snapshots__/ConfirmHcaptcha.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ exports[`ConfirmHcaptcha renders ConfirmHcaptcha with minimum props after show()
112112
<meta name="viewport" content="width=device-width, initial-scale=1.0">
113113
<meta http-equiv="X-UA-Compatible" content="ie=edge">
114114
<script type="text/javascript">
115-
var hcaptchaConfig = {"apiUrl":"https://js.hcaptcha.com/1/api.js?render=explicit\\u0026onload=onloadCallback\\u0026host=00000000-0000-0000-0000-000000000000.react-native.hcaptcha.com\\u0026hl=en\\u0026orientation=portrait","backgroundColor":"rgba(0, 0, 0, 0.3)","debugInfo":{"rnver_0_0_0":true,"dep_mocked-md5":true,"sdk_3_0_2":true},"phoneNumber":null,"phonePrefix":null,"rqdata":null,"siteKey":"00000000-0000-0000-0000-000000000000","size":"invisible","theme":"light"};
115+
var hcaptchaConfig = {"apiUrl":"https://js.hcaptcha.com/1/api.js?render=explicit\\u0026onload=onloadCallback\\u0026host=00000000-0000-0000-0000-000000000000.react-native.hcaptcha.com\\u0026hl=en\\u0026orientation=portrait","backgroundColor":"rgba(0, 0, 0, 0.3)","debugInfo":{"rnver_0_0_0":true,"dep_mocked-md5":true,"sdk_4_0_0":true},"phoneNumber":null,"phonePrefix":null,"rqdata":null,"siteKey":"00000000-0000-0000-0000-000000000000","size":"invisible","theme":"light"};
116116
Object.entries(hcaptchaConfig.debugInfo || {}).forEach(function (entry) { window[entry[0]] = entry[1] });
117117
</script>
118118
<script type="text/javascript">

__tests__/__snapshots__/Hcaptcha.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exports[`Hcaptcha renders Hcaptcha with minimum props 1`] = `
4646
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4747
<meta http-equiv="X-UA-Compatible" content="ie=edge">
4848
<script type="text/javascript">
49-
var hcaptchaConfig = {"apiUrl":"https://hcaptcha.com/1/api.js?render=explicit\\u0026onload=onloadCallback\\u0026host=missing-sitekey.react-native.hcaptcha.com\\u0026custom=true","backgroundColor":"","debugInfo":{"rnver_0_0_0":true,"dep_mocked-md5":true,"sdk_3_0_2":true},"phoneNumber":null,"phonePrefix":null,"rqdata":null,"siteKey":"","size":"invisible","theme":["test_key"]};
49+
var hcaptchaConfig = {"apiUrl":"https://hcaptcha.com/1/api.js?render=explicit\\u0026onload=onloadCallback\\u0026host=missing-sitekey.react-native.hcaptcha.com\\u0026custom=true","backgroundColor":"","debugInfo":{"rnver_0_0_0":true,"dep_mocked-md5":true,"sdk_4_0_0":true},"phoneNumber":null,"phonePrefix":null,"rqdata":null,"siteKey":"","size":"invisible","theme":["test_key"]};
5050
Object.entries(hcaptchaConfig.debugInfo || {}).forEach(function (entry) { window[entry[0]] = entry[1] });
5151
</script>
5252
<script type="text/javascript">

__tests__/buildVerifyData.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ describe('buildDebugInfo', () => {
6868
custom: true,
6969
'dep_mocked-md5': true,
7070
rnver_0_0_0: true,
71-
sdk_3_0_2: true,
71+
sdk_4_0_0: true,
7272
});
7373
});
7474

7575
it('adds the normalized RN version marker when available', () => {
7676
expect(buildDebugInfo({}, { version: { major: 1, minor: 2, patch: 3 } })).toEqual({
7777
rnver_1_2_3: true,
7878
'dep_mocked-md5': true,
79-
sdk_3_0_2: true,
79+
sdk_4_0_0: true,
8080
});
8181
});
8282
});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hcaptcha/react-native-hcaptcha",
3-
"version": "3.0.2",
3+
"version": "4.0.0",
44
"description": "hCaptcha Library for React Native (both Android and iOS)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)