ga4-export-fixer 0.1.3-dev.4 → 0.1.3-dev.5

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 +1 -1
  2. package/utils.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ga4-export-fixer",
3
- "version": "0.1.3-dev.4",
3
+ "version": "0.1.3-dev.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
package/utils.js CHANGED
@@ -207,7 +207,8 @@ const isDataformTableReferenceObject = (obj) => {
207
207
  return obj &&
208
208
  typeof obj === 'object' &&
209
209
  Object.hasOwn(obj, 'name') &&
210
- Object.hasOwn(obj, 'dataset');
210
+ // Dataform transforms the schema key to dataset key when using ctx.ref()
211
+ (Object.hasOwn(obj, 'dataset') || Object.hasOwn(obj, 'schema'));
211
212
  };
212
213
 
213
214