New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tomahawk

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tomahawk - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

11

lib/tomahawk.js

@@ -99,4 +99,2 @@ module.exports = function () {

$this.config.store.impl = storeImpl($this.app, $this.config, $this.io, $this);
var storeRoutes = require(path.join($this.config.rootPath, "lib", "store_default_routes"));
shutdownHooks.push(storeRoutes($this.app, $this.config, $this.io, $this).shutdown);
}

@@ -107,3 +105,10 @@

$this.logger.log('debug', 'loading module: %s', routes[i], $this.meta);
require(routes[i])($this.app, $this.config, $this.io, $this);
var routehooks = require(
routes[i].charAt(0) === '/' ? routes[i] :
path.join($this.config.rootPath, "lib", routes[i])
)($this.app, $this.config, $this.io, $this);
if (routehooks && routehooks.shutdown) {
shutdownHooks.push(routehooks.shutdown);
}
}

@@ -110,0 +115,0 @@ var cgi = $this.config.cgi instanceof Array ? $this.config.cgi : (typeof($this.config.cgi) === 'string' ? [$this.config.cgi] : []);

@@ -5,3 +5,3 @@ {

"description": "Minimal HTTP Server",
"version": "0.1.3",
"version": "0.1.4",
"repository": {

@@ -39,3 +39,3 @@ "type": "git",

"ip": "0.0.0.0",
"routes": [],
"routes": ["store_default_routes"],
"cgi": [],

@@ -42,0 +42,0 @@ "headers": [],

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