diff --git a/package.json b/package.json index 08e33e7..6fd09e2 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ { "path": "pkg/dist-node/index.js", "webpack": false, - "limit": "4216 B" + "limit": "4229 B" } ], "@pika/pack": { diff --git a/src/_types.ts b/src/_types.ts index 0c737d5..435117c 100644 --- a/src/_types.ts +++ b/src/_types.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' // tslint:disable-line no-circular-imports import FormData from 'form-data' //////////////////////////////////////////////////////////////////////////////// diff --git a/src/client/node.ts b/src/client/node.ts index 87aa63a..3fa69e1 100644 --- a/src/client/node.ts +++ b/src/client/node.ts @@ -1,6 +1,7 @@ import http from 'http' import https from 'https' import FormData from 'form-data' +import { URL } from 'url' import { GotenbergClientFunction } from '../_types' /** diff --git a/src/gotenberg.ts b/src/gotenberg.ts index d3de4fd..a765bbc 100644 --- a/src/gotenberg.ts +++ b/src/gotenberg.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' // tslint:disable-line no-circular-imports import { client as native } from './client/node' import { GotenbergClient, diff --git a/src/internal/source-checkers.ts b/src/internal/source-checkers.ts index 40486f3..9ccb90e 100644 --- a/src/internal/source-checkers.ts +++ b/src/internal/source-checkers.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' // tslint:disable-line no-circular-imports import { Readable } from 'stream' import { FileURI, ObjectSource, PlainSource, Source, TupleSource } from '../_types' diff --git a/src/url.ts b/src/url.ts index 3a04df3..d034c8e 100644 --- a/src/url.ts +++ b/src/url.ts @@ -1,5 +1,5 @@ import { Request, RequestType, UrlRequest } from './_types' -import { isString, isURL } from './internal/source-checkers' +import { isString, isURL } from './internal/source-checkers' // tslint:disable-line no-circular-imports import { pipe } from './tools/pipe' import { fields } from './internal/fields' import { path } from './internal/path' diff --git a/test/internal/source-checkers.spec.ts b/test/internal/source-checkers.spec.ts index 5d5e7d2..8a997fd 100644 --- a/test/internal/source-checkers.spec.ts +++ b/test/internal/source-checkers.spec.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' import { Readable } from 'stream' import { isBuffer, diff --git a/test/internal/source-converters.spec.ts b/test/internal/source-converters.spec.ts index 84ec4db..16f5439 100644 --- a/test/internal/source-converters.spec.ts +++ b/test/internal/source-converters.spec.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' import { Readable } from 'stream' import { basename } from 'path' import { createReadStream, ReadStream } from 'fs' diff --git a/test/merge.spec.ts b/test/merge.spec.ts index fdd9811..30f9e3d 100644 --- a/test/merge.spec.ts +++ b/test/merge.spec.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' import { merge, Request, RequestType } from '../src' // dumb object to test purity diff --git a/test/url.spec.ts b/test/url.spec.ts index be34f9b..d7fb54f 100644 --- a/test/url.spec.ts +++ b/test/url.spec.ts @@ -1,3 +1,4 @@ +import { URL } from 'url' import { Request, RequestType, url } from '../src' // dumb object to test purity diff --git a/tsconfig.json b/tsconfig.json index c6cd164..0178ad7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "es2020", "module": "esnext", - // "lib": [], // there is problem with URL, when empty :( https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 + "lib": [], // there is problem with URL, when empty :( https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 "moduleResolution": "node", "esModuleInterop": true, "strict": true,