@nordicsemiconductor/pc-nrfconnect-shared 84.0.0 → 85.0.0

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
@@ -7,6 +7,12 @@ This project does _not_ adhere to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
8
8
  every new version is a new major version.
9
9
 
10
+ ## 85 - 2023-08-14
11
+
12
+ ### Fixed
13
+
14
+ - `getDisplayedDeviceName` could return an empty string.
15
+
10
16
  ## 84 - 2023-08-14
11
17
 
12
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "84.0.0",
3
+ "version": "85.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -224,7 +224,9 @@ export const deviceInfo = (device: Device): DeviceInfo =>
224
224
  const hasNickname = (
225
225
  device: Device
226
226
  ): device is WrappedDevice & Required<Pick<WrappedDevice, 'nickname'>> =>
227
- 'nickname' in device && device.nickname !== undefined;
227
+ 'nickname' in device &&
228
+ device.nickname !== undefined &&
229
+ device.nickname.length > 0;
228
230
 
229
231
  export const displayedDeviceName = (
230
232
  device: Device,
@@ -1 +1 @@
1
- {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA8BA,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAEpF,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAW9D,KAAK,MAAM,GAAG,WAAW,GAAG,aAAa,CAAC;AAgB1C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,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