@nordicsemiconductor/pc-nrfconnect-shared 236.0.0 → 237.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,13 @@ 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
|
+
## 237.0.0 - 2025-11-12
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The logger now also supports being used in the renderer process of the
|
|
15
|
+
launcher.
|
|
16
|
+
|
|
10
17
|
## 236.0.0 - 2025-11-07
|
|
11
18
|
|
|
12
19
|
### Changed
|
package/package.json
CHANGED
package/release_notes.md
CHANGED
package/src/logging/index.ts
CHANGED
|
@@ -9,8 +9,9 @@ import { SPLAT } from 'triple-beam';
|
|
|
9
9
|
import { createLogger, format, LogEntry, Logger, transports } from 'winston';
|
|
10
10
|
import Transport from 'winston-transport';
|
|
11
11
|
|
|
12
|
-
import { getAppLogDir } from '../utils/appDirs';
|
|
12
|
+
import { getAppLogDir, getUserDataDir } from '../utils/appDirs';
|
|
13
13
|
import { openFile, openFileLocation } from '../utils/open';
|
|
14
|
+
import { isLauncher } from '../utils/packageJson';
|
|
14
15
|
import AppTransport from './appTransport';
|
|
15
16
|
import describeError from './describeError';
|
|
16
17
|
import createLogBuffer from './logBuffer';
|
|
@@ -27,7 +28,11 @@ const isConsoleAvailable = (() => {
|
|
|
27
28
|
})();
|
|
28
29
|
|
|
29
30
|
const filePrefix = new Date().toISOString().replace(/:/gi, '_');
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
const logFilePath = () =>
|
|
33
|
+
isLauncher()
|
|
34
|
+
? path.join(getUserDataDir(), 'logs', 'renderer.log')
|
|
35
|
+
: path.join(getAppLogDir(), `${filePrefix}-log.txt`);
|
|
31
36
|
|
|
32
37
|
const logBuffer = createLogBuffer();
|
|
33
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/logging/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAwB,QAAQ,EAAE,MAAM,EAAc,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/logging/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAwB,QAAQ,EAAE,MAAM,EAAc,MAAM,SAAS,CAAC;AAyC7E,UAAU,YAAa,SAAQ,MAAM;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,QAAQ,EAAE,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;AAED,QAAA,MAAM,MAAM,EAeN,YAAY,CAAC;AAoCnB,eAAe,MAAM,CAAC"}
|