@8ms/helpers 2.4.14 → 2.4.15

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.
@@ -8,6 +8,8 @@ const require_api_ApiResponseClass = require("./ApiResponseClass.cjs");
8
8
  const deleteRequest = async (url, config = {}) => {
9
9
  const { default: ky } = await import("ky");
10
10
  return await ky.delete(url, {
11
+ retry: 0,
12
+ timeout: false,
11
13
  throwHttpErrors: false,
12
14
  ...config
13
15
  }).then(async (response) => {
@@ -7,6 +7,8 @@ import { ApiResponseClass } from "./ApiResponseClass.mjs";
7
7
  const deleteRequest = async (url, config = {}) => {
8
8
  const { default: ky } = await import("ky");
9
9
  return await ky.delete(url, {
10
+ retry: 0,
11
+ timeout: false,
10
12
  throwHttpErrors: false,
11
13
  ...config
12
14
  }).then(async (response) => {
package/dist/api/get.cjs CHANGED
@@ -7,6 +7,8 @@ const require_api_ApiResponseClass = require("./ApiResponseClass.cjs");
7
7
  const get = async (url, config = {}) => {
8
8
  const { default: ky } = await import("ky");
9
9
  return await ky.get(url, {
10
+ retry: 0,
11
+ timeout: false,
10
12
  throwHttpErrors: false,
11
13
  ...config
12
14
  }).then(async (response) => {
package/dist/api/get.mjs CHANGED
@@ -6,6 +6,8 @@ import { ApiResponseClass } from "./ApiResponseClass.mjs";
6
6
  const get = async (url, config = {}) => {
7
7
  const { default: ky } = await import("ky");
8
8
  return await ky.get(url, {
9
+ retry: 0,
10
+ timeout: false,
9
11
  throwHttpErrors: false,
10
12
  ...config
11
13
  }).then(async (response) => {
package/dist/api/post.cjs CHANGED
@@ -7,8 +7,10 @@ const require_api_ApiResponseClass = require("./ApiResponseClass.cjs");
7
7
  const post = async (url, data = {}, config = {}) => {
8
8
  const { default: ky } = await import("ky");
9
9
  return await ky.post(url, {
10
- throwHttpErrors: false,
11
10
  json: data,
11
+ retry: 0,
12
+ timeout: false,
13
+ throwHttpErrors: false,
12
14
  ...config
13
15
  }).then(async (response) => {
14
16
  const responseData = await response.json();
package/dist/api/post.mjs CHANGED
@@ -6,8 +6,10 @@ import { ApiResponseClass } from "./ApiResponseClass.mjs";
6
6
  const post = async (url, data = {}, config = {}) => {
7
7
  const { default: ky } = await import("ky");
8
8
  return await ky.post(url, {
9
- throwHttpErrors: false,
10
9
  json: data,
10
+ retry: 0,
11
+ timeout: false,
12
+ throwHttpErrors: false,
11
13
  ...config
12
14
  }).then(async (response) => {
13
15
  const responseData = await response.json();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "2.4.14",
4
+ "version": "2.4.15",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"