Socket
Socket
Sign inDemoInstall

punch

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch - npm Package Compare versions

Comparing version 0.5.10 to 0.5.11

4

lib/config_handler.js

@@ -107,5 +107,3 @@ var _ = require("underscore");

} else {
console.log("Cannot read the custom config: " + err);
console.log("Using the default config.");
return callback(default_config);
throw("Failed to read the configurations.\nIf you have already created a config file, please check it for any syntax errors.");
}

@@ -112,0 +110,0 @@ } else {

@@ -15,3 +15,3 @@ {

],
"version": "0.5.10",
"version": "0.5.11",
"homepage": "https://github.com/laktek/punch",

@@ -18,0 +18,0 @@ "author": "Lakshan Perera <lakshan@web2media.net> (http://laktek.com)",

@@ -246,5 +246,6 @@ var config_handler = require("../lib/config_handler.js");

config_handler.getConfig("custom_config.json", function(output) {
expect(output.server.port).toEqual(9009);
});
var spyCallback = jasmine.createSpy();
expect(function() {
config_handler.getConfig("custom_config.json", spyCallback);
}).toThrow();

@@ -251,0 +252,0 @@ });

@@ -34,3 +34,3 @@ var module_utils = require("../../lib/utils/module_utils.js");

} else {
raise("module not found");
throw("module not found");
}

@@ -48,3 +48,3 @@ });

} else {
raise("module not found");
throw("module not found");
}

@@ -51,0 +51,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