@discoveryjs/scan-git
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -23,9 +23,8 @@ import { join } from 'path'; | ||
return new Map(objectDirs.flat()); | ||
return new Map(objectDirs.flat().sort(([a], [b]) => (a < b ? -1 : 1))); | ||
} | ||
function indexObjectNames(names) { | ||
function indexObjectNames(sortedNames) { | ||
const fanoutTable = new Array(256); | ||
const sortedNames = [...names].sort(([a], [b]) => (a < b ? -1 : 1)); | ||
const binaryNames = Buffer.from(names.join(''), 'hex'); | ||
const binaryNames = Buffer.from(sortedNames.join(''), 'hex'); | ||
@@ -32,0 +31,0 @@ for (let i = 0, offset = 0; i < 256; i++) { |
@@ -256,3 +256,3 @@ import { existsSync, promises } from 'fs'; | ||
return remotes; | ||
return remotes.sort(); | ||
} | ||
@@ -259,0 +259,0 @@ |
{ | ||
"name": "@discoveryjs/scan-git", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A tool set for fast and efficient git scanning to capture data with focus on large repos", | ||
@@ -51,3 +51,3 @@ "repository": "discoveryjs/scan-git", | ||
"sucrase": "^3.21.0", | ||
"typescript": "^4.7.2" | ||
"typescript": "^4.8.3" | ||
}, | ||
@@ -54,0 +54,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
328297
4493