isomorphic-git 1.24.4 → 1.24.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,12 +1,8 @@
1
1
  [
2
2
  "Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
3
  "Firefox 115.0 (Ubuntu 0.0.0)",
4
- "X Chrome 114.0.0.0 (Android 10)",
4
+ "Chrome 114.0.0.0 (Android 10)",
5
5
  "Safari 13.1 (Mac OS 10.15.4)",
6
- "Mobile Safari 13.0 (iOS 13.0)",
7
6
  "Edge 79.0.309.65 (Windows 10)",
8
- "Chrome Headless 79.0.3945.0 (Linux x86_64)",
9
- "X Chrome 114.0.0.0 (Android 10)",
10
- "Chrome Headless 79.0.3945.0 (Linux x86_64)",
11
- "Chrome 114.0.0.0 (Android 10)"
7
+ "Mobile Safari 13.0 (iOS 13.0)"
12
8
  ]
package/index.cjs CHANGED
@@ -7313,8 +7313,8 @@ function filterCapabilities(server, client) {
7313
7313
 
7314
7314
  const pkg = {
7315
7315
  name: 'isomorphic-git',
7316
- version: '1.24.4',
7317
- agent: 'git/isomorphic-git@1.24.4',
7316
+ version: '1.24.5',
7317
+ agent: 'git/isomorphic-git@1.24.5',
7318
7318
  };
7319
7319
 
7320
7320
  class FIFO {
@@ -8637,15 +8637,20 @@ async function _expandOid({ fs, cache, gitdir, oid: short }) {
8637
8637
  // process can acquire external ref-deltas.
8638
8638
  const getExternalRefDelta = oid => _readObject({ fs, cache, gitdir, oid });
8639
8639
 
8640
- const results1 = await expandOidLoose({ fs, gitdir, oid: short });
8641
- const results2 = await expandOidPacked({
8640
+ const results = await expandOidLoose({ fs, gitdir, oid: short });
8641
+ const packedOids = await expandOidPacked({
8642
8642
  fs,
8643
8643
  cache,
8644
8644
  gitdir,
8645
8645
  oid: short,
8646
8646
  getExternalRefDelta,
8647
8647
  });
8648
- const results = results1.concat(results2);
8648
+ // Objects can exist in a pack file as well as loose, make sure we only get a list of unique oids.
8649
+ for (const packedOid of packedOids) {
8650
+ if (results.indexOf(packedOid) === -1) {
8651
+ results.push(packedOid);
8652
+ }
8653
+ }
8649
8654
 
8650
8655
  if (results.length === 1) {
8651
8656
  return results[0]
package/index.js CHANGED
@@ -7307,8 +7307,8 @@ function filterCapabilities(server, client) {
7307
7307
 
7308
7308
  const pkg = {
7309
7309
  name: 'isomorphic-git',
7310
- version: '1.24.4',
7311
- agent: 'git/isomorphic-git@1.24.4',
7310
+ version: '1.24.5',
7311
+ agent: 'git/isomorphic-git@1.24.5',
7312
7312
  };
7313
7313
 
7314
7314
  class FIFO {
@@ -8631,15 +8631,20 @@ async function _expandOid({ fs, cache, gitdir, oid: short }) {
8631
8631
  // process can acquire external ref-deltas.
8632
8632
  const getExternalRefDelta = oid => _readObject({ fs, cache, gitdir, oid });
8633
8633
 
8634
- const results1 = await expandOidLoose({ fs, gitdir, oid: short });
8635
- const results2 = await expandOidPacked({
8634
+ const results = await expandOidLoose({ fs, gitdir, oid: short });
8635
+ const packedOids = await expandOidPacked({
8636
8636
  fs,
8637
8637
  cache,
8638
8638
  gitdir,
8639
8639
  oid: short,
8640
8640
  getExternalRefDelta,
8641
8641
  });
8642
- const results = results1.concat(results2);
8642
+ // Objects can exist in a pack file as well as loose, make sure we only get a list of unique oids.
8643
+ for (const packedOid of packedOids) {
8644
+ if (results.indexOf(packedOid) === -1) {
8645
+ results.push(packedOid);
8646
+ }
8647
+ }
8643
8648
 
8644
8649
  if (results.length === 1) {
8645
8650
  return results[0]