Skip to content

Commit

Permalink
fix: Changed npm dependency from opn to open (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl committed Sep 26, 2019
1 parent 56d70c1 commit cc2fe95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"multimatch": "4.0.0",
"mz": "2.7.0",
"node-notifier": "5.4.0",
"opn": "5.5.0",
"open": "6.4.0",
"parse-json": "4.0.0",
"require-uncached": "2.0.0",
"sign-addon": "0.3.1",
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/docs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* @flow */
import opn from 'opn';
import open from 'open';

import {createLogger} from '../util/logger';

Expand All @@ -11,14 +11,14 @@ export type DocsParams = {
}

export type DocsOptions = {
openUrl?: typeof opn,
openUrl?: typeof open,
}

export const url = 'https://developer.mozilla.org/en-US/Add-ons' +
'/WebExtensions/Getting_started_with_web-ext';

export default function docs(
params: DocsParams, {openUrl = opn}: DocsOptions = {}
params: DocsParams, {openUrl = open}: DocsOptions = {}
): Promise<void> {
return new Promise((resolve, reject) => {
openUrl(url, (error) => {
Expand Down

0 comments on commit cc2fe95

Please sign in to comment.