@nordicsemiconductor/pc-nrfconnect-shared 118.0.0 → 119.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
+ ## 119 - 2023-10-13
11
+
12
+ ### Changed
13
+
14
+ - Remove default 3000ms timeout from `nrfutil device list`
15
+
10
16
  ## 118 - 2023-10-13
11
17
 
12
18
  ### Added
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="3210" lines-covered="1788" line-rate="0.557" branches-valid="1531" branches-covered="448" branch-rate="0.2926" timestamp="1697198852924" complexity="0" version="0.1">
3
+ <coverage lines-valid="3211" lines-covered="1788" line-rate="0.5568" branches-valid="1531" branches-covered="448" branch-rate="0.2926" timestamp="1697204097167" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/vsts/work/1/s</source>
6
6
  </sources>
@@ -932,7 +932,7 @@
932
932
  </class>
933
933
  </classes>
934
934
  </package>
935
- <package name="nrfutil.device" line-rate="0.24539999999999998" branch-rate="0">
935
+ <package name="nrfutil.device" line-rate="0.2446" branch-rate="0">
936
936
  <classes>
937
937
  <class name="batch.ts" filename="nrfutil/device/batch.ts" line-rate="0.07139999999999999" branch-rate="0">
938
938
  <methods>
@@ -1366,7 +1366,7 @@
1366
1366
  <line number="40" hits="0" branch="false"/>
1367
1367
  </lines>
1368
1368
  </class>
1369
- <class name="list.ts" filename="nrfutil/device/list.ts" line-rate="0.1666" branch-rate="0">
1369
+ <class name="list.ts" filename="nrfutil/device/list.ts" line-rate="0.1612" branch-rate="0">
1370
1370
  <methods>
1371
1371
  <method name="(anonymous_2)" hits="0" signature="()V">
1372
1372
  <lines>
@@ -1385,22 +1385,22 @@
1385
1385
  </method>
1386
1386
  <method name="(anonymous_5)" hits="0" signature="()V">
1387
1387
  <lines>
1388
- <line number="52" hits="0"/>
1388
+ <line number="54" hits="0"/>
1389
1389
  </lines>
1390
1390
  </method>
1391
1391
  <method name="(anonymous_6)" hits="0" signature="()V">
1392
1392
  <lines>
1393
- <line number="55" hits="0"/>
1393
+ <line number="57" hits="0"/>
1394
1394
  </lines>
1395
1395
  </method>
1396
1396
  <method name="(anonymous_7)" hits="0" signature="()V">
1397
1397
  <lines>
1398
- <line number="56" hits="0"/>
1398
+ <line number="58" hits="0"/>
1399
1399
  </lines>
1400
1400
  </method>
1401
1401
  <method name="(anonymous_8)" hits="0" signature="()V">
1402
1402
  <lines>
1403
- <line number="66" hits="0"/>
1403
+ <line number="68" hits="0"/>
1404
1404
  </lines>
1405
1405
  </method>
1406
1406
  </methods>
@@ -1415,26 +1415,27 @@
1415
1415
  <line number="43" hits="0" branch="false"/>
1416
1416
  <line number="45" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1417
1417
  <line number="46" hits="0" branch="false"/>
1418
- <line number="49" hits="0" branch="false"/>
1418
+ <line number="49" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1419
1419
  <line number="50" hits="0" branch="false"/>
1420
- <line number="52" hits="0" branch="false"/>
1421
- <line number="53" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1420
+ <line number="51" hits="0" branch="false"/>
1422
1421
  <line number="54" hits="0" branch="false"/>
1423
- <line number="55" hits="0" branch="false"/>
1422
+ <line number="55" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1423
+ <line number="56" hits="0" branch="false"/>
1424
1424
  <line number="57" hits="0" branch="false"/>
1425
- <line number="64" hits="0" branch="false"/>
1425
+ <line number="59" hits="0" branch="false"/>
1426
1426
  <line number="66" hits="0" branch="false"/>
