Skip to content

Commit 20ac9f0

Browse files
committed
fix: update nuxt/image detection
1 parent ea0e1aa commit 20ac9f0

File tree

2 files changed

+50
-67
lines changed

2 files changed

+50
-67
lines changed

detectors/nuxt.modules.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,11 @@
381381
"url": "https://image.nuxtjs.org"
382382
},
383383
"detectors": {
384-
"js": "window.$nuxt?.$img || window.__NUXT__?.config?.public?.image"
384+
"js": [
385+
"window.$nuxt?.$img",
386+
"window.__NUXT__?.config?.public?.image",
387+
"[...document.querySelectorAll('*')].map((el) => el.__vue_app__?.config?.globalProperties?.$router).filter(Boolean).length"
388+
]
385389
}
386390
},
387391
"nuxt-cloudinary": {

yarn.lock

Lines changed: 45 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ cli-cursor@^3.1.0:
237237
restore-cursor "^3.1.0"
238238

239239
cli-spinners@^2.5.0:
240-
version "2.6.1"
241-
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d"
242-
integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==
240+
version "2.7.0"
241+
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.7.0.tgz#f815fd30b5f9eaac02db604c7a231ed7cb2f797a"
242+
integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==
243243

244244
cliui@^7.0.2:
245245
version "7.0.4"
@@ -334,10 +334,10 @@ [email protected]:
334334
resolved "https://registry.yarnpkg.com/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.1.0.tgz#874a635287ef8b581fd8558532bf655d4fb59f2d"
335335
integrity sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ==
336336

337-
338-
version "4.6.1"
339-
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.1.tgz#f4c0921937050674e578dc7875f908351ccf4014"
340-
integrity sha512-lzWJpPZhbM1R0PIzkwzGBCnAkH5RKJzJfFQZcl/D+2lsJxAwGnDKBqn/F4C1RD31GJNn8NuKWQzAZDAVXPp2Mw==
337+
338+
version "4.6.3"
339+
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz#0765490f56424b46f6cb4db9135902d6e5a36dc2"
340+
integrity sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==
341341
dependencies:
342342
compare-func "^2.0.0"
343343
lodash "^4.17.15"
@@ -430,10 +430,10 @@ conventional-changelog-writer@^4.0.18:
430430
split "^1.0.0"
431431
through2 "^4.0.0"
432432

433-
434-
version "3.1.24"
435-
resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.24.tgz#ebd180b0fd1b2e1f0095c4b04fd088698348a464"
436-
integrity sha512-ed6k8PO00UVvhExYohroVPXcOJ/K1N0/drJHx/faTH37OIZthlecuLIRX/T6uOp682CAoVoFpu+sSEaeuH6Asg==
433+
434+
version "3.1.25"
435+
resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-3.1.25.tgz#3e227a37d15684f5aa1fb52222a6e9e2536ccaff"
436+
integrity sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==
437437
dependencies:
438438
conventional-changelog-angular "^5.0.12"
439439
conventional-changelog-atom "^2.0.8"
@@ -555,10 +555,10 @@ detect-newline@^3.1.0:
555555
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
556556
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
557557

558-
559-
version "0.0.969999"
560-
resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.969999.tgz#3d6be0a126b3607bb399ae2719b471dda71f3478"
561-
integrity sha512-6GfzuDWU0OFAuOvBokXpXPLxjOJ5DZ157Ue3sGQQM3LgAamb8m0R0ruSfN0DDu+XG5XJgT50i6zZ/0o8RglreQ==
558+
559+
version "0.0.1036444"
560+
resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz#a570d3cdde61527c82f9b03919847b8ac7b1c2b9"
561+
integrity sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==
562562

563563
dot-prop@^5.1.0:
564564
version "5.3.0"
@@ -651,7 +651,7 @@ find-up@^3.0.0:
651651
dependencies:
652652
locate-path "^3.0.0"
653653

654-
find-up@^4.0.0, find-up@^4.1.0:
654+
find-up@^4.1.0:
655655
version "4.1.0"
656656
resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19"
657657
integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==
@@ -667,13 +667,6 @@ find-up@^5.0.0:
667667
locate-path "^6.0.0"
668668
path-exists "^4.0.0"
669669

670-
fs-access@^1.0.1:
671-
version "1.0.1"
672-
resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
673-
integrity sha1-1qh/JiJxzv6+wwxVNAf7mV2od3o=
674-
dependencies:
675-
null-check "^1.0.0"
676-
677670
fs-constants@^1.0.0:
678671
version "1.0.0"
679672
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
@@ -822,10 +815,10 @@ hosted-git-info@^3.0.6:
822815
dependencies:
823816
lru-cache "^6.0.0"
824817

825-
826-
version "5.0.0"
827-
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2"
828-
integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==
818+
819+
version "5.0.1"
820+
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6"
821+
integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==
829822
dependencies:
830823
agent-base "6"
831824
debug "4"
@@ -1190,11 +1183,6 @@ normalize-package-data@^3.0.0:
11901183
semver "^7.3.2"
11911184
validate-npm-package-license "^3.0.1"
11921185

1193-
null-check@^1.0.0:
1194-
version "1.0.0"
1195-
resolved "https://registry.yarnpkg.com/null-check/-/null-check-1.0.0.tgz#977dffd7176012b9ec30d2a39db5cf72a0439edd"
1196-
integrity sha1-l33/1xdgErnsMNKjnbXPcqBDnt0=
1197-
11981186
object-assign@^4.0.1:
11991187
version "4.1.1"
12001188
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
@@ -1214,10 +1202,10 @@ onetime@^5.1.0:
12141202
dependencies:
12151203
mimic-fn "^2.1.0"
12161204

1217-
ora@^5.4.0:
1218-
version "5.4.1"
1219-
resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18"
1220-
integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==
1205+
1206+
version "5.4.0"
1207+
resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.0.tgz#42eda4855835b9cd14d33864c97a3c95a3f56bf4"
1208+
integrity sha512-1StwyXQGoU6gdjYkyVcqOLnVlbKj+6yPNNOxJVgpt9t4eksKjiriiHuxktLYkgllwk+D6MbC4ihH84L1udRXPg==
12211209
dependencies:
12221210
bl "^4.1.0"
12231211
chalk "^4.1.0"
@@ -1395,13 +1383,6 @@ pinkie@^2.0.0:
13951383
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
13961384
integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA=
13971385

1398-
1399-
version "4.2.0"
1400-
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
1401-
integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==
1402-
dependencies:
1403-
find-up "^4.0.0"
1404-
14051386
process-nextick-args@~2.0.0:
14061387
version "2.0.1"
14071388
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
@@ -1425,23 +1406,22 @@ pump@^3.0.0:
14251406
end-of-stream "^1.1.0"
14261407
once "^1.3.1"
14271408

1428-
puppeteer@^13.5.2:
1429-
version "13.5.2"
1430-
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-13.5.2.tgz#73ae84969cbf514aeee871a05ec4549d67f6abee"
1431-
integrity sha512-DJAyXODBikZ3xPs8C35CtExEw78LZR9RyelGDAs0tX1dERv3OfW7qpQ9VPBgsfz+hG2HiMTO/Tyf7BuMVWsrxg==
1409+
puppeteer@^18.0.4:
1410+
version "18.0.4"
1411+
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-18.0.4.tgz#0fd8840840dde9147e7db4b2a796aa27f3ecf0ee"
1412+
integrity sha512-42WMdCu2wJdrkWijox/ZWsgNdv3+H+9xhLmiIl7KZIvDwMJWGz28HMgG1Ey5J6xb8wcwzjF9uI1Iw4UNyXXf5A==
14321413
dependencies:
14331414
cross-fetch "3.1.5"
14341415
debug "4.3.4"
1435-
devtools-protocol "0.0.969999"
1416+
devtools-protocol "0.0.1036444"
14361417
extract-zip "2.0.1"
1437-
https-proxy-agent "5.0.0"
1438-
pkg-dir "4.2.0"
1418+
https-proxy-agent "5.0.1"
14391419
progress "2.0.3"
14401420
proxy-from-env "1.1.0"
14411421
rimraf "3.0.2"
14421422
tar-fs "2.1.1"
14431423
unbzip2-stream "1.4.3"
1444-
ws "8.5.0"
1424+
ws "8.8.1"
14451425

14461426
q@^1.5.1:
14471427
version "1.5.1"
@@ -1684,22 +1664,21 @@ split@^1.0.0:
16841664
dependencies:
16851665
through "2"
16861666

1687-
standard-version@^9.3.2:
1688-
version "9.3.2"
1689-
resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-9.3.2.tgz#28db8c1be66fd2d736f28f7c5de7619e64cd6dab"
1690-
integrity sha512-u1rfKP4o4ew7Yjbfycv80aNMN2feTiqseAhUhrrx2XtdQGmu7gucpziXe68Z4YfHVqlxVEzo4aUA0Iu3VQOTgQ==
1667+
standard-version@^9.5.0:
1668+
version "9.5.0"
1669+
resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-9.5.0.tgz#851d6dcddf5320d5079601832aeb185dbf497949"
1670+
integrity sha512-3zWJ/mmZQsOaO+fOlsa0+QK90pwhNd042qEcw6hKFNoLFs7peGyvPffpEBbK/DSGPbyOvli0mUIFv5A4qTjh2Q==
16911671
dependencies:
16921672
chalk "^2.4.2"
1693-
conventional-changelog "3.1.24"
1673+
conventional-changelog "3.1.25"
16941674
conventional-changelog-config-spec "2.1.0"
1695-
conventional-changelog-conventionalcommits "4.6.1"
1675+
conventional-changelog-conventionalcommits "4.6.3"
16961676
conventional-recommended-bump "6.1.0"
16971677
detect-indent "^6.0.0"
16981678
detect-newline "^3.1.0"
16991679
dotgitignore "^2.1.0"
17001680
figures "^3.1.0"
17011681
find-up "^5.0.0"
1702-
fs-access "^1.0.1"
17031682
git-semver-tags "^4.0.0"
17041683
semver "^7.1.1"
17051684
stringify-package "^1.0.1"
@@ -1957,10 +1936,10 @@ wrappy@1:
19571936
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
19581937
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
19591938

1960-
ws@8.5.0:
1961-
version "8.5.0"
1962-
resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f"
1963-
integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==
1939+
ws@8.8.1:
1940+
version "8.8.1"
1941+
resolved "https://registry.yarnpkg.com/ws/-/ws-8.8.1.tgz#5dbad0feb7ade8ecc99b830c1d77c913d4955ff0"
1942+
integrity sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==
19641943

19651944
xtend@~4.0.1:
19661945
version "4.0.2"
@@ -2013,10 +1992,10 @@ yargs@^16.0.0:
20131992
y18n "^5.0.5"
20141993
yargs-parser "^20.2.2"
20151994

2016-
yargs@^17.4.0:
2017-
version "17.4.0"
2018-
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.4.0.tgz#9fc9efc96bd3aa2c1240446af28499f0e7593d00"
2019-
integrity sha512-WJudfrk81yWFSOkZYpAZx4Nt7V4xp7S/uJkX0CnxovMCt1wCE8LNftPpNuF9X/u9gN5nsD7ycYtRcDf2pL3UiA==
1995+
yargs@^17.5.1:
1996+
version "17.5.1"
1997+
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e"
1998+
integrity sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==
20201999
dependencies:
20212000
cliui "^7.0.2"
20222001
escalade "^3.1.1"

0 commit comments

Comments
 (0)