Skip to content

Commit

Permalink
maint: remove import of URL (#362)
Browse files Browse the repository at this point in the history
URL is now a standard global object on the versions of Node we support
  • Loading branch information
wolfy1339 committed Apr 10, 2024
1 parent 0078378 commit b77231b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions index.js
@@ -1,7 +1,5 @@
export default fixtureServerMiddleware;

import { URL } from "url";

import _ from "lodash";
import bodyParser from "body-parser";
import cachimo from "cachimo";
Expand Down
2 changes: 0 additions & 2 deletions lib/additions.js
@@ -1,7 +1,5 @@
export default fixtureAdditions;

import { URL } from "url";

import mapValuesDeep from "./map-values-deep.js";

function fixtureAdditions(state, { id, fixture }) {
Expand Down
2 changes: 0 additions & 2 deletions lib/proxy.js
@@ -1,7 +1,5 @@
export default proxy;

import { URL } from "url";

import { Router } from "express";

import { createProxyMiddleware } from "http-proxy-middleware";
Expand Down
2 changes: 0 additions & 2 deletions lib/request-validation-middleware.js
@@ -1,7 +1,5 @@
export default requestValidationMiddleware;

import { URL } from "url";

function requestValidationMiddleware(state, request, response, next) {
if (!request.headers.accept) {
return response.status(400).json({
Expand Down
2 changes: 0 additions & 2 deletions test/integration/binary-response.test.js
@@ -1,5 +1,3 @@
import { URL } from "url";

import express from "express";
import supertest from "supertest";
import { suite } from "uvu";
Expand Down
2 changes: 0 additions & 2 deletions test/integration/get-repository.test.js
@@ -1,5 +1,3 @@
import { URL } from "url";

import express from "express";
import supertest from "supertest";
import { suite } from "uvu";
Expand Down
2 changes: 0 additions & 2 deletions test/integration/redirects.test.js
@@ -1,5 +1,3 @@
import { URL } from "url";

import express from "express";
import supertest from "supertest";
import { suite } from "uvu";
Expand Down
2 changes: 0 additions & 2 deletions test/integration/request-errors.test.js
@@ -1,5 +1,3 @@
import { URL } from "url";

import express from "express";
import supertest from "supertest";
import { suite } from "uvu";
Expand Down

0 comments on commit b77231b

Please sign in to comment.