isomorphic-git
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -164,5 +164,2 @@ 'use strict'; | ||
var readdir = pify(fs().readdir); | ||
var stat = pify(fs().stat); | ||
// Based on an elegant concurrent recursive solution from SO | ||
@@ -180,3 +177,3 @@ // https://stackoverflow.com/a/45130990/2168416 | ||
_context2.next = 2; | ||
return readdir(dir); | ||
return pify(fs().readdir)(dir); | ||
@@ -195,3 +192,3 @@ case 2: | ||
_context.next = 3; | ||
return stat(res); | ||
return pify(fs().stat)(res); | ||
@@ -546,3 +543,3 @@ case 3: | ||
var name = "isomorphic-git"; | ||
var version = "0.0.23"; | ||
var version = "0.0.24"; | ||
var description = "A pure JavaScript implementation of git for node and browsers!"; | ||
@@ -549,0 +546,0 @@ var main = "dist/for-node/"; |
@@ -983,3 +983,3 @@ import path from 'path'; | ||
var version$1 = "0.0.23"; | ||
var version$1 = "0.0.24"; | ||
@@ -986,0 +986,0 @@ function version() { |
@@ -84,12 +84,9 @@ import systemfs from 'fs'; | ||
const readdir = pify(fs().readdir); | ||
const stat = pify(fs().stat); | ||
// Based on an elegant concurrent recursive solution from SO | ||
// https://stackoverflow.com/a/45130990/2168416 | ||
async function readDirAsFlatFileList(dir) { | ||
const subdirs = await readdir(dir); | ||
const subdirs = await pify(fs().readdir)(dir); | ||
const files = await Promise.all(subdirs.map(async subdir => { | ||
const res = dir + '/' + subdir; | ||
return (await stat(res)).isDirectory() ? readDirAsFlatFileList(res) : res; | ||
return (await pify(fs().stat)(res)).isDirectory() ? readDirAsFlatFileList(res) : res; | ||
})); | ||
@@ -191,3 +188,3 @@ return files.reduce((a, f) => a.concat(f), []); | ||
var name = "isomorphic-git"; | ||
var version = "0.0.23"; | ||
var version = "0.0.24"; | ||
var description = "A pure JavaScript implementation of git for node and browsers!"; | ||
@@ -194,0 +191,0 @@ var main = "dist/for-node/"; |
@@ -989,3 +989,3 @@ 'use strict'; | ||
var version$1 = "0.0.23"; | ||
var version$1 = "0.0.24"; | ||
@@ -992,0 +992,0 @@ function version() { |
@@ -90,12 +90,9 @@ 'use strict'; | ||
const readdir = pify(fs().readdir); | ||
const stat = pify(fs().stat); | ||
// Based on an elegant concurrent recursive solution from SO | ||
// https://stackoverflow.com/a/45130990/2168416 | ||
async function readDirAsFlatFileList(dir) { | ||
const subdirs = await readdir(dir); | ||
const subdirs = await pify(fs().readdir)(dir); | ||
const files = await Promise.all(subdirs.map(async subdir => { | ||
const res = dir + '/' + subdir; | ||
return (await stat(res)).isDirectory() ? readDirAsFlatFileList(res) : res; | ||
return (await pify(fs().stat)(res)).isDirectory() ? readDirAsFlatFileList(res) : res; | ||
})); | ||
@@ -197,3 +194,3 @@ return files.reduce((a, f) => a.concat(f), []); | ||
var name = "isomorphic-git"; | ||
var version = "0.0.23"; | ||
var version = "0.0.24"; | ||
var description = "A pure JavaScript implementation of git for node and browsers!"; | ||
@@ -200,0 +197,0 @@ var main = "dist/for-node/"; |
{ | ||
"name": "isomorphic-git", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "A pure JavaScript implementation of git for node and browsers!", | ||
@@ -5,0 +5,0 @@ "main": "dist/for-node/", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9279491
18479