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

surge

Package Overview
Dependencies
Maintainers
1
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.24.0-rc.2 to 0.24.0-rc.3

6

lib/middleware/files.js

@@ -19,5 +19,5 @@

return next()
} else {
sdk.manifest(domain, { user: "token", pass: req.creds.token }, function(error, response){
helpers.displayAnalytics(response)
} else {
sdk.manifest(domain, { user: "token", pass: req.creds.token }, function(error, manifest){
helpers.displayManifest(manifest, domain)
return next()

@@ -24,0 +24,0 @@ })

@@ -7,3 +7,3 @@ var helpers = require("../util/helpers")

.log()
.log(" " + req.configuration.platform.replace(/^\w/, c => c.toUpperCase()).underline.blue, "- Static Web Publishing".brightYellow, req.pkg.version.grey)
.log(" " + req.configuration.platform.replace(/^\w/, c => c.toUpperCase()).underline.blue, ("⚡ " + req.pkg.description).brightYellow, req.pkg.version.grey)
.log()

@@ -10,0 +10,0 @@ .log(" "+ req.configuration.name +" "+"(opt --preview)".grey+" publish with prompts".grey)

@@ -523,4 +523,4 @@ var colors = require("colors")

exports.displayGuide = function(data){
var table = tables.guide(data)
exports.displayManifest = function(data, domain){
var table = tables.manifest(data, domain)
var rows = table.toString().split("\n")

@@ -527,0 +527,0 @@ space()

@@ -278,3 +278,3 @@

exports.guide = function(guide){
exports.manifest = function(manifest, domain){
var table = new Table({

@@ -289,9 +289,9 @@ chars: cleanTable,

var files = Object.keys(guide.manifest)
var files = Object.keys(manifest)
files.forEach(function(file){
table.push([
{ content: xbytes(guide.manifest[file]["size"]).cyan, hAlign: "right" },
{ content: xbytes(manifest[file]["size"]).cyan, hAlign: "right" },
//{ content: manifest[file]["md5sum"].grey },
{ content: guide.domain.green + file.grey, }
{ content: domain.green + file.grey, }

@@ -298,0 +298,0 @@ ])

{
"name": "surge",
"version": "0.24.0-rc.2",
"description": "CDN for front-end developers",
"version": "0.24.0-rc.3",
"description": "Static Web Publishing",
"author": "Brock Whitten <brock@chloi.io>",

@@ -21,3 +21,3 @@ "bin": "./bin/surge",

"surge-ignore": "0.2.0",
"surge-sdk": "0.3.2",
"surge-sdk": "0.3.3",
"url-parse-as-address": "1.0.0",

@@ -24,0 +24,0 @@ "xbytes": "^1.7.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