pull-git-repo
Advanced tools
Comparing version 0.2.2 to 0.2.3
17
index.js
@@ -468,2 +468,10 @@ var buffered = require('pull-buffered') | ||
R.hasObjectFromPack = function (hash, cb) { | ||
if (hash in this._cachedObjects) return cb(null, true) | ||
var self = this | ||
this.findPackedObject(hash, function (err, offset) { | ||
cb(err, !!offset) | ||
}) | ||
} | ||
R.getPackfileBufs = function (packId, cb) { | ||
@@ -518,1 +526,10 @@ this.getPackfile(packId, function (err, packfile) { | ||
} | ||
R.hasObjectFromAny = function (hash, cb) { | ||
this.hasObject(hash, function (err, has) { | ||
if (has) | ||
cb(null, true) | ||
else | ||
this.hasObjectFromPack(hash, cb) | ||
}.bind(this)) | ||
} |
{ | ||
"name": "pull-git-repo", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "utility methods for git repos using pull streams", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
19788
541