isomorphic-git 1.19.0 → 1.19.1

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
  "Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
3
  "Firefox 102.0 (Ubuntu 0.0.0)",
4
- "Edge 79.0.309.65 (Windows 10)",
5
4
  "Chrome 100.0.4896.127 (Android 10)",
6
- "Safari 13.1 (Mac OS 10.15.4)",
7
- "Mobile Safari 13.0 (iOS 13.0)"
5
+ "Mobile Safari 13.0 (iOS 13.0)",
6
+ "Edge 79.0.309.65 (Windows 10)",
7
+ "Safari 13.1 (Mac OS 10.15.4)"
8
8
  ]
package/index.cjs CHANGED
@@ -2712,7 +2712,7 @@ class GitPackIndex {
2712
2712
  const objectsByDepth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
2713
2713
  for (let offset in offsetToObject) {
2714
2714
  offset = Number(offset);
2715
- const percent = Math.floor((count++ * 100) / totalObjectCount);
2715
+ const percent = Math.floor((count * 100) / totalObjectCount);
2716
2716
  if (percent !== lastPercent) {
2717
2717
  if (onProgress) {
2718
2718
  await onProgress({
@@ -2722,6 +2722,7 @@ class GitPackIndex {
2722
2722
  });
2723
2723
  }
2724
2724
  }
2725
+ count++;
2725
2726
  lastPercent = percent;
2726
2727
 
2727
2728
  const o = offsetToObject[offset];
@@ -6983,8 +6984,8 @@ function filterCapabilities(server, client) {
6983
6984
 
6984
6985
  const pkg = {
6985
6986
  name: 'isomorphic-git',
6986
- version: '1.19.0',
6987
- agent: 'git/isomorphic-git@1.19.0',
6987
+ version: '1.19.1',
6988
+ agent: 'git/isomorphic-git@1.19.1',
6988
6989
  };
6989
6990
 
6990
6991
  class FIFO {
package/index.js CHANGED
@@ -2706,7 +2706,7 @@ class GitPackIndex {
2706
2706
  const objectsByDepth = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
2707
2707
  for (let offset in offsetToObject) {
2708
2708
  offset = Number(offset);
2709
- const percent = Math.floor((count++ * 100) / totalObjectCount);
2709
+ const percent = Math.floor((count * 100) / totalObjectCount);
2710
2710
  if (percent !== lastPercent) {
2711
2711
  if (onProgress) {
2712
2712
  await onProgress({
@@ -2716,6 +2716,7 @@ class GitPackIndex {
2716
2716
  });
2717
2717
  }
2718
2718
  }
2719
+ count++;
2719
2720
  lastPercent = percent;
2720
2721
 
2721
2722
  const o = offsetToObject[offset];
@@ -6977,8 +6978,8 @@ function filterCapabilities(server, client) {
6977
6978
 
6978
6979
  const pkg = {
6979
6980
  name: 'isomorphic-git',
6980
- version: '1.19.0',
6981
- agent: 'git/isomorphic-git@1.19.0',
6981
+ version: '1.19.1',
6982
+ agent: 'git/isomorphic-git@1.19.1',
6982
6983
  };
6983
6984
 
6984
6985
  class FIFO {