grunt-mobify-cloud
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -125,10 +125,15 @@ var grunt = require('grunt'); | ||
if (status >= 400) { | ||
if (status == 401) { | ||
msg = "Request unauthorized. Check your credentials."; | ||
if (status >= 500) { | ||
msg = "Got a bad response: " + response.body; | ||
} | ||
else if (status == 404) { | ||
msg = "Project not found. Check your project's slug."; | ||
} | ||
else { | ||
msg = "Got a bad response: " + response.body; | ||
var body = JSON.parse(response.body); | ||
var msg = body["message"]; | ||
var docs_url = body["docs_url"]; | ||
// Checks in case there are docs available for the issue. Requires the error | ||
// message to be in JSON format | ||
if (docs_url !== undefined && docs_url !== '') { | ||
msg = msg + "\nVisit this link for more information: " + docs_url.bold.black; | ||
} | ||
} | ||
@@ -165,3 +170,6 @@ throw new Error(msg); | ||
console.log('Build uploaded!'); | ||
previewUrl = JSON.parse(body)["bundle_preview_url"]; | ||
console.log("Build uploaded!"); | ||
grunt.log.subhead("Link to preview the bundle: " + previewUrl); | ||
cb(); | ||
@@ -168,0 +176,0 @@ }); |
{ | ||
"name": "grunt-mobify-cloud", | ||
"description": "A plugin for working with Mobify projects", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"homepage": "http://cloud.mobify.com", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -89,1 +89,11 @@ # mobify-upload | ||
``` | ||
# Releasing | ||
When releasing a new version, follow these steps: | ||
0. `grunt test` | ||
1. Bump version in package.json | ||
2. Update the CHANGELOG | ||
3. Create a new git tag corresponding to that version and push to origin. | ||
4. `npm publish` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
56001
330
99