@atlaspack/transformer-svg-react 2.14.19 → 2.14.20

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,14 @@
1
1
  # @atlaspack/transformer-svg-react
2
2
 
3
+ ## 2.14.20
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
9
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
10
+ - @atlaspack/plugin@2.14.20
11
+
3
12
  ## 2.14.19
4
13
 
5
14
  ### Patch Changes
@@ -50,7 +50,9 @@ var _default = exports.default = new (_plugin().Transformer)({
50
50
  }) {
51
51
  var _config$svgr;
52
52
  let code = await asset.getCode();
53
- const jsx = await (0, _core().transform)(code, {
53
+ const jsx = await (0, _core().transform)(code,
54
+ // $FlowFixMe
55
+ {
54
56
  svgoConfig: config.svgo,
55
57
  ...config.svgr,
56
58
  runtimeConfig: false
@@ -61,6 +63,8 @@ var _default = exports.default = new (_plugin().Transformer)({
61
63
  },
62
64
  filePath: asset.filePath
63
65
  });
66
+
67
+ // $FlowFixMe
64
68
  asset.type = (_config$svgr = config.svgr) !== null && _config$svgr !== void 0 && _config$svgr.typescript ? 'tsx' : 'jsx';
65
69
  asset.bundleBehavior = null;
66
70
  asset.setCode(jsx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-svg-react",
3
- "version": "2.14.19",
3
+ "version": "2.14.20",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,7 +15,7 @@
15
15
  "node": ">= 16.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@atlaspack/plugin": "2.14.19",
18
+ "@atlaspack/plugin": "2.14.20",
19
19
  "@svgr/core": "^6.2.0",
20
20
  "@svgr/plugin-jsx": "^6.2.0",
21
21
  "@svgr/plugin-svgo": "^6.2.0"
@@ -33,6 +33,7 @@ export default (new Transformer({
33
33
 
34
34
  const jsx = await transform(
35
35
  code,
36
+ // $FlowFixMe
36
37
  {svgoConfig: config.svgo, ...config.svgr, runtimeConfig: false},
37
38
  {
38
39
  caller: {
@@ -43,10 +44,11 @@ export default (new Transformer({
43
44
  },
44
45
  );
45
46
 
47
+ // $FlowFixMe
46
48
  asset.type = config.svgr?.typescript ? 'tsx' : 'jsx';
47
49
  asset.bundleBehavior = null;
48
50
  asset.setCode(jsx);
49
51
 
50
52
  return [asset];
51
53
  },
52
- }): Transformer);
54
+ }): Transformer<mixed>);