cozy-client 60.12.1 → 60.12.2

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.
@@ -3126,7 +3126,7 @@ var CozyClient = /*#__PURE__*/function () {
3126
3126
  CozyClient.hooks = CozyClient.hooks || {};
3127
3127
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
3128
3128
 
3129
- CozyClient.version = "60.12.1";
3129
+ CozyClient.version = "60.12.2";
3130
3130
 
3131
3131
  _microee.default.mixin(CozyClient);
3132
3132
 
@@ -227,12 +227,14 @@ var isShortcut = function isShortcut(file) {
227
227
  exports.isShortcut = isShortcut;
228
228
 
229
229
  var getShortcutImgSrc = function getShortcutImgSrc(file) {
230
+ var _file$metadata2, _file$metadata3;
231
+
230
232
  /**
231
233
  * If we don't have iconMimeType, we consider that the icon is a binary svg.
232
234
  * Otherwise we consider that the icon comes from Iconizer api so it is in base64 directly.
233
235
  */
234
- var icon = file.metadata.icon;
235
- var iconMimeType = file.metadata.iconMimeType;
236
+ var icon = file === null || file === void 0 ? void 0 : (_file$metadata2 = file.metadata) === null || _file$metadata2 === void 0 ? void 0 : _file$metadata2.icon;
237
+ var iconMimeType = file === null || file === void 0 ? void 0 : (_file$metadata3 = file.metadata) === null || _file$metadata3 === void 0 ? void 0 : _file$metadata3.iconMimeType;
236
238
 
237
239
  if (!icon) {
238
240
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "60.12.1",
3
+ "version": "60.12.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.node.js",
6
6
  "browser": "dist/index.js",
@@ -74,5 +74,5 @@
74
74
  "react-native-ios11-devicecheck": "^0.0.3"
75
75
  },
76
76
  "sideEffects": false,
77
- "gitHead": "6f9239491ceccf7400f3a256a3f3d054b7ab9fe5"
77
+ "gitHead": "907fa311e677875d470634ee0c62c8b91dc51add"
78
78
  }