@teambit/mdx 0.0.574 → 0.0.575
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mdx.detector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["mdx.detector.ts"],"names":["MDXDependencyDetector","constructor","supportedExtensions","isSupported","context","includes","ext","detect","source","output","imports","getImportSpecifiers","files","map","importSpec","fromModule"],"mappings":";;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,qBAAN,CAA0D;AAC/DC,EAAAA,WAAW,CAASC,mBAAT,EAAwC;AAAA,SAA/BA,mBAA+B,GAA/BA,mBAA+B;AAAE;;AAErDC,EAAAA,WAAW,CAACC,OAAD,EAAgC;AACzC,WAAO,KAAKF,mBAAL,CAAyBG,QAAzB,CAAkCD,OAAO,CAACE,GAA1C,CAAP;AACD;;AAEDC,EAAAA,MAAM,CAACC,MAAD,EAA2B;AAC/B,UAAMC,MAAM,GAAG,+BAAYD,MAAZ,CAAf;AACA,UAAME,OAAO,GAAGD,MAAM,CAACE,mBAAP,EAAhB;AACA,QAAI,CAACD,OAAL,EAAc,OAAO,EAAP;AACd,UAAME,KAAe,GAAGF,OAAO,CAACG,GAAR,CAAaC,UAAD,IAAgB;AAClD,aAAOA,UAAU,CAACC,UAAlB;AACD,KAFuB,CAAxB;AAIA,WAAOH,KAAP;AACD;;AAhB8D","sourcesContent":["import { DependencyDetector, FileContext } from '@teambit/dependency-resolver';\nimport { compileSync } from '@teambit/mdx.modules.mdx-compiler';\n\nexport class MDXDependencyDetector implements DependencyDetector {\n constructor(private supportedExtensions: string[]) {}\n\n isSupported(context: FileContext): boolean {\n return this.supportedExtensions.includes(context.ext);\n }\n\n detect(source: string): string[] {\n const output = compileSync(source);\n const imports = output.getImportSpecifiers();\n if (!imports) return [];\n const files: string[] = imports.map((importSpec) => {\n return importSpec.fromModule;\n });\n\n return files;\n }\n}"]}
|
|
1
|
+
{"version":3,"sources":["mdx.detector.ts"],"names":["MDXDependencyDetector","constructor","supportedExtensions","isSupported","context","includes","ext","detect","source","output","imports","getImportSpecifiers","files","map","importSpec","fromModule"],"mappings":";;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,qBAAN,CAA0D;AAC/DC,EAAAA,WAAW,CAASC,mBAAT,EAAwC;AAAA,SAA/BA,mBAA+B,GAA/BA,mBAA+B;AAAE;;AAErDC,EAAAA,WAAW,CAACC,OAAD,EAAgC;AACzC,WAAO,KAAKF,mBAAL,CAAyBG,QAAzB,CAAkCD,OAAO,CAACE,GAA1C,CAAP;AACD;;AAEDC,EAAAA,MAAM,CAACC,MAAD,EAA2B;AAC/B,UAAMC,MAAM,GAAG,+BAAYD,MAAZ,CAAf;AACA,UAAME,OAAO,GAAGD,MAAM,CAACE,mBAAP,EAAhB;AACA,QAAI,CAACD,OAAL,EAAc,OAAO,EAAP;AACd,UAAME,KAAe,GAAGF,OAAO,CAACG,GAAR,CAAaC,UAAD,IAAgB;AAClD,aAAOA,UAAU,CAACC,UAAlB;AACD,KAFuB,CAAxB;AAIA,WAAOH,KAAP;AACD;;AAhB8D","sourcesContent":["import { DependencyDetector, FileContext } from '@teambit/dependency-resolver';\nimport { compileSync } from '@teambit/mdx.modules.mdx-compiler';\n\nexport class MDXDependencyDetector implements DependencyDetector {\n constructor(private supportedExtensions: string[]) {}\n\n isSupported(context: FileContext): boolean {\n return this.supportedExtensions.includes(context.ext);\n }\n\n detect(source: string): string[] {\n const output = compileSync(source);\n const imports = output.getImportSpecifiers();\n if (!imports) return [];\n const files: string[] = imports.map((importSpec) => {\n return importSpec.fromModule;\n });\n\n return files;\n }\n}\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/mdx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.575",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/mdx/mdx",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.mdx",
|
|
8
8
|
"name": "mdx",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.575"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
"minimatch": "3.0.4",
|
|
16
16
|
"@babel/runtime": "7.12.18",
|
|
17
17
|
"core-js": "^3.0.0",
|
|
18
|
-
"@teambit/builder": "0.0.
|
|
18
|
+
"@teambit/builder": "0.0.595",
|
|
19
19
|
"@teambit/compilation.modules.babel-compiler": "0.0.123",
|
|
20
|
-
"@teambit/compiler": "0.0.
|
|
21
|
-
"@teambit/mdx.modules.mdx-compiler": "0.0.
|
|
22
|
-
"@teambit/dependency-resolver": "0.0.
|
|
23
|
-
"@teambit/docs": "0.0.
|
|
24
|
-
"@teambit/babel": "0.0.
|
|
25
|
-
"@teambit/cli": "0.0.
|
|
26
|
-
"@teambit/envs": "0.0.
|
|
27
|
-
"@teambit/generator": "0.0.
|
|
28
|
-
"@teambit/multi-compiler": "0.0.
|
|
29
|
-
"@teambit/react": "0.0.
|
|
20
|
+
"@teambit/compiler": "0.0.595",
|
|
21
|
+
"@teambit/mdx.modules.mdx-compiler": "0.0.486",
|
|
22
|
+
"@teambit/dependency-resolver": "0.0.595",
|
|
23
|
+
"@teambit/docs": "0.0.595",
|
|
24
|
+
"@teambit/babel": "0.0.595",
|
|
25
|
+
"@teambit/cli": "0.0.409",
|
|
26
|
+
"@teambit/envs": "0.0.595",
|
|
27
|
+
"@teambit/generator": "0.0.595",
|
|
28
|
+
"@teambit/multi-compiler": "0.0.595",
|
|
29
|
+
"@teambit/react": "0.0.595",
|
|
30
30
|
"@teambit/typescript.modules.ts-config-mutator": "0.0.65",
|
|
31
|
-
"@teambit/typescript": "0.0.
|
|
32
|
-
"@teambit/compositions": "0.0.
|
|
31
|
+
"@teambit/typescript": "0.0.595",
|
|
32
|
+
"@teambit/compositions": "0.0.595",
|
|
33
33
|
"@teambit/design.ui.empty-box": "0.0.352",
|
|
34
|
-
"@teambit/tester": "0.0.
|
|
35
|
-
"@teambit/ui": "0.0.
|
|
34
|
+
"@teambit/tester": "0.0.595",
|
|
35
|
+
"@teambit/ui": "0.0.595"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/fs-extra": "9.0.7",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@teambit/mdx.aspect-docs.mdx": "0.0.130"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@teambit/legacy": "1.0.
|
|
51
|
+
"@teambit/legacy": "1.0.196",
|
|
52
52
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
53
53
|
"react": "^16.8.0 || ^17.0.0"
|
|
54
54
|
},
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"react": "-"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@teambit/legacy": "1.0.
|
|
79
|
+
"@teambit/legacy": "1.0.196",
|
|
80
80
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
81
81
|
"react": "^16.8.0 || ^17.0.0"
|
|
82
82
|
}
|
|
Binary file
|