repzo-sap-absjo 1.0.5 → 1.0.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.
package/changelog.md CHANGED
@@ -11,6 +11,8 @@
11
11
 
12
12
  ### Fixed
13
13
 
14
+ - [command/measureunit-family] use _.xor instead or _.difference @maramalshen
15
+
14
16
  ### Removed
15
17
 
16
18
  ## [v1.0.0 (2022-04-18)](https://github.com/Repzo/repzo-sap-absjo.git)
@@ -188,7 +188,7 @@ export const sync_measureunit_family = async (commandEvent) => {
188
188
  } else {
189
189
  if (
190
190
  repzo_family.name == body.name &&
191
- !((_k = _.difference(
191
+ !((_k = _.xor(
192
192
  ((_j =
193
193
  repzo_family === null || repzo_family === void 0
194
194
  ? void 0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "repzo-sap-absjo",
3
3
  "description": "repzo SAP ABS jo integration",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "homepage": "",
6
6
  "keywords": [],
7
7
  "author": {
@@ -152,7 +152,7 @@ export const sync_measureunit_family = async (commandEvent: CommandEvent) => {
152
152
  } else {
153
153
  if (
154
154
  repzo_family.name == body.name &&
155
- !_.difference(
155
+ !_.xor(
156
156
  repzo_family?.measureunits?.map((m) => m?.toString()) || [],
157
157
  body?.measureunits || []
158
158
  )?.length