Skip to content

Commit dc8d4e3

Browse files
authored
chore: update @ionic/cli dependencies (#4976)
1 parent e86958a commit dc8d4e3

File tree

17 files changed

+46
-46
lines changed

17 files changed

+46
-46
lines changed

packages/@ionic/cli-framework-output/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"license": "MIT",
2626
"dependencies": {
2727
"@ionic/utils-terminal": "2.3.3",
28-
"debug": "^4.0.0",
29-
"tslib": "^2.0.1"
28+
"debug": "^4.3.4",
29+
"tslib": "^2.5.0"
3030
},
3131
"devDependencies": {
3232
"@ionic/utils-stream": "3.1.5",

packages/@ionic/cli-framework-prompts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"license": "MIT",
2626
"dependencies": {
2727
"@ionic/utils-terminal": "2.3.3",
28-
"debug": "^4.0.0",
28+
"debug": "^4.3.4",
2929
"inquirer": "^7.0.0",
30-
"tslib": "^2.0.1"
30+
"tslib": "^2.5.0"
3131
},
3232
"devDependencies": {
3333
"@types/debug": "^4.1.1",

packages/@ionic/cli-framework/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"@ionic/utils-subprocess": "2.1.11",
2929
"@ionic/utils-terminal": "2.3.3",
3030
"chalk": "^4.0.0",
31-
"debug": "^4.0.0",
32-
"lodash": "^4.17.5",
31+
"debug": "^4.3.4",
32+
"lodash": "^4.17.21",
3333
"minimist": "^1.2.0",
3434
"rimraf": "^3.0.0",
35-
"tslib": "^2.0.1",
35+
"tslib": "^2.5.0",
3636
"write-file-atomic": "^3.0.0"
3737
},
3838
"devDependencies": {

packages/@ionic/cli/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@
5151
"@ionic/utils-subprocess": "2.1.11",
5252
"@ionic/utils-terminal": "2.3.3",
5353
"chalk": "^4.0.0",
54-
"debug": "^4.0.0",
55-
"diff": "^4.0.1",
54+
"debug": "^4.3.4",
55+
"diff": "^5.1.0",
5656
"elementtree": "^0.1.7",
5757
"leek": "0.0.24",
58-
"lodash": "^4.17.5",
59-
"open": "^7.0.4",
60-
"os-name": "^4.0.0",
61-
"semver": "^7.1.1",
62-
"split2": "^3.0.0",
63-
"ssh-config": "^1.1.1",
58+
"lodash": "^4.17.21",
59+
"open": "^9.0.0",
60+
"os-name": "^5.1.0",
61+
"semver": "^7.3.8",
62+
"split2": "^4.1.0",
63+
"ssh-config": "^4.2.1",
6464
"stream-combiner2": "^1.1.1",
6565
"superagent": "^8.0.9",
6666
"superagent-proxy": "^3.0.0",
67-
"tar": "^6.0.1",
68-
"tslib": "^2.0.1"
67+
"tar": "^6.1.13",
68+
"tslib": "^2.5.0"
6969
},
7070
"devDependencies": {
7171
"@types/debug": "^4.1.1",

packages/@ionic/cli/src/lib/open.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
import type { Options } from 'open';
12
import Debug from 'debug';
23

34
const debug = Debug('ionic:lib:open');
45

5-
export interface OpenUrlOptions {
6-
app?: string | readonly string[];
7-
}
8-
9-
export async function openUrl(target: string, options: OpenUrlOptions = {}): Promise<void> {
6+
export async function openUrl(target: string, options?: Options): Promise<void> {
107
const { default: o } = await import ('open');
11-
const p = await o(target, { ...options, wait: false, url: true });
8+
const p = await o(target, { ...options, wait: false });
129
const e = (err: Error) => debug('Error during open: %O', err);
1310
const n = p.on.bind(p);
1411

packages/@ionic/cli/src/lib/serve.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,11 @@ export abstract class ServeRunner<T extends ServeOptions> implements Runner<T, S
206206
if (options.open) {
207207
const openAddress = localAddress;
208208
const url = this.modifyOpenUrl(openAddress, options);
209-
210-
await openUrl(url, { app: options.browser });
209+
if (options.browser) {
210+
await openUrl(url, { app: { name: options.browser } });
211+
} else {
212+
await openUrl(url);
213+
}
211214

212215
this.e.log.info(`Browser window opened to ${strong(url)}!`);
213216
this.e.log.nl();

packages/@ionic/discover/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"prepublishOnly": "npm run build"
2929
},
3030
"dependencies": {
31-
"debug": "^4.0.0",
31+
"debug": "^4.3.4",
3232
"netmask": "^1.0.6",
33-
"tslib": "^2.0.1",
33+
"tslib": "^2.5.0",
3434
"ws": "^7.0.0"
3535
},
3636
"devDependencies": {

packages/@ionic/utils-array/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"prepublishOnly": "npm run build"
3232
},
3333
"dependencies": {
34-
"debug": "^4.0.0",
35-
"tslib": "^2.0.1"
34+
"debug": "^4.3.4",
35+
"tslib": "^2.5.0"
3636
},
3737
"devDependencies": {
3838
"@types/debug": "^4.1.1",

packages/@ionic/utils-fs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
},
3333
"dependencies": {
3434
"@types/fs-extra": "^8.0.0",
35-
"debug": "^4.0.0",
35+
"debug": "^4.3.4",
3636
"fs-extra": "^9.0.0",
37-
"tslib": "^2.0.1"
37+
"tslib": "^2.5.0"
3838
},
3939
"devDependencies": {
4040
"@types/debug": "^4.1.1",

packages/@ionic/utils-network/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"prepublishOnly": "npm run build"
3232
},
3333
"dependencies": {
34-
"debug": "^4.0.0",
35-
"tslib": "^2.0.1"
34+
"debug": "^4.3.4",
35+
"tslib": "^2.5.0"
3636
},
3737
"devDependencies": {
3838
"@types/debug": "^4.1.1",

0 commit comments

Comments
 (0)