@caweb/cli 1.3.5 → 1.3.6

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/commands/sync.js +1 -2
  2. package/package.json +1 -1
package/commands/sync.js CHANGED
@@ -14,7 +14,6 @@ import {
14
14
  getTaxonomies,
15
15
  createTaxonomies
16
16
  } from '../lib/index.js';
17
- import { get } from 'http';
18
17
 
19
18
  const errors = [];
20
19
 
@@ -29,7 +28,7 @@ const errors = [];
29
28
  */
30
29
  async function getParentItems( objects, request, tax = 'pages' ){
31
30
  let parentItemsObjects = [];
32
- let objectParentIds = objects.map((obj) => { return obj.parent; });
31
+ let objectParentIds = objects.map((obj) => { return obj.parent; }).filter(n => n);
33
32
 
34
33
  while( objectParentIds.length > 0 ){
35
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/cli",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "CAWebPublishing Command Line Interface.",
5
5
  "exports": "./lib/env.js",
6
6
  "type": "module",