From 5212ea5b0447273546f1ff108ac34cdef5ac2693 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Thu, 23 Dec 2021 11:00:31 -0800 Subject: [PATCH 1/3] Update to version 1.0.0 --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5be414c..ab5036b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hcaptcha/react-hcaptcha", - "version": "0.3.10", + "version": "1.0.0", "types": "types/index.d.ts", "main": "dist/index.js", "files": [ diff --git a/src/index.js b/src/index.js index 7b555aa..2c77c6b 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ const mountCaptchaScript = (params={}) => { }); }; - const domain = params.apihost || "https://hcaptcha.com"; + const domain = params.apihost || "https://js.hcaptcha.com"; delete params.apihost; const script = document.createElement("script"); From 875a4f93daebe571a0a9b22b0b75172cf2390777 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Thu, 23 Dec 2021 11:01:29 -0800 Subject: [PATCH 2/3] Chore: Update package lock --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 7732c9f..ba5cdcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hcaptcha/react-hcaptcha", - "version": "0.3.10", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { From 2ea95a07b91424a027ac9807c709bbde51947706 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Thu, 23 Dec 2021 11:06:47 -0800 Subject: [PATCH 3/3] Chore: Fix test --- tests/hcaptcha.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hcaptcha.spec.js b/tests/hcaptcha.spec.js index 03b301c..b39a024 100644 --- a/tests/hcaptcha.spec.js +++ b/tests/hcaptcha.spec.js @@ -214,7 +214,7 @@ describe("hCaptcha", () => { />); const script = document.querySelector("head > script"); - expect(script.src).toEqual("https://hcaptcha.com/1/api.js?render=explicit&onload=hcaptchaOnLoad"); + expect(script.src).toEqual("https://js.hcaptcha.com/1/api.js?render=explicit&onload=hcaptchaOnLoad"); }); it("apihost should change script src, but not be added as query", () => {