Skip to content

Commit 0e5f443

Browse files
authored
fix undefined URL issues (#2818)
* import URL where necessary * changelog * formatting hard
1 parent 6d03633 commit 0e5f443

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fixes issue when running in a Node 8 environment where `URL` was not defined. (#2817)

src/commands/database-settings-get.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { URL } from "url";
2+
13
import { Client } from "../apiv2";
24
import { Command } from "../command";
35
import { DATABASE_SETTINGS, HELP_TEXT, INVALID_PATH_ERROR } from "../database/settings";

src/commands/database-settings-set.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { URL } from "url";
2+
13
import { Client } from "../apiv2";
24
import { Command } from "../command";
35
import { DATABASE_SETTINGS, HELP_TEXT, INVALID_PATH_ERROR } from "../database/settings";

src/commands/database-update.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { URL } from "url";
12
import * as clc from "cli-color";
23
import * as fs from "fs";
34

src/emulator/download.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { URL } from "url";
12
import * as crypto from "crypto";
23
import * as fs from "fs-extra";
34
import * as path from "path";

0 commit comments

Comments
 (0)