tripstorekrabi-shared 1.7.5 → 1.7.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.
Files changed (2) hide show
  1. package/package.json +2 -3
  2. package/utils.js +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
@@ -13,8 +13,7 @@
13
13
  "./availability": "./availability.js"
14
14
  },
15
15
  "dependencies": {
16
- "dayjs": "^1.11.5",
17
- "node-fetch": "^3.2.10"
16
+ "dayjs": "^1.11.5"
18
17
  },
19
18
  "scripts": {
20
19
  "deploy": "npm publish"
package/utils.js CHANGED
@@ -278,18 +278,6 @@ export function countPeople(people) {
278
278
  return people.adults ?? 0 + people.children ?? 0 + people.infants ?? 0;
279
279
  }
280
280
 
281
- export function recaptchaChallenge(secret, token) {
282
- const url = `https://www.google.com/recaptcha/api/siteverify?secret=${secret}&response=${token}`;
283
- return fetch(url, {
284
- method: "POST",
285
- }).then(async (result) => result.json())
286
- .then((result) => result.success
287
- ).catch((e) => {
288
- console.error(e);
289
- return false
290
- });
291
- }
292
-
293
281
  export function isNumeric(n) {
294
282
  return !isNaN(parseFloat(n)) && isFinite(n);
295
283
  }