cozy-client 38.11.0 → 38.11.1

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.
@@ -2677,7 +2677,7 @@ var CozyClient = /*#__PURE__*/function () {
2677
2677
  CozyClient.hooks = CozyClient.hooks || {};
2678
2678
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
2679
2679
 
2680
- CozyClient.version = "38.11.0";
2680
+ CozyClient.version = "38.11.1";
2681
2681
 
2682
2682
  _microee.default.mixin(CozyClient);
2683
2683
 
@@ -186,18 +186,16 @@ var HasManyFiles = /*#__PURE__*/function (_HasMany) {
186
186
  switch (_context3.prev = _context3.next) {
187
187
  case 0:
188
188
  ids = Array.isArray(idsArg) ? idsArg : [idsArg];
189
+ this.addTargetRelationships(ids);
189
190
  relations = ids.map(function (id) {
190
191
  return {
191
192
  _id: id,
192
193
  _type: _this2.doctype
193
194
  };
194
195
  });
195
- _context3.next = 4;
196
+ _context3.next = 5;
196
197
  return this.mutate(this.addReferences(relations));
197
198
 
198
- case 4:
199
- this.addTargetRelationships(ids);
200
-
201
199
  case 5:
202
200
  case "end":
203
201
  return _context3.stop();
@@ -224,18 +222,16 @@ var HasManyFiles = /*#__PURE__*/function (_HasMany) {
224
222
  switch (_context4.prev = _context4.next) {
225
223
  case 0:
226
224
  ids = Array.isArray(idsArg) ? idsArg : [idsArg];
225
+ this.removeTargetRelationships(idsArg);
227
226
  references = ids.map(function (id) {
228
227
  return {
229
228
  _id: id,
230
229
  _type: _this3.doctype
231
230
  };
232
231
  });
233
- _context4.next = 4;
232
+ _context4.next = 5;
234
233
  return this.mutate(this.removeReferences(references));
235
234
 
236
- case 4:
237
- this.removeTargetRelationships(ids);
238
-
239
235
  case 5:
240
236
  case "end":
241
237
  return _context4.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "38.11.0",
3
+ "version": "38.11.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -73,5 +73,5 @@
73
73
  "react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
74
74
  },
75
75
  "sideEffects": false,
76
- "gitHead": "1910adfdf522472377df2ca8096d89aca0d8437d"
76
+ "gitHead": "fb1e1e8e207406a8c88193eab81d4a3120c0cc30"
77
77
  }