@8ms/helpers 1.42.14 → 1.42.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.
- package/dist/axios/delete.cjs +2 -0
- package/dist/axios/delete.mjs +2 -0
- package/dist/axios/get.cjs +2 -0
- package/dist/axios/get.mjs +2 -0
- package/dist/axios/post.cjs +3 -1
- package/dist/axios/post.mjs +3 -1
- package/dist/google/bigQuery/loadData.cjs +1 -1
- package/dist/google/bigQuery/loadData.mjs +4 -4
- package/package.json +1 -1
package/dist/axios/delete.cjs
CHANGED
|
@@ -7,6 +7,8 @@ const require_api_ApiResponse = require("../api/ApiResponse.cjs");
|
|
|
7
7
|
const deleteRequest = async (props) => {
|
|
8
8
|
const { default: ky } = await import("ky");
|
|
9
9
|
return await ky.delete(props.url, {
|
|
10
|
+
retry: 0,
|
|
11
|
+
timeout: false,
|
|
10
12
|
throwHttpErrors: false,
|
|
11
13
|
...props.config
|
|
12
14
|
}).then(async (response) => {
|
package/dist/axios/delete.mjs
CHANGED
|
@@ -7,6 +7,8 @@ import ApiResponse from "../api/ApiResponse.mjs";
|
|
|
7
7
|
const deleteRequest = async (props) => {
|
|
8
8
|
const { default: ky } = await import("ky");
|
|
9
9
|
return await ky.delete(props.url, {
|
|
10
|
+
retry: 0,
|
|
11
|
+
timeout: false,
|
|
10
12
|
throwHttpErrors: false,
|
|
11
13
|
...props.config
|
|
12
14
|
}).then(async (response) => {
|
package/dist/axios/get.cjs
CHANGED
|
@@ -6,6 +6,8 @@ const require_api_ApiResponse = require("../api/ApiResponse.cjs");
|
|
|
6
6
|
const get = async ({ config = {}, url }) => {
|
|
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/axios/get.mjs
CHANGED
|
@@ -6,6 +6,8 @@ import ApiResponse from "../api/ApiResponse.mjs";
|
|
|
6
6
|
const get = async ({ config = {}, url }) => {
|
|
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/axios/post.cjs
CHANGED
|
@@ -6,8 +6,10 @@ const require_api_ApiResponse = require("../api/ApiResponse.cjs");
|
|
|
6
6
|
const post = async ({ config = {}, data = {}, url }) => {
|
|
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 data = await response.json();
|
package/dist/axios/post.mjs
CHANGED
|
@@ -6,8 +6,10 @@ import ApiResponse from "../api/ApiResponse.mjs";
|
|
|
6
6
|
const post = async ({ config = {}, data = {}, url }) => {
|
|
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 data = await response.json();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_google_storage_getClient = require("../storage/getClient.cjs");
|
|
2
1
|
const require_google_bigQuery_getClient = require("./getClient.cjs");
|
|
3
2
|
const require_google_bigQuery_IsTableExists = require("./IsTableExists.cjs");
|
|
3
|
+
const require_google_storage_getClient = require("../storage/getClient.cjs");
|
|
4
4
|
//#region src/google/bigQuery/loadData.ts
|
|
5
5
|
/**
|
|
6
6
|
* Load data into a given table.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import getClient from "
|
|
2
|
-
import getClient$1 from "./getClient.mjs";
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
3
2
|
import isTableExists from "./IsTableExists.mjs";
|
|
3
|
+
import getClient$1 from "../storage/getClient.mjs";
|
|
4
4
|
//#region src/google/bigQuery/loadData.ts
|
|
5
5
|
/**
|
|
6
6
|
* Load data into a given table.
|
|
@@ -11,8 +11,8 @@ const loadData = async ({ file, table }) => {
|
|
|
11
11
|
projectId: table.projectId,
|
|
12
12
|
tableId: table.tableId
|
|
13
13
|
})) {
|
|
14
|
-
let bigqueryClient = await getClient
|
|
15
|
-
let storageClient = await getClient({ projectId: file.projectId });
|
|
14
|
+
let bigqueryClient = await getClient({ projectId: table.projectId });
|
|
15
|
+
let storageClient = await getClient$1({ projectId: file.projectId });
|
|
16
16
|
await bigqueryClient.dataset(table.datasetId).table(table.tableId).load(storageClient.bucket(file.bucket).file(file.key), file.metadata);
|
|
17
17
|
}
|
|
18
18
|
};
|