Socket
Socket
Sign inDemoInstall

route-trie

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

16

index.es6.js

@@ -58,3 +58,2 @@ // **Github:** https://github.com/zensh/route-trie

let i = 0
let start = 1

@@ -64,11 +63,6 @@ let end = path.length

let parent = this.root
let _path = path + '/'
while (true) {
if (++i > end) {
break
}
if (_path[i] !== '/') {
continue
}
let frag = _path.slice(start, i)
for (let i = 1; i <= end; i++) {
if (i < end && path[i] !== '/') continue
let frag = path.slice(start, i)
let node = matchNode(parent, frag)

@@ -262,3 +256,3 @@ if (this.ignoreCase && node == null) {

Trie.NAME = 'Trie'
Trie.VERSION = 'v2.0.1'
Trie.VERSION = 'v2.0.2'
Trie.Node = Node

@@ -265,0 +259,0 @@ Trie.Matched = Matched

@@ -58,3 +58,2 @@ // **Github:** https://github.com/zensh/route-trie

let i = 0
let start = 1

@@ -64,11 +63,6 @@ let end = path.length

let parent = this.root
let _path = path + '/'
while (true) {
if (++i > end) {
break
}
if (_path[i] !== '/') {
continue
}
let frag = _path.slice(start, i)
for (let i = 1; i <= end; i++) {
if (i < end && path[i] !== '/') continue
let frag = path.slice(start, i)
let node = matchNode(parent, frag)

@@ -262,5 +256,5 @@ if (this.ignoreCase && node == null) {

Trie.NAME = 'Trie'
Trie.VERSION = 'v2.0.1'
Trie.VERSION = 'v2.0.2'
Trie.Node = Node
Trie.Matched = Matched
module.exports = Trie.Trie = Trie

@@ -7,3 +7,3 @@ {

],
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -10,0 +10,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc