@8ms/helpers 1.42.16 → 1.42.17
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/brightData/serpApi/getAsyncResults.cjs +1 -1
- package/dist/brightData/serpApi/getAsyncResults.mjs +1 -1
- package/dist/google/bigQuery/loadData.cjs +1 -1
- package/dist/google/bigQuery/loadData.mjs +4 -4
- package/package.json +1 -1
- package/tsdown.config.ts +15 -15
- package/.idea/8ms-helpers-ts-v1.iml +0 -8
- package/.idea/awsToolkit.xml +0 -17
- package/.idea/db-forest-config.xml +0 -13
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -19
- package/.idea/vcs.xml +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_api_ApiResponse = require("../../api/ApiResponse.cjs");
|
|
2
|
-
const require_axios_get = require("../../axios/get.cjs");
|
|
3
2
|
const require_brightData_getCustomerId = require("../getCustomerId.cjs");
|
|
4
3
|
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";
|
|
3
2
|
import getCustomerId from "../getCustomerId.mjs";
|
|
4
3
|
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");
|
|
1
2
|
const require_google_bigQuery_getClient = require("./getClient.cjs");
|
|
2
3
|
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 "
|
|
1
|
+
import getClient from "../storage/getClient.mjs";
|
|
2
|
+
import getClient$1 from "./getClient.mjs";
|
|
2
3
|
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({ projectId: table.projectId });
|
|
15
|
-
let storageClient = await getClient
|
|
14
|
+
let bigqueryClient = await getClient$1({ projectId: table.projectId });
|
|
15
|
+
let storageClient = await getClient({ 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
package/tsdown.config.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {defineConfig} from "tsdown";
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
entry : [
|
|
5
|
-
"src/**/*.ts",
|
|
6
|
-
"!src/**/*.test.ts",
|
|
7
|
-
"!src/**/*.d.ts"
|
|
8
|
-
],
|
|
9
|
-
format : ["esm", "cjs"],
|
|
10
|
-
outDir : "dist",
|
|
11
|
-
unbundle: true,
|
|
12
|
-
dts : true,
|
|
13
|
-
exports : true,
|
|
14
|
-
clean : true,
|
|
15
|
-
});
|
|
1
|
+
import {defineConfig} from "tsdown";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
entry : [
|
|
5
|
+
"src/**/*.ts",
|
|
6
|
+
"!src/**/*.test.ts",
|
|
7
|
+
"!src/**/*.d.ts"
|
|
8
|
+
],
|
|
9
|
+
format : ["esm", "cjs"],
|
|
10
|
+
outDir : "dist",
|
|
11
|
+
unbundle: true,
|
|
12
|
+
dts : true,
|
|
13
|
+
exports : true,
|
|
14
|
+
clean : true,
|
|
15
|
+
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/.idea/awsToolkit.xml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="toolkitAccountSettings">
|
|
4
|
-
<option name="activeProfile" value="profile:default" />
|
|
5
|
-
<option name="activeRegion" value="eu-west-1" />
|
|
6
|
-
<option name="recentlyUsedProfiles">
|
|
7
|
-
<list>
|
|
8
|
-
<option value="profile:default" />
|
|
9
|
-
</list>
|
|
10
|
-
</option>
|
|
11
|
-
<option name="recentlyUsedRegions">
|
|
12
|
-
<list>
|
|
13
|
-
<option value="eu-west-1" />
|
|
14
|
-
</list>
|
|
15
|
-
</option>
|
|
16
|
-
</component>
|
|
17
|
-
</project>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="db-forest-configuration">
|
|
4
|
-
<data version="2">.
|
|
5
|
-
1:0:a7881559-a76a-49c2-8f5b-665779dab384:_global
|
|
6
|
-
----------------------------------------
|
|
7
|
-
2:1:ff02d9e7-7ec4-4be3-aba0-2600c004238b
|
|
8
|
-
3:1:4eea7568-a9b1-46b9-bd53-ab9887460012
|
|
9
|
-
4:1:4569b737-1959-4dd2-9f00-fb3ae3a858d2
|
|
10
|
-
5:1:b7b936e9-d542-4309-acfc-ca4499481b03
|
|
11
|
-
.</data>
|
|
12
|
-
</component>
|
|
13
|
-
</project>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/8ms-helpers-ts-v1.iml" filepath="$PROJECT_DIR$/.idea/8ms-helpers-ts-v1.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/php.xml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="MessDetectorOptionsConfiguration">
|
|
4
|
-
<option name="transferred" value="true" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="PHPCSFixerOptionsConfiguration">
|
|
7
|
-
<option name="transferred" value="true" />
|
|
8
|
-
</component>
|
|
9
|
-
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
10
|
-
<option name="highlightLevel" value="WARNING" />
|
|
11
|
-
<option name="transferred" value="true" />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="PhpStanOptionsConfiguration">
|
|
14
|
-
<option name="transferred" value="true" />
|
|
15
|
-
</component>
|
|
16
|
-
<component name="PsalmOptionsConfiguration">
|
|
17
|
-
<option name="transferred" value="true" />
|
|
18
|
-
</component>
|
|
19
|
-
</project>
|