@hubspot/ui-extensions-dev-server 0.8.52 → 0.8.56

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/dist/lib/ast.js +3 -8
  2. package/package.json +3 -3
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
- // Validate actions parameter
136
- if (!node.arguments[0]) {
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 second argument is an array with at least one element, collect the properties.
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.52",
3
+ "version": "0.8.56",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "uie": "./dist/lib/bin/cli.js"
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
- "@hubspot/app-functions-dev-server": "0.8.50",
30
+ "@hubspot/app-functions-dev-server": "0.8.56",
31
31
  "chalk": "5.4.1",
32
32
  "commander": "13.0.0",
33
33
  "cors": "2.8.5",
@@ -69,5 +69,5 @@
69
69
  "optional": true
70
70
  }
71
71
  },
72
- "gitHead": "49d7e6ce23cf06a54cbe038f11bb1b5e57358254"
72
+ "gitHead": "ffd40cf0cff95bf11cb470142daf13ea320c95f0"
73
73
  }