Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit be0d6ff

Browse files
author
Jesper Orb
authored
chore(docz-core): add deps explicitly (#1481)
1 parent ff7211c commit be0d6ff

File tree

3 files changed

+64
-5
lines changed

3 files changed

+64
-5
lines changed

core/docz-core/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@sindresorhus/slugify": "^0.9.1",
2525
"chalk": "^2.4.2",
2626
"chokidar": "^3.0.2",
27+
"cross-spawn": "^7.0.2",
2728
"detect-port": "^1.3.0",
2829
"docz-utils": "^2.3.0",
2930
"env-dot-prop": "^2.0.1",
@@ -37,6 +38,7 @@
3738
"load-cfg": "^2.1.0",
3839
"lodash": "^4.17.14",
3940
"minimatch": "^3.0.4",
41+
"open": "^7.0.3",
4042
"ora": "^3.4.0",
4143
"react-docgen": "^4.1.1",
4244
"react-docgen-actual-name-handler": "^2.1.0",
@@ -47,6 +49,7 @@
4749
"shelljs": "^0.8.3",
4850
"signale": "^1.4.0",
4951
"titleize": "^2.1.0",
52+
"tslib": "^1.11.1",
5053
"typescript": "3.5.3",
5154
"wait-on": "^3.3.0",
5255
"xstate": "^4.6.7",

core/docz-core/src/utils/open-browser.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
var chalk = require('chalk')
1111
var execSync = require('child_process').execSync
1212
var spawn = require('cross-spawn')
13-
var opn = require('opn')
13+
var open = require('open')
1414

15-
// https://github.com/sindresorhus/opn#app
15+
// https://github.com/sindresorhus/open#app
1616
var OSX_CHROME = 'google chrome'
1717

1818
const Actions = Object.freeze({
@@ -24,7 +24,7 @@ const Actions = Object.freeze({
2424
function getBrowserEnv() {
2525
// Attempt to honor this environment variable.
2626
// It is specific to the operating system.
27-
// See https://github.com/sindresorhus/opn#app for documentation.
27+
// See https://github.com/sindresorhus/open#app for documentation.
2828
const value = process.env.BROWSER
2929
let action
3030
if (!value) {
@@ -86,7 +86,7 @@ function startBrowserProcess(browser: any, url: any) {
8686
}
8787

8888
// Another special case: on OS X, check if BROWSER has been set to "open".
89-
// In this case, instead of passing `open` to `opn` (which won't work),
89+
// In this case, instead of passing `open` to `open` (which won't work),
9090
// just ignore it (thus ensuring the intended behavior, i.e. opening the system browser):
9191
// https://github.com/facebook/create-react-app/pull/1690#issuecomment-283518768
9292
if (process.platform === 'darwin' && browser === 'open') {
@@ -97,7 +97,7 @@ function startBrowserProcess(browser: any, url: any) {
9797
// (It will always open new tab)
9898
try {
9999
var options = { app: browser, wait: false }
100-
opn(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
100+
open(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
101101
return true
102102
} catch (err) {
103103
return false

yarn.lock

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7754,6 +7754,15 @@ [email protected], cross-spawn@^6.0.0, cross-spawn@^6.0.5:
77547754
shebang-command "^1.2.0"
77557755
which "^1.2.9"
77567756

7757+
cross-spawn@^7.0.2:
7758+
version "7.0.2"
7759+
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.2.tgz#d0d7dcfa74e89115c7619f4f721a94e1fdb716d6"
7760+
integrity sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==
7761+
dependencies:
7762+
path-key "^3.1.0"
7763+
shebang-command "^2.0.0"
7764+
which "^2.0.1"
7765+
77577766
crypt@~0.0.1:
77587767
version "0.0.2"
77597768
resolved "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b"
@@ -12157,6 +12166,11 @@ [email protected], is-docker@^1.1.0:
1215712166
resolved "https://registry.npmjs.org/is-docker/-/is-docker-1.1.0.tgz#f04374d4eee5310e9a8e113bf1495411e46176a1"
1215812167
integrity sha1-8EN01O7lMQ6ajhE78UlUEeRhdqE=
1215912168

12169+
is-docker@^2.0.0:
12170+
version "2.0.0"
12171+
resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.0.0.tgz#2cb0df0e75e2d064fe1864c37cdeacb7b2dcf25b"
12172+
integrity sha512-pJEdRugimx4fBMra5z2/5iRdZ63OhYV0vr0Dwm5+xtW4D1FvRkB8hamMIhnWfyJeDdyr/aa7BDyNbtG38VxgoQ==
12173+
1216012174
is-es2016-keyword@^1.0.0:
1216112175
version "1.0.0"
1216212176
resolved "https://registry.npmjs.org/is-es2016-keyword/-/is-es2016-keyword-1.0.0.tgz#f6e54e110c5e4f8d265e69d2ed0eaf8cf5f47718"
@@ -12524,6 +12538,11 @@ is-wsl@^1.1.0:
1252412538
resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
1252512539
integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=
1252612540

12541+
is-wsl@^2.1.1:
12542+
version "2.1.1"
12543+
resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.1.1.tgz#4a1c152d429df3d441669498e2486d3596ebaf1d"
12544+
integrity sha512-umZHcSrwlDHo2TGMXv0DZ8dIUGunZ2Iv68YZnrmCiBPkZ4aaOhtv7pXJKeki9k3qJ3RJr0cDyitcl5wEH3AYog==
12545+
1252712546
is-yarn-global@^0.3.0:
1252812547
version "0.3.0"
1252912548
resolved "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232"
@@ -15214,6 +15233,14 @@ open@^6.3.0:
1521415233
dependencies:
1521515234
is-wsl "^1.1.0"
1521615235

15236+
open@^7.0.3:
15237+
version "7.0.3"
15238+
resolved "https://registry.npmjs.org/open/-/open-7.0.3.tgz#db551a1af9c7ab4c7af664139930826138531c48"
15239+
integrity sha512-sP2ru2v0P290WFfv49Ap8MF6PkzGNnGlAwHweB4WR4mr5d2d0woiCluUeJ218w7/+PmoBy9JmYgD5A4mLcWOFA==
15240+
dependencies:
15241+
is-docker "^2.0.0"
15242+
is-wsl "^2.1.1"
15243+
1521715244
opencollective-postinstall@^2.0.2:
1521815245
version "2.0.2"
1521915246
resolved "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89"
@@ -15785,6 +15812,11 @@ path-key@^3.0.0:
1578515812
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.0.tgz#99a10d870a803bdd5ee6f0470e58dfcd2f9a54d3"
1578615813
integrity sha512-8cChqz0RP6SHJkMt48FW0A7+qUOn+OsnOsVtzI59tZ8m+5bCSk7hzwET0pulwOM2YMn9J1efb07KB9l9f30SGg==
1578715814

15815+
path-key@^3.1.0:
15816+
version "3.1.1"
15817+
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
15818+
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
15819+
1578815820
path-parse@^1.0.6:
1578915821
version "1.0.6"
1579015822
resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
@@ -18413,11 +18445,23 @@ shebang-command@^1.2.0:
1841318445
dependencies:
1841418446
shebang-regex "^1.0.0"
1841518447

18448+
shebang-command@^2.0.0:
18449+
version "2.0.0"
18450+
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
18451+
integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
18452+
dependencies:
18453+
shebang-regex "^3.0.0"
18454+
1841618455
shebang-regex@^1.0.0:
1841718456
version "1.0.0"
1841818457
resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
1841918458
integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=
1842018459

18460+
shebang-regex@^3.0.0:
18461+
version "3.0.0"
18462+
resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
18463+
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
18464+
1842118465
shell-exec@^1.0.2:
1842218466
version "1.0.2"
1842318467
resolved "https://registry.npmjs.org/shell-exec/-/shell-exec-1.0.2.tgz#2e9361b0fde1d73f476c4b6671fa17785f696756"
@@ -19921,6 +19965,11 @@ [email protected], tslib@^1.10.0, tslib@^1.6.0, tslib@^1.8.1, tslib@^1.9.0:
1992119965
resolved "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
1992219966
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
1992319967

19968+
tslib@^1.11.1:
19969+
version "1.11.1"
19970+
resolved "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35"
19971+
integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==
19972+
1992419973
tsutils@^3.7.0:
1992519974
version "3.10.0"
1992619975
resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.10.0.tgz#6f1c95c94606e098592b0dff06590cf9659227d6"
@@ -21041,6 +21090,13 @@ which@1, which@^1.1.2, which@^1.2.14, which@^1.2.8, which@^1.2.9, which@^1.3.0,
2104121090
dependencies:
2104221091
isexe "^2.0.0"
2104321092

21093+
which@^2.0.1:
21094+
version "2.0.2"
21095+
resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
21096+
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
21097+
dependencies:
21098+
isexe "^2.0.0"
21099+
2104421100
wide-align@^1.1.0:
2104521101
version "1.1.3"
2104621102
resolved "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457"

0 commit comments

Comments
 (0)