Skip to content

Commit a968f50

Browse files
authored
fix: explicitly import URL so that .d.ts file is correctly generated (#1992)
* fix: explicitly import URL so that .d.ts file is correctly generated * add URL import in file as well
1 parent 9cbe987 commit a968f50

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/bucket.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import {
6464
} from './signer';
6565
import {Readable} from 'stream';
6666
import {CRC32CValidatorGenerator} from './crc32c';
67+
import {URL} from 'url';
6768

6869
interface SourceObject {
6970
name: string;

src/file.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import {
6868
} from './util';
6969
import {CRC32CValidatorGenerator} from './crc32c';
7070
import {HashStreamValidator} from './hash-stream-validator';
71+
import {URL} from 'url';
7172

7273
import retry = require('async-retry');
7374

0 commit comments

Comments
 (0)