@atlaspack/transformer-mdx 2.14.5-canary.14 → 2.14.5-canary.140

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/CHANGELOG.md CHANGED
@@ -1,5 +1,119 @@
1
1
  # @atlaspack/transformer-mdx
2
2
 
3
+ ## 2.14.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/plugin@2.14.21
9
+
10
+ ## 2.14.20
11
+
12
+ ### Patch Changes
13
+
14
+ - [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
15
+
16
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
17
+ - @atlaspack/plugin@2.14.20
18
+
19
+ ## 2.14.19
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/plugin@2.14.19
25
+
26
+ ## 2.14.18
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies []:
31
+ - @atlaspack/plugin@2.14.18
32
+
33
+ ## 2.14.17
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies []:
38
+ - @atlaspack/plugin@2.14.17
39
+
40
+ ## 2.14.16
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies []:
45
+ - @atlaspack/plugin@2.14.16
46
+
47
+ ## 2.14.15
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies []:
52
+ - @atlaspack/plugin@2.14.15
53
+
54
+ ## 2.14.14
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies []:
59
+ - @atlaspack/plugin@2.14.14
60
+
61
+ ## 2.14.13
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies []:
66
+ - @atlaspack/plugin@2.14.13
67
+
68
+ ## 2.14.12
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies []:
73
+ - @atlaspack/plugin@2.14.12
74
+
75
+ ## 2.14.11
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies []:
80
+ - @atlaspack/plugin@2.14.11
81
+
82
+ ## 2.14.10
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies []:
87
+ - @atlaspack/plugin@2.14.10
88
+
89
+ ## 2.14.9
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies []:
94
+ - @atlaspack/plugin@2.14.9
95
+
96
+ ## 2.14.8
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies []:
101
+ - @atlaspack/plugin@2.14.8
102
+
103
+ ## 2.14.7
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies []:
108
+ - @atlaspack/plugin@2.14.7
109
+
110
+ ## 2.14.6
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies []:
115
+ - @atlaspack/plugin@2.14.6
116
+
3
117
  ## 2.14.5
4
118
 
5
119
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import { Transformer } from '@atlaspack/plugin';
2
+ declare const _default: Transformer<unknown>;
3
+ export default _default;
@@ -19,6 +19,7 @@ function _mdx() {
19
19
  return data;
20
20
  }
21
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
+ // @ts-expect-error TS7016
22
23
  var _default = exports.default = new (_plugin().Transformer)({
23
24
  async transform({
24
25
  asset
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-mdx",
3
- "version": "2.14.5-canary.14+267b0d591",
3
+ "version": "2.14.5-canary.140+43fdd2238",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,18 +9,22 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/atlassian-labs/atlaspack.git"
11
11
  },
12
- "main": "lib/MDXTransformer.js",
13
- "source": "src/MDXTransformer.js",
12
+ "main": "./lib/MDXTransformer.js",
13
+ "source": "./src/MDXTransformer.ts",
14
+ "types": "./lib/MDXTransformer.d.ts",
14
15
  "engines": {
15
16
  "node": ">= 16.0.0"
16
17
  },
17
18
  "dependencies": {
18
- "@atlaspack/plugin": "2.14.5-canary.14+267b0d591",
19
+ "@atlaspack/plugin": "2.14.5-canary.140+43fdd2238",
19
20
  "@mdx-js/mdx": "^1.6.22"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "@mdx-js/react": "^1.6.22"
23
24
  },
24
25
  "type": "commonjs",
25
- "gitHead": "267b0d59131c00e4cd1526bbf87aa84b9c8fd411"
26
- }
26
+ "scripts": {
27
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
28
+ },
29
+ "gitHead": "43fdd223860fbc97af17d68c65419b97412cb888"
30
+ }
@@ -1,8 +1,8 @@
1
- // @flow
2
1
  import {Transformer} from '@atlaspack/plugin';
2
+ // @ts-expect-error TS7016
3
3
  import mdx from '@mdx-js/mdx';
4
4
 
5
- export default (new Transformer({
5
+ export default new Transformer({
6
6
  async transform({asset}) {
7
7
  let code = await asset.getCode();
8
8
  let compiled = await mdx(code);
@@ -17,4 +17,4 @@ ${compiled}
17
17
 
18
18
  return [asset];
19
19
  },
20
- }): Transformer);
20
+ }) as Transformer<unknown>;
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }