@pittica/google-business-intelligence-csv 1.1.2 → 1.1.4

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/LICENSE CHANGED
@@ -186,7 +186,7 @@ Apache License
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Pittica S.r.l.
189
+ Copyright 2024-2026 Pittica S.r.l.
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -11,7 +11,7 @@ CSV importer for business intelligence for Google Cloud.
11
11
 
12
12
  This project is licensed.
13
13
 
14
- Copyright 2025 **Pittica S.r.l.**.
14
+ Copyright 2024-2026 **Pittica S.r.l.**.
15
15
 
16
16
  - [pittica.com](https://pittica.com)
17
17
  - [info@pittica.com](mailto:info@pittica.com)
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -32,7 +32,8 @@ exports.config = (config = {}) => {
32
32
  dataset: {
33
33
  temporary: {
34
34
  name: "tmp",
35
- prefix: "tmp_csv_"
35
+ prefix: "tmp_csv_",
36
+ location: "us-central1"
36
37
  }
37
38
  },
38
39
  files: {
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -40,7 +40,9 @@ const {
40
40
  */
41
41
  exports.bulk = async (source, temporary, destination) => {
42
42
  const storage = getStorage();
43
- const dataset = await getDataset(config.dataset.temporary.name);
43
+ const dataset = await getDataset(config.dataset.temporary.name, {
44
+ location: config.dataset.temporary.location
45
+ });
44
46
  const bucketSource = await storage.bucket(source);
45
47
  const bucketTemporary = await storage.bucket(temporary);
46
48
  const bucketDestination = await storage.bucket(destination);
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -71,7 +71,9 @@ exports.day = async (date, source, temporary, destination) => {
71
71
  */
72
72
  exports.run = async (day, now, source, temporary, destination) => {
73
73
  const storage = getStorage();
74
- const dataset = await getDataset(config.dataset.temporary.name);
74
+ const dataset = await getDataset(config.dataset.temporary.name, {
75
+ location: config.dataset.temporary.location
76
+ });
75
77
  const bucketSource = await storage.bucket(source);
76
78
  const bucketTemporary = await storage.bucket(temporary);
77
79
  const bucketDestination = await storage.bucket(destination);
@@ -1,4 +1,4 @@
1
- // Copyright 2024-2025 Pittica S.r.l.
1
+ // Copyright 2024-2026 Pittica S.r.l.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -57,7 +57,9 @@ exports.file = async (name, bucketSource, bucketTemporary, bucketDestination, cl
57
57
  const file = copiedFile(response);
58
58
  if (file !== null) {
59
59
  deleteFile(source);
60
- const ds = await getDataset(config.dataset.temporary.name);
60
+ const ds = await getDataset(config.dataset.temporary.name, {
61
+ location: config.dataset.temporary.location
62
+ });
61
63
  const day = getNow();
62
64
  const table = await ds.table(getTemporaryTableName(filedata, config.dataset.temporary.prefix));
63
65
  return await this.run(table, bucketDestination, file, filedata, day, clean);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pittica/google-business-intelligence-csv",
3
3
  "private": false,
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "description": "CSV importer for business intelligence for Google Cloud.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "homepage": "https://github.com/pittica/google-business-intelligence-csv#README.md",
27
27
  "dependencies": {
28
- "@pittica/google-bigquery-helpers": "^1.2.2",
29
- "@pittica/google-business-intelligence-helpers": "^1.12.3",
30
- "@pittica/google-cloud-storage-helpers": "^1.3.3",
31
- "@pittica/logger-helpers": "^1.0.1",
32
- "date-and-time": "^4.1.0"
28
+ "@pittica/google-bigquery-helpers": "^1.2.5",
29
+ "@pittica/google-business-intelligence-helpers": "^1.12.7",
30
+ "@pittica/google-cloud-storage-helpers": "^1.3.5",
31
+ "@pittica/logger-helpers": "^1.0.4",
32
+ "date-and-time": "^4.1.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/cli": "^7.28.3",
36
36
  "mkdirp": "^3.0.1",
37
- "prettier": "^3.6.2",
38
- "rimraf": "^6.0.1"
37
+ "prettier": "^3.7.4",
38
+ "rimraf": "^6.1.2"
39
39
  }
40
40
  }