go-ipfs-dep
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "go-ipfs-dep", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Install the latest go-ipfs binary", | ||
@@ -10,5 +10,8 @@ "main": "src/index.js", | ||
}, | ||
"bin": { | ||
"ipfs": "go-ipfs/ipfs" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ipfs/npm-go-ipfs.git" | ||
"url": "git+https://github.com/diasdavid/go-ipfs-dep.git" | ||
}, | ||
@@ -18,4 +21,4 @@ "dependencies": { | ||
"gunzip-maybe": "^1.3.1", | ||
"request": "^2.70.0", | ||
"tar-fs": "^1.12.0" | ||
"request": "^2.75.0", | ||
"tar-fs": "^1.13.2" | ||
}, | ||
@@ -29,9 +32,9 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/ipfs/npm-go-ipfs/issues" | ||
"url": "https://github.com/diasdavid/go-ipfs-dep/issues" | ||
}, | ||
"homepage": "https://github.com/ipfs/npm-go-ipfs", | ||
"homepage": "https://github.com/diasdavid/go-ipfs-dep", | ||
"devDependencies": { | ||
"tap-spec": "^4.1.0", | ||
"tape": "^4.2.0" | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.6.0" | ||
} | ||
} |
#!/usr/bin/env node | ||
require('./')(function () {}) | ||
require('./')() |
@@ -0,1 +1,3 @@ | ||
'use strict' | ||
var path = require('path') | ||
@@ -9,2 +11,3 @@ var goenv = require('go-platform') | ||
module.exports = function (callback) { | ||
callback = callback || noop | ||
checkPlatform(goenv) // make sure we can do this. | ||
@@ -24,6 +27,6 @@ | ||
.pipe( | ||
tarFS | ||
.extract(installPath) | ||
.on('finish', callback) | ||
) | ||
tarFS | ||
.extract(installPath) | ||
.on('finish', callback) | ||
) | ||
@@ -51,1 +54,3 @@ function checkPlatform (goenv) { | ||
} | ||
function noop () {} |
@@ -0,6 +1,9 @@ | ||
'use strict' | ||
var test = require('tape') | ||
var fs = require('fs') | ||
var download = require('../src') | ||
var path = require('path') | ||
var download = require('../src') | ||
test('Ensure ipfs gets downloaded', function (t) { | ||
@@ -7,0 +10,0 @@ t.plan(2) |
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
4918
59
Updatedrequest@^2.75.0
Updatedtar-fs@^1.13.2