@nordicsemiconductor/pc-nrfconnect-shared 106.0.0 → 107.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
+ ## 107 - 2023-09-13
11
+
12
+ ### Fixed
13
+
14
+ - Fixed get `getAppDir()` path.
15
+
10
16
  ## 106 - 2023-09-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="3207" lines-covered="1788" line-rate="0.5575" branches-valid="1538" branches-covered="448" branch-rate="0.2912" timestamp="1694601895064" complexity="0" version="0.1">
3
+ <coverage lines-valid="3208" lines-covered="1788" line-rate="0.5573" branches-valid="1538" branches-covered="448" branch-rate="0.2912" timestamp="1694614126228" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/vsts/work/1/s</source>
6
6
  </sources>
@@ -7405,9 +7405,9 @@
7405
7405
  </class>
7406
7406
  </classes>
7407
7407
  </package>
7408
- <package name="src.utils" line-rate="0.6365999999999999" branch-rate="0.1603">
7408
+ <package name="src.utils" line-rate="0.6344" branch-rate="0.1603">
7409
7409
  <classes>
7410
- <class name="appDirs.ts" filename="src/utils/appDirs.ts" line-rate="0.6666" branch-rate="0">
7410
+ <class name="appDirs.ts" filename="src/utils/appDirs.ts" line-rate="0.6153" branch-rate="0">
7411
7411
  <methods>
7412
7412
  <method name="(anonymous_7)" hits="0" signature="()V">
7413
7413
  <lines>
@@ -7421,17 +7421,17 @@
7421
7421
  </method>
7422
7422
  <method name="(anonymous_9)" hits="0" signature="()V">
7423
7423
  <lines>
7424
- <line number="30" hits="0"/>
7424
+ <line number="31" hits="0"/>
7425
7425
  </lines>
7426
7426
  </method>
7427
7427
  <method name="(anonymous_10)" hits="0" signature="()V">
7428
7428
  <lines>
7429
- <line number="37" hits="0"/>
7429
+ <line number="38" hits="0"/>
7430
7430
  </lines>
7431
7431
  </method>
7432
7432
  <method name="(anonymous_11)" hits="0" signature="()V">
7433
7433
  <lines>
7434
- <line number="45" hits="0"/>
7434
+ <line number="46" hits="0"/>
7435
7435
  </lines>
7436
7436
  </method>
7437
7437
  </methods>
@@ -7443,11 +7443,12 @@
7443
7443
  <line number="19" hits="13" branch="false"/>
7444
7444
  <line number="20" hits="0" branch="true" condition-coverage="0% (0/10)"/>
7445
7445
  <line number="21" hits="0" branch="false"/>
7446
- <line number="30" hits="13" branch="false"/>
7447
- <line number="37" hits="13" branch="false"/>
7448
- <line number="38" hits="0" branch="false"/>
7449
- <line number="45" hits="13" branch="false"/>
7450
- <line number="47" hits="0" branch="false"/>
7446
+ <line number="22" hits="0" branch="false"/>
7447
+ <line number="31" hits="13" branch="false"/>
7448
+ <line number="38" hits="13" branch="false"/>
7449
+ <line number="39" hits="0" branch="false"/>
7450
+ <line number="46" hits="13" branch="false"/>
7451
+ <line number="48" hits="0" branch="false"/>
7451
7452
  </lines>
7452
7453
  </class>
7453
7454
  <class name="classNames.ts" filename="src/utils/classNames.ts" line-rate="1" branch-rate="1">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "106.0.0",
3
+ "version": "107.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,8 @@ const getUserDataDir = () => getGlobal('userDataDir');
18
18
  */
19
19
  const getAppDir = () => {
20
20
  const html = packageJson()?.nrfConnectForDesktop?.html ?? '';
21
- return __filename.replace(html, '');
21
+ const dir = path.parse(html).dir;
22
+ return path.parse(__filename).dir.replace(dir, '');
22
23
  };
23
24
 
24
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"appDirs.d.ts","sourceRoot":"","sources":["../../../../src/utils/appDirs.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,cAAc,WAAiC,CAAC;AAEtD;;;;GAIG;AACH,QAAA,MAAM,SAAS,cAGd,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,UAAU,aAAc,MAAM,WAAwC,CAAC;AAE7E;;;;GAIG;AACH,QAAA,MAAM,aAAa,cACwC,CAAC;AAE5D;;;;GAIG;AACH,QAAA,MAAM,YAAY,cAA2C,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"appDirs.d.ts","sourceRoot":"","sources":["../../../../src/utils/appDirs.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,cAAc,WAAiC,CAAC;AAEtD;;;;GAIG;AACH,QAAA,MAAM,SAAS,cAId,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,UAAU,aAAc,MAAM,WAAwC,CAAC;AAE7E;;;;GAIG;AACH,QAAA,MAAM,aAAa,cACwC,CAAC;AAE5D;;;;GAIG;AACH,QAAA,MAAM,YAAY,cAA2C,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}