Socket
Socket
Sign inDemoInstall

surge

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

surge - npm Package Compare versions

Comparing version 0.17.5 to 0.17.6

test/fixtures/bin/minimist.js

3

lib/middleware/auth.js

@@ -30,2 +30,5 @@ var request = require("request")

default: "yes",
terminal: req.config.terminal,
output: req.config.output,
input: req.config.input
}, function(err, reply){

@@ -32,0 +35,0 @@ if (reply == "yes" || reply == "y" || reply == "Y") {

@@ -30,2 +30,5 @@ var helpers = require("./util/helpers")

edit: true,
terminal: req.config.terminal,
output: req.config.output,
input: req.config.input
}, function(err, domain){

@@ -32,0 +35,0 @@ if (domain === undefined) return abort("Please try again with a valid domain name.")

@@ -30,2 +30,5 @@ var path = require("path")

edit: true,
terminal: req.config.terminal,
output: req.config.output,
input: req.config.input
}, function(err, projectPath){

@@ -32,0 +35,0 @@ if (projectPath === undefined) return abort("publishing not initiated.")

@@ -123,2 +123,5 @@ var request = require("request")

edit: true,
terminal: req.config.terminal,
output: req.config.output,
input: req.config.input
}, function(err, pem){

@@ -125,0 +128,0 @@ if (pem === undefined) return abort("no PEM file provided")

2

package.json
{
"name": "surge",
"version": "0.17.5",
"version": "0.17.6",
"description": "CDN for front-end developers",

@@ -5,0 +5,0 @@ "author": "Brock Whitten <brock@chloi.io>",

@@ -20,3 +20,3 @@ # surge(.sh)

```
Surge – Single-command web publishing. (v0.17.4)
Surge – Single-command web publishing. (v0.17.6)

@@ -23,0 +23,0 @@ Usage:

var should = require('should')
var minimist = require('minimist')(process.argv.slice(2))
var yargs = require('yargs')
var commander = require('commander')
var nixt = require('nixt')
var Surge = require('../')
var surge = new Surge
var pkg = require('../package.json')
var minimist = 'node ./test/fixtures/bin/minimist.js'
var yargs = 'node ./test/fixtures/bin/yargs.js'
var hooks = {}

@@ -29,14 +30,25 @@

it('minimist', function (done) {
var program = minimist
should(program._.length).equal(1)
done()
nixt({ colors: false })
.run(minimist + ' login')
.on(/.*email:.*/).respond('kenneth+test@chloi.io\n')
.on(/.*password:.*/).respond('12345\n')
.expect(function (result) {
should(result.stdout).match(/Logged in as kenneth/)
should(result.stdout).match(/surge.sh/)
})
.exec(minimist + ' logout')
.end(done)
})
it('yargs', function (done) {
var program = yargs
program
.command('teardown', 'Login to Surge.', surge.login(hooks))
.argv
should(program.argv._.length).equal(1)
done()
nixt({ colors: false })
.run(yargs + ' login')
.on(/.*email:.*/).respond('kenneth+test@chloi.io\n')
.on(/.*password:.*/).respond('12345\n')
.expect(function (result) {
should(result.stdout).match(/Logged in as kenneth/)
should(result.stdout).match(/surge.sh/)
})
.exec(yargs + ' logout')
.end(done)
})

@@ -43,0 +55,0 @@ })

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