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

trek-router

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trek-router - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

8

lib/router.js

@@ -5,4 +5,2 @@ 'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

@@ -16,6 +14,2 @@

var _slowEquals = require('slow-equals');
var _slowEquals2 = _interopRequireDefault(_slowEquals);
const METHODS = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'];

@@ -236,3 +230,3 @@

// Search order static > param > match-any
if (search.length === 0 || _slowEquals2['default'](search, cn.prefix)) {
if (search.length === 0 || search === cn.prefix) {
// Found

@@ -239,0 +233,0 @@ result[0] = cn.handler;

5

package.json
{
"name": "trek-router",
"version": "0.2.4",
"version": "0.3.0",
"description": "A fast HTTP router",

@@ -44,6 +44,3 @@ "repository": "trekjs/router",

"iojs": "1.x.x"
},
"dependencies": {
"slow-equals": "0.0.2"
}
}
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