isomorphic-git 1.10.4 → 1.10.5

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,8 +1,8 @@
1
1
  [
2
2
  "HeadlessChrome 0.0.0 (Linux 0.0.0)",
3
- "Firefox 95.0.0 (Ubuntu 0.0.0)",
3
+ "Firefox 96.0.0 (Ubuntu 0.0.0)",
4
4
  "Chrome 79.0.3945 (Windows 10 0.0.0)",
5
- "Chrome Mobile 94.0.4606 (Android 0.0.0)",
5
+ "Chrome Mobile 96.0.4664 (Android 0.0.0)",
6
6
  "Safari 13.1.0 (Mac OS X 10.15.4)",
7
7
  "Mobile Safari 13.0.0 (iOS 13.0.0)"
8
8
  ]
package/index.cjs CHANGED
@@ -1559,16 +1559,16 @@ class GitConfig {
1559
1559
  this.parsedConfig[configIndex] = modifiedConfig;
1560
1560
  }
1561
1561
  } else {
1562
- const sectionPath = path
1563
- .split('.')
1564
- .slice(0, -1)
1565
- .join('.')
1566
- .toLowerCase();
1562
+ const pathSegments = path.split('.');
1563
+ const section = pathSegments.shift().toLowerCase();
1564
+ const name = pathSegments.pop();
1565
+ const subsection = pathSegments.length
1566
+ ? pathSegments.join('.').toLowerCase()
1567
+ : undefined;
1568
+ const sectionPath = subsection ? section + '.' + subsection : section;
1567
1569
  const sectionIndex = this.parsedConfig.findIndex(
1568
1570
  config => config.path === sectionPath
1569
1571
  );
1570
- const [section, subsection] = sectionPath.split('.');
1571
- const name = path.split('.').pop();
1572
1572
  const newConfig = {
1573
1573
  section,
1574
1574
  subsection,
@@ -6865,8 +6865,8 @@ function filterCapabilities(server, client) {
6865
6865
 
6866
6866
  const pkg = {
6867
6867
  name: 'isomorphic-git',
6868
- version: '1.10.4',
6869
- agent: 'git/isomorphic-git@1.10.4',
6868
+ version: '1.10.5',
6869
+ agent: 'git/isomorphic-git@1.10.5',
6870
6870
  };
6871
6871
 
6872
6872
  class FIFO {
package/index.js CHANGED
@@ -1553,16 +1553,16 @@ class GitConfig {
1553
1553
  this.parsedConfig[configIndex] = modifiedConfig;
1554
1554
  }
1555
1555
  } else {
1556
- const sectionPath = path
1557
- .split('.')
1558
- .slice(0, -1)
1559
- .join('.')
1560
- .toLowerCase();
1556
+ const pathSegments = path.split('.');
1557
+ const section = pathSegments.shift().toLowerCase();
1558
+ const name = pathSegments.pop();
1559
+ const subsection = pathSegments.length
1560
+ ? pathSegments.join('.').toLowerCase()
1561
+ : undefined;
1562
+ const sectionPath = subsection ? section + '.' + subsection : section;
1561
1563
  const sectionIndex = this.parsedConfig.findIndex(
1562
1564
  config => config.path === sectionPath
1563
1565
  );
1564
- const [section, subsection] = sectionPath.split('.');
1565
- const name = path.split('.').pop();
1566
1566
  const newConfig = {
1567
1567
  section,
1568
1568
  subsection,
@@ -6859,8 +6859,8 @@ function filterCapabilities(server, client) {
6859
6859
 
6860
6860
  const pkg = {
6861
6861
  name: 'isomorphic-git',
6862
- version: '1.10.4',
6863
- agent: 'git/isomorphic-git@1.10.4',
6862
+ version: '1.10.5',
6863
+ agent: 'git/isomorphic-git@1.10.5',
6864
6864
  };
6865
6865
 
6866
6866
  class FIFO {