lev-publisher
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -64,2 +64,3 @@ #! /usr/bin/env node | ||
function confirmResult(space, name, version, override, deps) { | ||
const artifact = `${space}.${name}:${version}`; | ||
axios | ||
@@ -81,8 +82,7 @@ .post( | ||
) | ||
.then((res) => { | ||
const artifact = `${space}.${name}:${version}`; | ||
console.log(`🎉 publish ${artifact} successfully!\n`.green); | ||
.then((_) => { | ||
console.log(`🎉 publish ${artifact} success!\n`.green); | ||
}) | ||
.catch((error) => { | ||
console.log(`${error.response.data.msg.red}\n`); | ||
console.log(`😢 publish ${artifact} failed! ${error.response.data.msg}\n`.red); | ||
}); | ||
@@ -161,3 +161,3 @@ } | ||
console.log( | ||
`${resp.status.toString().red} ${resp.statusText.red}\n` | ||
`😢 ${file} upload failed, ${resp.status.toString()} ${resp.statusText}\n`.red | ||
); | ||
@@ -168,3 +168,3 @@ reject(error); | ||
.catch((error) => { | ||
console.error(`${error.response.data.msg.red}\n`); | ||
console.error(`😢 ${file} upload failed, ${error.response.data.msg}\n`.red); | ||
reject(error); | ||
@@ -171,0 +171,0 @@ }); |
{ | ||
"name": "lev-publisher", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "lev react component publisher", | ||
@@ -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
9079