Skip to content

Commit

Permalink
drop support for node < v10
Browse files Browse the repository at this point in the history
Upgrade deps
  • Loading branch information
75lb committed Feb 9, 2020
1 parent fb6ef7c commit 38d9a76
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 276 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- 8
- 10
- 12

- 13
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-19 Lloyd Brookes <[email protected]>
Copyright (c) 2016-20 Lloyd Brookes <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Adds the following options to lws.

* * *

&copy; 2016-19 Lloyd Brookes \<[email protected]\>.
&copy; 2016-20 Lloyd Brookes \<[email protected]\>.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Blacklist extends EventEmitter {
const arrayify = require('array-back')
const blacklist = arrayify(options.blacklist)
if (blacklist.length) {
const pathToRegexp = require('path-to-regexp')
const { pathToRegexp } = require('path-to-regexp')
this.emit('verbose', 'middleware.blacklist.config', { blacklist })
return function (ctx, next) {
if (blacklist.some(expression => pathToRegexp(expression).test(ctx.path))) {
Expand Down
Loading

0 comments on commit 38d9a76

Please sign in to comment.