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

truffle-box

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

truffle-box - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

.travis.yml

13

lib/utils/unbox.js
var fs = require("fs-extra");
var path = require("path");
var ghdownload = require('github-download');
var https = require("https");
var request = require('request');
var vcsurl = require('vcsurl');

@@ -38,7 +38,8 @@ var parseURL = require('url').parse;

method: 'HEAD',
host: configURL.host,
path: configURL.path
uri: 'https://' + configURL.host + configURL.path
};
var req = https.request(options, function(r) {
if (r.statusCode == 404) {
request(options, function(error, r) {
if (error) {
return reject(new Error("Error making request. Please check the format of the requested resource: " + options.uri));
} else if (r.statusCode == 404) {
return reject(new Error("Truffle Box at URL " + url + " doesn't exist. If you believe this is an error, please contact Truffle support."));

@@ -50,4 +51,2 @@ } else if (r.statusCode != 200) {

});
req.end();
});

@@ -54,0 +53,0 @@ }

{
"name": "truffle-box",
"version": "1.0.2",
"version": "1.0.3",
"description": "Truffle project boilerplate utility",

@@ -26,2 +26,3 @@ "main": "box.js",

"github-download": "^0.5.0",
"request": "^2.83.0",
"tmp": "^0.0.31",

@@ -28,0 +29,0 @@ "vcsurl": "^0.1.1"

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