@frontstackdev/cli 0.0.0-canary-20250822144502 → 0.0.0-canary-20250825133217
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.
|
@@ -164,6 +164,9 @@ const client: FrontstackClient = {
|
|
|
164
164
|
* Fetch a block with a key
|
|
165
165
|
*/
|
|
166
166
|
block: async (name, key, config) => {
|
|
167
|
+
if(!(name in endpoints)) {
|
|
168
|
+
throw new Error(`Block ${name} not found`)
|
|
169
|
+
}
|
|
167
170
|
let endpoint: string = `${servers[0].url}${endpoints[name]}`;
|
|
168
171
|
|
|
169
172
|
// Replace '{key}' in the endpoint
|
|
@@ -188,6 +191,10 @@ const client: FrontstackClient = {
|
|
|
188
191
|
* Fetch a listing with parameters and optional query options
|
|
189
192
|
*/
|
|
190
193
|
listing: async (name, parameters, config) => {
|
|
194
|
+
if(!(name in endpoints)) {
|
|
195
|
+
throw new Error(`Listing ${name} not found`)
|
|
196
|
+
}
|
|
197
|
+
|
|
191
198
|
let endpoint: string = `${servers[0].url}${endpoints[name]}`;
|
|
192
199
|
|
|
193
200
|
// Merge listing parameters with query
|
package/dist/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.0-canary-
|
|
1
|
+
0.0.0-canary-20250825133217
|