npm-update
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -23,5 +23,6 @@ /* ================================================================ | ||
var protocol = options.protocol || 'http'; | ||
var host = options.host || 'registry.npmjs.org'; | ||
var opt = { | ||
uri: protocol + '://registry.npmjs.org/' + name + '/latest', | ||
uri: `${protocol}://${host}/${name}/latest`, | ||
method: 'get', | ||
@@ -28,0 +29,0 @@ timeout: options.timeout || 1000 |
{ | ||
"name": "npm-update", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "npm update", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"mocha": "*", | ||
"pre-commit": "1.1.1", | ||
"pre-commit": "*", | ||
"should": "*" | ||
@@ -36,6 +36,3 @@ }, | ||
"homepage": "https://github.com/xudafeng/npm-update", | ||
"author": "xudafeng", | ||
"email": "xudafeng@126.com", | ||
"blog": "http://xdf.me", | ||
"license": "MIT" | ||
} |
@@ -24,3 +24,3 @@ # npm-update | ||
```shell | ||
``` bash | ||
$ npm i npm-update --save | ||
@@ -31,3 +31,3 @@ ``` | ||
```javascript | ||
``` javascript | ||
var update = require('npm-update'); | ||
@@ -34,0 +34,0 @@ var pkg = require('../package'); |
@@ -24,3 +24,3 @@ /* ================================================================ | ||
describe('#npm-update', function() { | ||
this.timeout(50000); | ||
this.timeout(50 * 1000); | ||
@@ -27,0 +27,0 @@ it('only pkg', function(done) { |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
140
7056
2