@8ms/helpers 1.42.17 → 1.42.18
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_api_ApiResponse = require("../../api/ApiResponse.cjs");
|
|
2
|
+
const require_axios_get = require("../../axios/get.cjs");
|
|
2
3
|
const require_brightData_getCustomerId = require("../getCustomerId.cjs");
|
|
3
4
|
const require_brightData_getZone = require("../getZone.cjs");
|
|
4
|
-
const require_axios_get = require("../../axios/get.cjs");
|
|
5
5
|
//#region src/brightData/serpApi/getAsyncResults.ts
|
|
6
6
|
/**
|
|
7
7
|
* Using the request ID from getAsyncRequestId fetch to see if the data is available.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ApiResponse from "../../api/ApiResponse.mjs";
|
|
2
|
+
import get from "../../axios/get.mjs";
|
|
2
3
|
import getCustomerId from "../getCustomerId.mjs";
|
|
3
4
|
import getZone from "../getZone.mjs";
|
|
4
|
-
import get from "../../axios/get.mjs";
|
|
5
5
|
//#region src/brightData/serpApi/getAsyncResults.ts
|
|
6
6
|
/**
|
|
7
7
|
* Using the request ID from getAsyncRequestId fetch to see if the data is available.
|
|
@@ -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
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8ms/helpers",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "1.42.
|
|
4
|
+
"version": "1.42.18",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
|
|
@@ -109,17 +109,17 @@
|
|
|
109
109
|
"stream-json": "*"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@aws-sdk/client-ec2": "3.
|
|
113
|
-
"@aws-sdk/client-ecs": "3.
|
|
114
|
-
"@aws-sdk/client-glue": "3.
|
|
115
|
-
"@aws-sdk/client-lambda": "3.
|
|
116
|
-
"@aws-sdk/client-s3": "3.
|
|
117
|
-
"@aws-sdk/client-ses": "3.
|
|
118
|
-
"@aws-sdk/client-sqs": "3.
|
|
119
|
-
"@aws-sdk/client-ssm": "3.
|
|
120
|
-
"@aws-sdk/lib-storage": "3.
|
|
121
|
-
"@aws-sdk/s3-presigned-post": "3.
|
|
122
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
112
|
+
"@aws-sdk/client-ec2": "3.1075.0",
|
|
113
|
+
"@aws-sdk/client-ecs": "3.1075.0",
|
|
114
|
+
"@aws-sdk/client-glue": "3.1075.0",
|
|
115
|
+
"@aws-sdk/client-lambda": "3.1075.0",
|
|
116
|
+
"@aws-sdk/client-s3": "3.1075.0",
|
|
117
|
+
"@aws-sdk/client-ses": "3.1075.0",
|
|
118
|
+
"@aws-sdk/client-sqs": "3.1075.0",
|
|
119
|
+
"@aws-sdk/client-ssm": "3.1075.0",
|
|
120
|
+
"@aws-sdk/lib-storage": "3.1075.0",
|
|
121
|
+
"@aws-sdk/s3-presigned-post": "3.1075.0",
|
|
122
|
+
"@aws-sdk/s3-request-presigner": "3.1075.0",
|
|
123
123
|
"@babel/core": "8.0.1",
|
|
124
124
|
"@babel/preset-env": "8.0.2",
|
|
125
125
|
"@babel/preset-flow": "8.0.1",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@types/lodash": "4.17.24",
|
|
138
138
|
"@types/node": "24.13.2",
|
|
139
139
|
"babel-jest": "30.4.1",
|
|
140
|
-
"google-ads-api": "
|
|
140
|
+
"google-ads-api": "24.1.0",
|
|
141
141
|
"jest": "30.4.2",
|
|
142
142
|
"node-fetch": "3.3.2",
|
|
143
143
|
"stream-chain": "3.6.3",
|