ga4-export-fixer 0.4.4 → 0.4.5-dev.0

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.
Files changed (2) hide show
  1. package/package.json +3 -1
  2. package/preOperations.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ga4-export-fixer",
3
- "version": "0.4.4",
3
+ "version": "0.4.5-dev.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -22,6 +22,7 @@
22
22
  "test:preops": "node tests/preOperations.test.js",
23
23
  "test:events": "node tests/ga4EventsEnhanced.test.js",
24
24
  "test:merge": "node tests/mergeSQLConfigurations.test.js",
25
+ "test:integration": "node tests/integration/integration.test.js",
25
26
  "readme": "node scripts/updateReadme.js",
26
27
  "prepublishOnly": "node scripts/updateReadme.js"
27
28
  },
@@ -37,6 +38,7 @@
37
38
  "homepage": "https://github.com/tanelytics/ga4-export-fixer#readme",
38
39
  "devDependencies": {
39
40
  "@google-cloud/bigquery": "^8.1.1",
41
+ "@google-cloud/dataform": "^2.2.1",
40
42
  "dotenv": "^17.3.1"
41
43
  }
42
44
  }
package/preOperations.js CHANGED
@@ -245,7 +245,11 @@ ${p.value}`;
245
245
  }
246
246
  }).join('\n\n');
247
247
 
248
- // set the variables in pre operations
248
+ // return empty string if no pre-operations are needed
249
+ if (!preOperationsSQL) {
250
+ return '';
251
+ }
252
+
249
253
  return `
250
254
  /*
251
255
  Set the pre-operations for the query, required for managing incremental refreshes.