@putout/processor-markdown 7.0.1 → 7.0.2

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.
Files changed (2) hide show
  1. package/lib/markdown.js +6 -3
  2. package/package.json +2 -2
package/lib/markdown.js CHANGED
@@ -1,4 +1,7 @@
1
- import jsonProcessor from '@putout/processor-json';
1
+ import {
2
+ toJS,
3
+ fromJS,
4
+ } from '@putout/processor-json';
2
5
  import stringify from 'remark-stringify';
3
6
  import preset from 'remark-preset-lint-consistent';
4
7
 
@@ -112,7 +115,7 @@ const collect = ({list, visit}) => (node) => {
112
115
  }
113
116
 
114
117
  if (lang === 'json') {
115
- const source = jsonProcessor.toJS(value);
118
+ const source = toJS(value);
116
119
 
117
120
  list.push({
118
121
  startLine,
@@ -140,7 +143,7 @@ const apply = ({list, visit}) => (node) => {
140
143
  if (lang === 'json') {
141
144
  const code = list.shift();
142
145
 
143
- node.value = jsonProcessor.fromJS(code);
146
+ node.value = fromJS(code);
144
147
  }
145
148
  });
146
149
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/processor-markdown",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout processor adds ability to parse markdown files and lint js snippets",
@@ -24,7 +24,7 @@
24
24
  "report": "madrun report"
25
25
  },
26
26
  "dependencies": {
27
- "@putout/processor-json": "^3.0.0",
27
+ "@putout/processor-json": "^5.0.0",
28
28
  "once": "^1.4.0",
29
29
  "remark-parse": "^10.0.0",
30
30
  "remark-preset-lint-consistent": "^5.0.0",