1427
- <line number="70" hits="0" branch="false"/>
1428
- <line number="73" hits="0" branch="true" condition-coverage="0% (0/3)"/>
1429
- <line number="74" hits="0" branch="false"/>
1430
- <line number="77" hits="0" branch="true" condition-coverage="0% (0/4)"/>
1431
- <line number="78" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1432
- <line number="79" hits="0" branch="false"/>
1433
- <line number="83" hits="0" branch="false"/>
1434
- <line number="89" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1435
- <line number="90" hits="0" branch="false"/>
1436
- <line number="94" hits="0" branch="false"/>
1437
- <line number="95" hits="0" branch="false"/>
1427
+ <line number="68" hits="0" branch="false"/>
1428
+ <line number="72" hits="0" branch="false"/>
1429
+ <line number="75" hits="0" branch="true" condition-coverage="0% (0/3)"/>
1430
+ <line number="76" hits="0" branch="false"/>
1431
+ <line number="79" hits="0" branch="true" condition-coverage="0% (0/4)"/>
1432
+ <line number="80" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1433
+ <line number="81" hits="0" branch="false"/>
1434
+ <line number="85" hits="0" branch="false"/>
1435
+ <line number="91" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1436
+ <line number="92" hits="0" branch="false"/>
1437
+ <line number="96" hits="0" branch="false"/>
1438
+ <line number="97" hits="0" branch="false"/>
1438
1439
  </lines>
1439
1440
  </class>
1440
1441
  <class name="program.ts" filename="nrfutil/device/program.ts" line-rate="0.2407" branch-rate="0">
@@ -38,7 +38,7 @@ export default async (
38
38
  onDeviceArrived: (device: NrfutilDeviceWithSerialnumber) => void;
39
39
  onDeviceLeft: (id: number) => void;
40
40
  },
41
- timeout = 3000
41
+ timeout?: number
42
42
  ) => {
43
43
  const args: string[] = deviceTraitsToArgs(traits);
44
44
 
@@ -46,8 +46,10 @@ export default async (
46
46
  args.push('--hotplug');
47
47
  }
48
48
 
49
- args.push('--timeout-ms');
50
- args.push(timeout.toString());
49
+ if (timeout !== undefined) {
50
+ args.push('--timeout-ms');
51
+ args.push(timeout.toString());
52
+ }
51
53
 
52
54
  const onData = (data: HotplugEvent | ListEvent) => {
53
55
  if (isListEvent(data)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "118.0.0",
3
+ "version": "119.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@ declare const _default: {
14
14
  list: (traits: import("./common").DeviceTraits, onEnumerated: (devices: import("./common").NrfutilDeviceWithSerialnumber[]) => void, onError: (error: Error) => void, onHotplugEvent?: {
15
15
  onDeviceArrived: (device: import("./common").NrfutilDeviceWithSerialnumber) => void;
16
16
  onDeviceLeft: (id: number) => void;
17
- } | undefined, timeout?: number) => Promise<{
17
+ } | undefined, timeout?: number | undefined) => Promise<{
18
18
  stop: (handler?: (() => void) | undefined) => void;
19
19
  isRunning: () => boolean;
20
20
  onClosed: (handler: (error?: Error | undefined) => void) => () => ((error?: Error | undefined) => void)[];
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/list.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,YAAY,EAGZ,aAAa,EACb,6BAA6B,EAChC,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;iCAUW,YAAY,0BACI,6BAA6B,EAAE,KAAK,IAAI,mBAC/C,KAAK,KAAK,IAAI;8BAED,6BAA6B,KAAK,IAAI;uBAC7C,MAAM,KAAK,IAAI;;;;;;AAN1C,wBAkEE"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../nrfutil/device/list.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,YAAY,EAGZ,aAAa,EACb,6BAA6B,EAChC,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;iCAUW,YAAY,0BACI,6BAA6B,EAAE,KAAK,IAAI,mBAC/C,KAAK,KAAK,IAAI;8BAED,6BAA6B,KAAK,IAAI;uBAC7C,MAAM,KAAK,IAAI;yBAE5B,MAAM;;;;;AARpB,wBAoEE"}