@hubspot/ui-extensions-dev-server 0.8.52 → 0.8.53
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/dist/lib/ast.js +3 -8
- package/package.json +2 -2
package/dist/lib/ast.js
CHANGED
|
@@ -132,15 +132,10 @@ function _collectDataDependencies(node, output, logger) {
|
|
|
132
132
|
// Then we handle each hook individually, as the usages and tracking format are different.
|
|
133
133
|
if (hookName === 'useCrmProperties') {
|
|
134
134
|
const propertyType = 'CrmRecordProperties';
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
logger.warn('useCrmProperties called without actions parameter');
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
// Get the second argument, the properties array
|
|
141
|
-
const propertiesNode = node.arguments[1];
|
|
135
|
+
// Get the first argument, the properties array
|
|
136
|
+
const propertiesNode = node.arguments[0];
|
|
142
137
|
const requestedProperties = [];
|
|
143
|
-
// If the
|
|
138
|
+
// If the first argument is an array with at least one element, collect the properties.
|
|
144
139
|
if (propertiesNode &&
|
|
145
140
|
propertiesNode.type === 'ArrayExpression' &&
|
|
146
141
|
propertiesNode.elements.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions-dev-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.53",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": {
|
|
6
6
|
"uie": "./dist/lib/bin/cli.js"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"optional": true
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "2bad593e0b073687424cd1d365f68849fb448940"
|
|
73
73
|
}
|