Skip to content

Commit d449e7c

Browse files
tmcwarlac77ggrossetie
authored
feat: Support import.meta
* fix: enable import.meta + static import by switching from detective to konan * fix(deps): updated lock * Revert "fix(deps): updated lock" This reverts commit b4be07e. * Dependency update bumps (#1345) * fix(deps): update lock * fix(deps): merge lock * fix(deps): use [email protected] * fix(deps): yarn... * Use detective if konan fails ggrossetie/module-deps@f78550a * chore: Use released module-deps Co-authored-by: Markus Felten <[email protected]> Co-authored-by: Guillaume Grossetie <[email protected]>
1 parent 6f01ad2 commit d449e7c

File tree

4 files changed

+68
-5
lines changed

4 files changed

+68
-5
lines changed

__tests__/__snapshots__/test.js.snap

+21
Original file line numberDiff line numberDiff line change
@@ -20854,6 +20854,27 @@ Object {
2085420854
}
2085520855
`;
2085620856

20857+
exports[`outputs import.meta.input.js JSON 1`] = `Array []`;
20858+
20859+
exports[`outputs import.meta.input.js markdown 1`] = `
20860+
"<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
20861+
20862+
### Table of Contents
20863+
"
20864+
`;
20865+
20866+
exports[`outputs import.meta.input.js markdown AST 1`] = `
20867+
Object {
20868+
"children": Array [
20869+
Object {
20870+
"type": "html",
20871+
"value": "<!-- Generated by documentation.js. Update this documentation by updating the source code. -->",
20872+
},
20873+
],
20874+
"type": "root",
20875+
}
20876+
`;
20877+
2085720878
exports[`outputs infer-private.input.js JSON 1`] = `
2085820879
Array [
2085920880
Object {
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import x from "y";
2+
3+
4+
console.log(import.meta.url);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"mdast-util-inject": "^1.1.0",
5454
"micromatch": "^3.1.5",
5555
"mime": "^2.2.0",
56-
"module-deps-sortable": "^5.0.1",
56+
"module-deps-sortable": "^5.0.3",
5757
"parse-filepath": "^1.0.2",
5858
"pify": "^5.0.0",
5959
"read-pkg-up": "^4.0.0",

yarn.lock

+42-4
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@
291291
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.5.tgz#b4af32ddd473c0bfa643bd7ff0728b8e71b81ea0"
292292
integrity sha512-FVM6RZQ0mn2KCf1VUED7KepYeUWoVShczewOCfm3nzoBybaih51h+sYVVGthW9M6lPByEPTQf+xm27PBdlpwmQ==
293293

294+
"@babel/parser@^7.10.5", "@babel/parser@^7.12.7":
295+
version "7.12.7"
296+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.7.tgz#fee7b39fe809d0e73e5b25eecaf5780ef3d73056"
297+
integrity sha512-oWR02Ubp4xTLCAqPRiNIuMVgNO5Aif/xpXtabhzW2HWUD47XJsAB4Zd/Rg30+XeQA3juXigV7hlquOTmwqLiwg==
298+
294299
"@babel/plugin-proposal-async-generator-functions@^7.12.1":
295300
version "7.12.1"
296301
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.1.tgz#dc6c1170e27d8aca99ff65f4925bd06b1c90550e"
@@ -1063,6 +1068,21 @@
10631068
globals "^11.1.0"
10641069
lodash "^4.17.19"
10651070

1071+
"@babel/traverse@^7.10.5":
1072+
version "7.12.7"
1073+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.7.tgz#572a722408681cef17d6b0bef69ef2e728ca69f1"
1074+
integrity sha512-nMWaqsQEeSvMNypswUDzjqQ+0rR6pqCtoQpsqGJC4/Khm9cISwPTSpai57F6/jDaOoEGz8yE/WxcO3PV6tKSmQ==
1075+
dependencies:
1076+
"@babel/code-frame" "^7.10.4"
1077+
"@babel/generator" "^7.12.5"
1078+
"@babel/helper-function-name" "^7.10.4"
1079+
"@babel/helper-split-export-declaration" "^7.11.0"
1080+
"@babel/parser" "^7.12.7"
1081+
"@babel/types" "^7.12.7"
1082+
debug "^4.1.0"
1083+
globals "^11.1.0"
1084+
lodash "^4.17.19"
1085+
10661086
"@babel/types@^7.0.0", "@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.12.1", "@babel/types@^7.12.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0":
10671087
version "7.12.6"
10681088
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.6.tgz#ae0e55ef1cce1fbc881cd26f8234eb3e657edc96"
@@ -1072,6 +1092,15 @@
10721092
lodash "^4.17.19"
10731093
to-fast-properties "^2.0.0"
10741094

1095+
"@babel/types@^7.12.7":
1096+
version "7.12.7"
1097+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.7.tgz#6039ff1e242640a29452c9ae572162ec9a8f5d13"
1098+
integrity sha512-MNyI92qZq6jrQkXvtIiykvl4WtoRrVV9MPn+ZfsoEENjiWcBQ3ZSHrkxnJWgWtLX3XXqX5hrSQ+X69wkmesXuQ==
1099+
dependencies:
1100+
"@babel/helper-validator-identifier" "^7.10.4"
1101+
lodash "^4.17.19"
1102+
to-fast-properties "^2.0.0"
1103+
10751104
"@bcoe/v8-coverage@^0.2.3":
10761105
version "0.2.3"
10771106
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
@@ -4789,6 +4818,14 @@ kleur@^3.0.3:
47894818
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
47904819
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
47914820

4821+
konan@^2.1.1:
4822+
version "2.1.1"
4823+
resolved "https://registry.yarnpkg.com/konan/-/konan-2.1.1.tgz#eea88f05c56249b78903b952b953393900346dd1"
4824+
integrity sha512-7ZhYV84UzJ0PR/RJnnsMZcAbn+kLasJhVNWsu8ZyVEJYRpGA5XESQ9d/7zOa08U0Ou4cmB++hMNY/3OSV9KIbg==
4825+
dependencies:
4826+
"@babel/parser" "^7.10.5"
4827+
"@babel/traverse" "^7.10.5"
4828+
47924829
lazystream@^1.0.0:
47934830
version "1.0.0"
47944831
resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.0.tgz#f6995fe0f820392f61396be89462407bb77168e4"
@@ -5343,10 +5380,10 @@ modify-values@^1.0.0:
53435380
resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
53445381
integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==
53455382

5346-
module-deps-sortable@^5.0.1:
5347-
version "5.0.1"
5348-
resolved "https://registry.yarnpkg.com/module-deps-sortable/-/module-deps-sortable-5.0.1.tgz#b7eec1cb1e556e97db152a78292f768752797615"
5349-
integrity sha512-QCQPk/u41XIBX5Hy2PCDyXS5kg2tZZSQGedEhfvZa2bO4FhxUov+4/2WSXZ5dNtvuyMnqBcfCau6XJZp9DqJoA==
5383+
module-deps-sortable@^5.0.3:
5384+
version "5.0.3"
5385+
resolved "https://registry.yarnpkg.com/module-deps-sortable/-/module-deps-sortable-5.0.3.tgz#e640e7450e0869f4ae8e03437665ca2a8a28f843"
5386+
integrity sha512-eiyIZj/A0dj1o4ywXWqicazUL3l0HP3TydUR6xF0X3xh3LGBMLqW8a9aFe6MuNH4mxNMk53QKBHM6LOPR8kSgw==
53505387
dependencies:
53515388
JSONStream "^1.0.3"
53525389
browser-resolve "^1.7.0"
@@ -5356,6 +5393,7 @@ module-deps-sortable@^5.0.1:
53565393
detective "^5.2.0"
53575394
duplexer2 "^0.1.2"
53585395
inherits "^2.0.1"
5396+
konan "^2.1.1"
53595397
readable-stream "^2.0.2"
53605398
resolve "^1.1.3"
53615399
standard-version "^9.0.0"

0 commit comments

Comments
 (0)