google-ads-api 23.0.0 → 23.0.1

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.
@@ -82,9 +82,14 @@ function recursiveFieldMaskSearch(data) {
82
82
  const fieldKey = toSnakeCase(key);
83
83
  const value = data[key];
84
84
  if (typeof value === "object" && !Array.isArray(value) && value !== null) {
85
- const children = recursiveFieldMaskSearch(value);
86
- for (const child of children) {
87
- paths.push(`${fieldKey}.${child}`);
85
+ if (Object.keys(value).length === 0) {
86
+ paths.push(fieldKey);
87
+ }
88
+ else {
89
+ const children = recursiveFieldMaskSearch(value);
90
+ for (const child of children) {
91
+ paths.push(`${fieldKey}.${child}`);
92
+ }
88
93
  }
89
94
  continue;
90
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-ads-api",
3
- "version": "23.0.0",
3
+ "version": "23.0.1",
4
4
  "description": "Google Ads API Client Library for Node.js",
5
5
  "repository": "https://github.com/Opteo/google-ads-api",
6
6
  "main": "build/src/index.js",