@8ms/helpers 1.40.3 → 1.40.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.
|
@@ -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 = getClient
|
|
15
|
-
let storageClient = getClient({ projectId: file.projectId });
|
|
14
|
+
let bigqueryClient = getClient({ projectId: table.projectId });
|
|
15
|
+
let storageClient = 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.40.
|
|
4
|
+
"version": "1.40.6",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
|
|
@@ -20,14 +20,117 @@
|
|
|
20
20
|
"@date-fns/utc": "2.1.0",
|
|
21
21
|
"crypto-js": "4.2.0",
|
|
22
22
|
"date-fns": "4.1.0",
|
|
23
|
-
"fs-extra": "
|
|
24
|
-
"ky": "
|
|
25
|
-
"lodash": "4.
|
|
23
|
+
"fs-extra": "11.3.4",
|
|
24
|
+
"ky": "2.0.0",
|
|
25
|
+
"lodash": "4.18.1",
|
|
26
26
|
"zod": "3.23.8"
|
|
27
27
|
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@aws-sdk/client-ec2": "^3.0.0",
|
|
30
|
+
"@aws-sdk/client-ecs": "^3.0.0",
|
|
31
|
+
"@aws-sdk/client-glue": "^3.0.0",
|
|
32
|
+
"@aws-sdk/client-lambda": "^3.0.0",
|
|
33
|
+
"@aws-sdk/client-s3": "^3.0.0",
|
|
34
|
+
"@aws-sdk/client-ses": "^3.0.0",
|
|
35
|
+
"@aws-sdk/client-sqs": "^3.0.0",
|
|
36
|
+
"@aws-sdk/client-ssm": "^3.0.0",
|
|
37
|
+
"@aws-sdk/lib-storage": "^3.0.0",
|
|
38
|
+
"@aws-sdk/s3-request-presigner": "^3.0.0",
|
|
39
|
+
"@google-cloud/bigquery": "^8.0.0",
|
|
40
|
+
"@google-cloud/common": "^6.0.0",
|
|
41
|
+
"@google-cloud/storage": "^7.0.0",
|
|
42
|
+
"@googleapis/sheets": "^13.0.0",
|
|
43
|
+
"@planetscale/database": "1.19.0",
|
|
44
|
+
"@prisma/adapter-mariadb": "^5.0.0",
|
|
45
|
+
"@prisma/adapter-pg": "^5.0.0",
|
|
46
|
+
"@prisma/adapter-planetscale": "^5.0.0",
|
|
47
|
+
"@prisma/client": "^5.0.0",
|
|
48
|
+
"google-ads-api": "^23.0.0",
|
|
49
|
+
"googleapis-common": "^8.0.0",
|
|
50
|
+
"stream-chain": "^3.0.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependenciesMeta": {
|
|
53
|
+
"@aws-sdk/client-ec2": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"@aws-sdk/client-ecs": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"@aws-sdk/client-glue": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"@aws-sdk/client-lambda": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"@aws-sdk/client-s3": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"@aws-sdk/client-ses": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"@aws-sdk/client-sqs": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"@aws-sdk/client-ssm": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"@aws-sdk/lib-storage": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"@aws-sdk/s3-request-presigner": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"@google-cloud/bigquery": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"@google-cloud/common": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"@google-cloud/storage": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"@googleapis/sheets": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"@planetscale/database": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@prisma/adapter-mariadb": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"@prisma/adapter-pg": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"@prisma/adapter-planetscale": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"@prisma/client": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"google-ads-api": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"googleapis-common": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"next": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"react": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"stream-chain": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
125
|
+
"swr": {
|
|
126
|
+
"optional": true
|
|
127
|
+
}
|
|
128
|
+
},
|
|
28
129
|
"devDependencies": {
|
|
29
130
|
"@aws-sdk/client-ec2": "3.701.0",
|
|
30
131
|
"@aws-sdk/client-ecs": "3.699.0",
|
|
132
|
+
"@aws-sdk/client-glue": "3.699.0",
|
|
133
|
+
"@aws-sdk/client-lambda": "3.699.0",
|
|
31
134
|
"@aws-sdk/client-s3": "3.701.0",
|
|
32
135
|
"@aws-sdk/client-ses": "3.699.0",
|
|
33
136
|
"@aws-sdk/client-sqs": "3.699.0",
|
|
@@ -39,6 +142,7 @@
|
|
|
39
142
|
"@babel/preset-typescript": "7.26.0",
|
|
40
143
|
"@google-cloud/bigquery": "7.9.1",
|
|
41
144
|
"@google-cloud/storage": "7.14.0",
|
|
145
|
+
"@googleapis/sheets": "13.0.1",
|
|
42
146
|
"@planetscale/database": "1.19.0",
|
|
43
147
|
"@prisma/adapter-planetscale": "5.22.0",
|
|
44
148
|
"@prisma/client": "5.22.0",
|
|
@@ -47,6 +151,7 @@
|
|
|
47
151
|
"@types/lodash": "4.17.13",
|
|
48
152
|
"@types/node": "20.14.12",
|
|
49
153
|
"babel-jest": "29.7.0",
|
|
154
|
+
"google-ads-api": "^23.0.0",
|
|
50
155
|
"jest": "29.7.0",
|
|
51
156
|
"node-fetch": "3.3.2",
|
|
52
157
|
"stream-chain": "3.3.2",
|
|
@@ -55,7 +160,8 @@
|
|
|
55
160
|
"ts-node": "10.9.2",
|
|
56
161
|
"tsdown": "^0.21.7",
|
|
57
162
|
"tslib": "2.8.1",
|
|
58
|
-
"typescript": "5.7.2"
|
|
163
|
+
"typescript": "5.7.2",
|
|
164
|
+
"zlib": "^1.0.5"
|
|
59
165
|
},
|
|
60
166
|
"exports": {
|
|
61
167
|
"./api": "./dist/api/index.mjs",
|