@frontstackdev/cli 0.0.0-canary-20250205103653 → 0.0.0-canary-20250205151844

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.
@@ -101,13 +101,13 @@ const client = {
101
101
  let endpoint: string = `${servers[0].url}${endpoints[blockName]}`;
102
102
 
103
103
  // If payload contains `key` replace '{key}' in the endpoint
104
- if(blockParameters.key) {
105
- endpoint = endpoint.replace('{key}', blockParameters.key)
106
- delete blockParameters.key
104
+ if('key' in blockParameters) {
105
+ endpoint = endpoint.replace('{key}', (blockParameters as any).key)
106
+ delete (blockParameters as any).key
107
107
  }
108
108
 
109
109
  // Merge block parameters with query
110
- let payload = { param: {...blockParameters}, ...config?.query }
110
+ let payload = config && 'query' in config ? { param: {...blockParameters}, ...config.query } : { param: {...blockParameters} }
111
111
 
112
112
  let headers: Record<string, string> = {}
113
113
 
package/dist/version CHANGED
@@ -1 +1 @@
1
- 0.0.0-canary-20250205103653
1
+ 0.0.0-canary-20250205151844
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontstackdev/cli",
3
- "version": "0.0.0-canary-20250205103653",
3
+ "version": "0.0.0-canary-20250205151844",
4
4
  "description": "frontstack CLI for managing projects",
5
5
  "type": "module",
6
6
  "module": "dist/frontstack.mjs",