cozy-client 57.7.0 → 57.7.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.
@@ -3112,7 +3112,7 @@ var CozyClient = /*#__PURE__*/function () {
3112
3112
  CozyClient.hooks = CozyClient.hooks || {};
3113
3113
  CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
3114
3114
 
3115
- CozyClient.version = "57.7.0";
3115
+ CozyClient.version = "57.7.1";
3116
3116
 
3117
3117
  _microee.default.mixin(CozyClient);
3118
3118
 
@@ -105,7 +105,7 @@ var getAppDisplayName = function getAppDisplayName(app, lang) {
105
105
  var baseName = (0, _get.default)(app, 'name');
106
106
  var translatedName = (0, _get.default)(app, ['locales', lang, 'name'], baseName);
107
107
  var translatedPrefix = (0, _get.default)(app, ['locales', lang, 'name_prefix'], basePrefix);
108
- return translatedPrefix && translatedPrefix.toLowerCase() !== 'cozy' ? "".concat(translatedPrefix, " ").concat(translatedName) : translatedName;
108
+ return translatedPrefix && translatedPrefix.toLowerCase() !== 'cozy' && translatedPrefix.toLowerCase() !== 'twake' ? "".concat(translatedPrefix, " ").concat(translatedName) : translatedName;
109
109
  };
110
110
  /**
111
111
  * sortApplicationsList - Sort the apps based on the slugs in parameters. Apps listed in the slugsOrder array will be added first
@@ -23,6 +23,12 @@ describe('applications model', () => {
23
23
  expect(getAppDisplayName({ name_prefix: 'Cozy', name: 'Cozy' })).toBe(
24
24
  'Cozy'
25
25
  )
26
+ expect(getAppDisplayName({ name_prefix: 'Twake', name: 'Cloud' })).toBe(
27
+ 'Cloud'
28
+ )
29
+ expect(getAppDisplayName({ name_prefix: 'Twake', name: 'Twake' })).toBe(
30
+ 'Twake'
31
+ )
26
32
  })
27
33
 
28
34
  it('should support translations', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-client",
3
- "version": "57.7.0",
3
+ "version": "57.7.1",
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": "4e22dfcf7f2549b631c9777126da3ffad690ca93"
77
+ "gitHead": "6be3e7f973341b52f8394ba6e5adbba672e32dd6"
78
78
  }