Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-mobify-cloud

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-mobify-cloud - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

22

lib/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc