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.2.3 to 3.0.0

build/index.d.ts

34

package.json

@@ -7,6 +7,11 @@ {

],
"version": "2.2.3",
"version": "3.0.0",
"license": "MIT",
"main": "./index",
"jsnext:main": "index.mjs",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "rm -rf build && tsc",
"test": "tslint -p tsconfig.json -t stylish 'src/**/*.ts' 'test/**/*.ts' && tman -r ts-node/register 'test/**/*.ts'",
"lint": "tslint -p tsconfig.json -t stylish 'src/**/*.ts' 'test/**/*.ts'"
},
"repository": {

@@ -17,3 +22,3 @@ "type": "git",

"engines": {
"node": ">= 4.5.0"
"node": ">= 8"
},

@@ -32,16 +37,15 @@ "homepage": "https://github.com/zensh/route-trie",

"devDependencies": {
"@std/esm": "^0.26.0",
"istanbul": "^0.4.5",
"standard": "^12.0.1",
"tman": "^1.8.1"
"@types/node": "^10.12.5",
"tman": "^1.8.1",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.1.6"
},
"scripts": {
"test": "standard && tman",
"test-cov": "istanbul cover _tman"
},
"files": [
"index.js",
"index.mjs",
"README.md"
"build",
"LICENSE",
"README.md",
"CHANGELOG.md"
]
}

@@ -10,4 +10,2 @@ # route-trie

## v2 has a breaking change from v1.x https://github.com/zensh/route-trie/tree/v1.2.7
## Golang Version

@@ -28,4 +26,2 @@

- [toa-router](https://github.com/toajs/toa-router) A trie router for toa(server).
- [hirouter](https://github.com/teambition/hirouter) HTML5 history and router, simple, powerful and no framework(browser).
- [RotorJS](https://github.com/kuraga/rotorjs) Component-based JavaScript library for single-page applications and an example application.

@@ -35,8 +31,8 @@ ## Features

1. Support named parameter
1. Support regexp
1. Support suffix matching
1. Fixed path automatic redirection
1. Trailing slash automatic redirection
1. Support `405 Method Not Allowed`
1. Best Performance
2. Support regexp
3. Support suffix matching
4. Fixed path automatic redirection
5. Trailing slash automatic redirection
6. Support `405 Method Not Allowed`
7. Best Performance

@@ -52,3 +48,3 @@ ## Installation

```js
const Trie = require('route-trie')
const { Trie, Node, Matched } = require('route-trie')
```

@@ -55,0 +51,0 @@

Sorry, the diff of this file is not supported yet

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