release-it
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -156,3 +156,3 @@ var util = require('./util'), | ||
host: 'api.github.com', | ||
timeout: 5000, | ||
timeout: 10000, | ||
headers: { | ||
@@ -213,4 +213,4 @@ 'user-agent': 'webpro/release-it' | ||
return when.promise(function(resolve) { | ||
githubClient.releases.createRelease({ | ||
owner: repo.owner, | ||
githubClient.repos.createRelease({ | ||
user: repo.owner, | ||
repo: repo.project, | ||
@@ -222,5 +222,4 @@ tag_name: util.format(options.tagName, options.version), | ||
if(err) { | ||
var errObj = JSON.parse(err.message); | ||
log[attempt + 1 < attempts ? 'warn' : 'error'](errObj.message + ' (Attempt ' + (attempt + 1) + ' of ' + attempts + ')'); | ||
log[attempt + 1 < attempts ? 'warn' : 'error'](errObj.errors[0].message); | ||
log[attempt + 1 < attempts ? 'warn' : 'error'](err.defaultMessage + ' (Attempt ' + (attempt + 1) + ' of ' + attempts + ')'); | ||
log[attempt + 1 < attempts ? 'warn' : 'error'](err.message); | ||
} else { | ||
@@ -227,0 +226,0 @@ log.execution('node-github', response.meta.location, response.tag_name, response.name); |
{ | ||
"name": "release-it", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Interactive release tool for Git repositories. Increment version, commit, tag, push, build, publish to npm. Supports to build and release to a distribution/component repository.", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"chalk": "^1.1.1", | ||
"github": "^0.2.4", | ||
"github": "^2.4.0", | ||
"glob": "^7.0.3", | ||
@@ -39,0 +39,0 @@ "graceful-fs": "^4.1.3", |
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
47173
1042
+ Addedagent-base@2.1.1(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedfollow-redirects@0.0.7(transitive)
+ Addedgithub@2.6.0(transitive)
+ Addedhttps-proxy-agent@1.0.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedsemver@5.0.3(transitive)
+ Addedstream-consume@0.1.1(transitive)
- Removedgithub@0.2.4(transitive)
Updatedgithub@^2.4.0