Skip to content

Commit

Permalink
fix: restore Node v7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
PAkerstrand committed May 17, 2021
1 parent 2500e42 commit a344f66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

const URL = require('url').URL;

module.exports = removeTrailingSlashes;

function removeTrailingSlashes(opts) {
Expand Down
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const expect = require('expect');
const Koa = require('koa');
const request = require('supertest');
const removeTrailingSlashes = require('../');
const URL = require('url').URL;

describe('koa-remove-trailing-slashes', () => {
describe('running in Koa', () => {
Expand Down

0 comments on commit a344f66

Please sign in to comment.