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

find-my-way

Package Overview
Dependencies
Maintainers
2
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-my-way - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

4

index.js

@@ -270,2 +270,6 @@ 'use strict'

parentNodePathIndex = i + 1
if (i !== path.length - 1) {
throw new Error('Wildcard must be the last character in the route')
}
}

@@ -272,0 +276,0 @@ }

2

package.json
{
"name": "find-my-way",
"version": "7.2.0",
"version": "7.2.1",
"description": "Crazy fast http radix based router",

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

@@ -604,1 +604,17 @@ 'use strict'

})
test('Wildcard must be the last character in the route', (t) => {
t.plan(6)
const expectedError = new Error('Wildcard must be the last character in the route')
const findMyWay = FindMyWay()
t.throws(() => findMyWay.on('GET', '*1', () => {}), expectedError)
t.throws(() => findMyWay.on('GET', '*/', () => {}), expectedError)
t.throws(() => findMyWay.on('GET', '*?', () => {}), expectedError)
t.throws(() => findMyWay.on('GET', '/foo*123', () => {}), expectedError)
t.throws(() => findMyWay.on('GET', '/foo*?', () => {}), expectedError)
t.throws(() => findMyWay.on('GET', '/foo*/', () => {}), expectedError)
})
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