@livedesk/client 0.1.239 → 0.1.241

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.
@@ -1,27 +1,27 @@
1
- import assert from 'node:assert/strict';
2
- import { readFileSync } from 'node:fs';
3
- import test from 'node:test';
4
- import { formatClientVersionBanner, readClientPackageVersion } from '../bin/client-version.js';
5
-
6
- const packageInfo = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
7
-
8
- test('reads the version shipped in the @livedesk/client npm package', () => {
9
- assert.equal(readClientPackageVersion(), packageInfo.version);
10
- });
11
-
12
- test('prints the public launcher version in the user-facing banner', () => {
13
- assert.equal(
14
- formatClientVersionBanner({
15
- LIVEDESK_NPM_LAUNCHER_NAME: 'livedesk',
16
- LIVEDESK_NPM_LAUNCHER_VERSION: '9.8.7'
17
- }),
18
- '[LiveDesk Client] livedesk@9.8.7'
19
- );
20
- });
21
-
22
- test('uses the product name for direct client launches', () => {
23
- assert.equal(
24
- formatClientVersionBanner({}),
25
- `[LiveDesk Client] livedesk@${packageInfo.version}`
26
- );
27
- });
1
+ import assert from 'node:assert/strict';
2
+ import { readFileSync } from 'node:fs';
3
+ import test from 'node:test';
4
+ import { formatClientVersionBanner, readClientPackageVersion } from '../bin/client-version.js';
5
+
6
+ const packageInfo = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
7
+
8
+ test('reads the version shipped in the @livedesk/client npm package', () => {
9
+ assert.equal(readClientPackageVersion(), packageInfo.version);
10
+ });
11
+
12
+ test('prints the public launcher version in the user-facing banner', () => {
13
+ assert.equal(
14
+ formatClientVersionBanner({
15
+ LIVEDESK_NPM_LAUNCHER_NAME: 'livedesk',
16
+ LIVEDESK_NPM_LAUNCHER_VERSION: '9.8.7'
17
+ }),
18
+ '[LiveDesk Client] livedesk@9.8.7'
19
+ );
20
+ });
21
+
22
+ test('uses the product name for direct client launches', () => {
23
+ assert.equal(
24
+ formatClientVersionBanner({}),
25
+ `[LiveDesk Client] livedesk@${packageInfo.version}`
26
+ );
27
+ });