@nordicsemiconductor/pc-nrfconnect-shared 95.0.0 → 96.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 +10 -0
- package/coverage/cobertura-coverage.xml +2 -2
- package/nrfutil/index.ts +1 -0
- package/nrfutil/sandbox.ts +2 -2
- package/package.json +1 -1
- package/typings/generated/nrfutil/device/device.d.ts +1 -1
- package/typings/generated/nrfutil/device/list.d.ts +1 -1
- package/typings/generated/nrfutil/index.d.ts +1 -1
- package/typings/generated/nrfutil/index.d.ts.map +1 -1
- package/typings/generated/nrfutil/sandbox.d.ts +1 -1
- package/typings/generated/nrfutil/sandbox.d.ts.map +1 -1
package/Changelog.md
CHANGED
|
@@ -7,6 +7,16 @@ 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
|
+
## 96 - 2023-08-25
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Exported type `NrfutilDeviceWithSerialnumber`
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Nrfutil device list `stop` callback is now an optional parameter
|
|
19
|
+
|
|
10
20
|
## 95 - 2023-08-25
|
|
11
21
|
|
|
12
22
|
### Fixed
|
|
@@ -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="2973" lines-covered="1647" line-rate="0.5539000000000001" branches-valid="
|
|
3
|
+
<coverage lines-valid="2973" lines-covered="1647" line-rate="0.5539000000000001" branches-valid="1463" branches-covered="381" branch-rate="0.26039999999999996" timestamp="1692973224183" complexity="0" version="0.1">
|
|
4
4
|
<sources>
|
|
5
5
|
<source>/home/vsts/work/1/s</source>
|
|
6
6
|
</sources>
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
<line number="393" hits="0" branch="false"/>
|
|
855
855
|
<line number="394" hits="0" branch="false"/>
|
|
856
856
|
<line number="397" hits="0" branch="false"/>
|
|
857
|
-
<line number="399" hits="0" branch="
|
|
857
|
+
<line number="399" hits="0" branch="true" condition-coverage="0% (0/1)"/>
|
|
858
858
|
<line number="400" hits="0" branch="false"/>
|
|
859
859
|
<line number="402" hits="0" branch="false"/>
|
|
860
860
|
<line number="404" hits="0" branch="false"/>
|
package/nrfutil/index.ts
CHANGED
package/nrfutil/sandbox.ts
CHANGED
|
@@ -395,8 +395,8 @@ export class NrfutilSandbox {
|
|
|
395
395
|
});
|
|
396
396
|
|
|
397
397
|
return {
|
|
398
|
-
stop: (handler
|
|
399
|
-
closedHandlers.push(handler);
|
|
398
|
+
stop: (handler?: () => void) => {
|
|
399
|
+
if (handler) closedHandlers.push(handler);
|
|
400
400
|
controller.abort();
|
|
401
401
|
},
|
|
402
402
|
isRunning: () => running,
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ declare const _default: {
|
|
|
15
15
|
onDeviceArrived: (device: import("./common").NrfutilDeviceWithSerialnumber) => void;
|
|
16
16
|
onDeviceLeft: (id: number) => void;
|
|
17
17
|
} | undefined) => Promise<{
|
|
18
|
-
stop: (handler
|
|
18
|
+
stop: (handler?: (() => void) | undefined) => void;
|
|
19
19
|
isRunning: () => boolean;
|
|
20
20
|
onClosed: (handler: (error?: Error | undefined) => void) => () => ((error?: Error | undefined) => void)[];
|
|
21
21
|
}>;
|
|
@@ -11,7 +11,7 @@ declare const _default: (traits: DeviceTraits, onEnumerated: (devices: NrfutilDe
|
|
|
11
11
|
onDeviceArrived: (device: NrfutilDeviceWithSerialnumber) => void;
|
|
12
12
|
onDeviceLeft: (id: number) => void;
|
|
13
13
|
} | undefined) => Promise<{
|
|
14
|
-
stop: (handler
|
|
14
|
+
stop: (handler?: (() => void) | undefined) => void;
|
|
15
15
|
isRunning: () => boolean;
|
|
16
16
|
onClosed: (handler: (error?: Error | undefined) => void) => () => ((error?: Error | undefined) => void)[];
|
|
17
17
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as NrfutilDeviceLib } from './device/device';
|
|
2
|
-
export type { DeviceCore, DeviceTraits, ProtectionStatus, SerialPort as DeviceSerialPort, NrfutilDevice, } from './device/common';
|
|
2
|
+
export type { DeviceCore, DeviceTraits, ProtectionStatus, SerialPort as DeviceSerialPort, NrfutilDevice, NrfutilDeviceWithSerialnumber, } from './device/common';
|
|
3
3
|
export type { DeviceCoreInfo } from './device/getCoreInfo';
|
|
4
4
|
export type { ImageType } from './device/getFwInfo';
|
|
5
5
|
export { default as prepareSandbox } from './sandbox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../nrfutil/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,YAAY,EACR,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,IAAI,gBAAgB,EAC9B,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../nrfutil/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,YAAY,EACR,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,IAAI,gBAAgB,EAC9B,aAAa,EACb,6BAA6B,GAChC,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAChE,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACvE,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -22,7 +22,7 @@ export declare class NrfutilSandbox {
|
|
|
22
22
|
}>;
|
|
23
23
|
private execCommand;
|
|
24
24
|
execBackgroundSubcommand: <Result>(command: string, args: string[], processors: BackgroundTask<Result>) => {
|
|
25
|
-
stop: (handler
|
|
25
|
+
stop: (handler?: () => void) => void;
|
|
26
26
|
isRunning: () => boolean;
|
|
27
27
|
onClosed: (handler: (error?: Error) => void) => () => ((error?: Error) => void)[];
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../nrfutil/sandbox.ts"],"names":[],"mappings":"AAcA,OAAO,EACH,cAAc,EACd,QAAQ,EACR,UAAU,EACV,aAAa,EAGb,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,OAAO,EACV,MAAM,gBAAgB,CAAC;AAcxB,QAAA,MAAM,UAAU,YAAa,MAAM,UAAU,MAAM,WAAW,MAAM;;;CAqBnE,CAAC;AAgDF,qBAAa,cAAc;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC,EAAE,CAAM;IAC1D,QAAQ,EAAE,QAAQ,CAAU;IAC5B,GAAG,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;gBAEvB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAQ5D,OAAO,CAAC,kBAAkB,CAOxB;IAEK,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