@extrahorizon/exh-cli 1.13.6-dev-214-74dcdb7 → 1.13.6-dev-216-103699d

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/CHANGELOG.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Extra Horizon CLI changelog
2
2
 
3
3
  ### v1.13.6
4
-
4
+ * Fixed a bug in `exh data schemas sync` where permission mode arrays were not being correctly compared
5
+ * Updated the ExH SDK to `8.13.0` to fix a security warning from `form-data` (vulnerable code was not in use)
5
6
 
6
7
  ### v1.13.5
7
8
  * Updated the ExH SDK to `8.12.1` to fix a security warning from `qs` (vulnerable code was not in use)
@@ -154,7 +154,17 @@ _SyncSchema_instances = new WeakSet(), _SyncSchema_syncRootAttributes = async fu
154
154
  function deepDiff(object, other) {
155
155
  return _.transform(object, (result, value, key) => {
156
156
  if (!_.isEqual(value, other[key])) {
157
- result[key] = _.isObject(value) && _.isObject(other[key]) ? deepDiff(value, other[key]) : value;
157
+ if (_.isObject(value) && _.isObject(other[key])) {
158
+ if ((_.isArray(value) && !_.isObject(value[0])) || (_.isArray(other[key]) && !_.isObject(other[key][0]))) {
159
+ result[key] = value;
160
+ }
161
+ else {
162
+ result[key] = deepDiff(value, other[key]);
163
+ }
164
+ }
165
+ else {
166
+ result[key] = value;
167
+ }
158
168
  }
159
169
  });
160
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/exh-cli",
3
- "version": "1.13.6-dev-214-74dcdb7",
3
+ "version": "1.13.6-dev-216-103699d",
4
4
  "main": "build/index.js",
5
5
  "exports": "./build/index.js",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "typescript": "4.5.5"
42
42
  },
43
43
  "dependencies": {
44
- "@extrahorizon/javascript-sdk": "8.12.1",
44
+ "@extrahorizon/javascript-sdk": "8.13.0",
45
45
  "ajv": "8.18.0",
46
46
  "archiver": "^7.0.1",
47
47
  "chalk": "^4.0.0",