Skip to content

Commit 01ca074

Browse files
author
Angular Builds
committed
50cce66 refactor: replace deprecated package opn with open
1 parent e811899 commit 01ca074

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

commands/doc-impl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
Object.defineProperty(exports, "__esModule", { value: true });
1010
const command_1 = require("../models/command");
11-
const opn = require('opn');
11+
const open = require('open');
1212
class DocCommand extends command_1.Command {
1313
async run(options) {
1414
if (!options.keyword) {
@@ -19,9 +19,9 @@ class DocCommand extends command_1.Command {
1919
if (options.search) {
2020
searchUrl = `https://www.google.com/search?q=site%3Aangular.io+${options.keyword}`;
2121
}
22-
// We should wrap `opn` in a new Promise because `opn` is already resolved
22+
// We should wrap `open` in a new Promise because `open` is already resolved
2323
await new Promise(() => {
24-
opn(searchUrl, {
24+
open(searchUrl, {
2525
wait: false,
2626
});
2727
});

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "8.0.0-beta.10+43.42ef582",
3+
"version": "8.0.0-beta.10+45.50cce66",
44
"description": "CLI tool for Angular",
55
"main": "lib/cli/index.js",
66
"bin": {
@@ -28,17 +28,17 @@
2828
},
2929
"homepage": "https://github.com/angular/angular-cli",
3030
"dependencies": {
31-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#42ef582",
32-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#42ef582",
33-
"@angular-devkit/schematics": "github:angular/angular-devkit-schematics-builds#42ef582",
34-
"@schematics/angular": "github:angular/schematics-angular-builds#42ef582",
35-
"@schematics/update": "github:angular/schematics-update-builds#42ef582",
31+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#50cce66",
32+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#50cce66",
33+
"@angular-devkit/schematics": "github:angular/angular-devkit-schematics-builds#50cce66",
34+
"@schematics/angular": "github:angular/schematics-angular-builds#50cce66",
35+
"@schematics/update": "github:angular/schematics-update-builds#50cce66",
3636
"@yarnpkg/lockfile": "1.1.0",
3737
"debug": "^4.1.1",
3838
"ini": "1.3.5",
3939
"inquirer": "6.2.2",
4040
"npm-package-arg": "6.1.0",
41-
"opn": "5.4.0",
41+
"open": "6.0.0",
4242
"pacote": "9.5.0",
4343
"semver": "6.0.0",
4444
"symbol-observable": "1.2.0",

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Mon Apr 01 2019 10:15:13 GMT+0000 (Coordinated Universal Time)
1+
Mon Apr 01 2019 18:12:04 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)