@constructor-io/constructorio-node 3.8.6 → 3.8.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-node",
3
- "version": "3.8.6",
3
+ "version": "3.8.7",
4
4
  "description": "Constructor.io Node.js client",
5
5
  "main": "src/constructorio.js",
6
6
  "scripts": {
@@ -497,7 +497,11 @@ class Catalog {
497
497
  }
498
498
 
499
499
  try {
500
- requestUrl = createCatalogUrl(`item/${parameters.id}`, this.options, queryParams);
500
+ if (parameters.id) {
501
+ requestUrl = createCatalogUrl(`item/${parameters.id}`, this.options, queryParams);
502
+ } else {
503
+ requestUrl = createCatalogUrl('item', this.options, queryParams);
504
+ }
501
505
  } catch (e) {
502
506
  return Promise.reject(e);
503
507
  }