Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed for ExpressJS #100

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cache.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Packages
const fetch = require('node-fetch')
const fetch = require('cross-fetch')
const retry = require('async-retry')
const convertStream = require('stream-to-string')
const ms = require('ms')
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const finalhandler = require('finalhandler')
const Cache = require('./cache')

module.exports = config => {
const router = Router()
const router = config.router ? config.router() : Router()
let cache = null;

try {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"micro": "9.3.3",
"ms": "2.1.1",
"node-fetch": "2.0.0",
"cross-fetch": "^3.0.6",
"router": "1.3.2",
"semver": "5.5.0",
"stream-to-string": "1.1.0",
Expand Down