Skip to content

Commit f2e293f

Browse files
authored
Fixed issue that will crash CLI app that states Trouter is not a constructor (#40)
* Fixed issue that will crash CLI app that states `Trouter` is not a constructor * Bump Trouter to latest version
1 parent 152f483 commit f2e293f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/router/sequential.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Trouter = require('trouter')
1+
const { Trouter } = require('trouter')
22
const next = require('./../next')
33
const { LRUCache: LRU } = require('lru-cache')
44
const { parse } = require('regexparam')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"dependencies": {
5050
"lru-cache": "^10.2.0",
5151
"regexparam": "^3.0.0",
52-
"trouter": "^3.2.1"
52+
"trouter": "^4.0.0"
5353
},
5454
"types": "./index.d.ts"
5555
}

0 commit comments

Comments
 (0)