Skip to content

Commit fecc017

Browse files
committed
Update dev-dependencies
1 parent 8b6e1bb commit fecc017

File tree

3 files changed

+89
-37
lines changed

3 files changed

+89
-37
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
},
4141
"devDependencies": {
4242
"mdast-util-from-markdown": "^0.8.0",
43-
"micromark-extension-mdx": "^0.1.0",
44-
"micromark-extension-mdxjs": "^0.1.0",
43+
"micromark-extension-mdx": "^0.2.0",
44+
"micromark-extension-mdxjs": "^0.2.0",
4545
"nyc": "^15.0.0",
4646
"prettier": "^2.0.0",
4747
"remark-cli": "^9.0.0",

readme.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Now, running `node example` yields (positional info removed for brevity):
100100
local: {type: 'Identifier', name: 'Box'}
101101
}
102102
],
103-
source: {type: 'Literal', value: 'place'}
103+
source: {type: 'Literal', value: 'place', raw: '"place"'}
104104
}
105105
],
106106
sourceType: 'module'
@@ -116,10 +116,19 @@ Now, running `node example` yields (positional info removed for brevity):
116116
value: '\n1 + 1 /* } */\n',
117117
data: {
118118
estree: {
119-
type: 'BinaryExpression',
120-
left: {type: 'Literal', value: 1},
121-
operator: '+',
122-
right: {type: 'Literal', value: 1}
119+
type: 'Program',
120+
body: [
121+
{
122+
type: 'ExpressionStatement',
123+
expression: {
124+
type: 'BinaryExpression',
125+
left: {type: 'Literal', value: 1, raw: '1'},
126+
operator: '+',
127+
right: {type: 'Literal', value: 1, raw: '1'}
128+
}
129+
}
130+
],
131+
sourceType: 'module'
123132
}
124133
}
125134
},
@@ -132,10 +141,19 @@ Now, running `node example` yields (positional info removed for brevity):
132141
value: '1+1',
133142
data: {
134143
estree: {
135-
type: 'BinaryExpression',
136-
left: {type: 'Literal', value: 1},
137-
operator: '+',
138-
right: {type: 'Literal', value: 1}
144+
type: 'Program',
145+
body: [
146+
{
147+
type: 'ExpressionStatement',
148+
expression: {
149+
type: 'BinaryExpression',
150+
left: {type: 'Literal', value: 1, raw: '1'},
151+
operator: '+',
152+
right: {type: 'Literal', value: 1, raw: '1'}
153+
}
154+
}
155+
],
156+
sourceType: 'module'
139157
}
140158
}
141159
},

test.js

Lines changed: 60 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ test('markdown -> mdast', function (t) {
5656
start: {line: 1, column: 7},
5757
end: {line: 1, column: 8}
5858
},
59-
name: 'a'
60-
}
59+
name: 'a',
60+
range: [7, 8]
61+
},
62+
range: [7, 8]
6163
}
6264
],
6365
source: {
@@ -69,11 +71,14 @@ test('markdown -> mdast', function (t) {
6971
end: {line: 1, column: 17}
7072
},
7173
value: 'b',
72-
raw: '"b"'
73-
}
74+
raw: '"b"',
75+
range: [14, 17]
76+
},
77+
range: [0, 17]
7478
}
7579
],
76-
sourceType: 'module'
80+
sourceType: 'module',
81+
range: [0, 17]
7782
}
7883
}
7984
}
@@ -134,27 +139,56 @@ test('markdown -> mdast', function (t) {
134139
},
135140
data: {
136141
estree: {
137-
type: 'BinaryExpression',
138-
start: 0,
139-
end: 5,
140-
loc: {start: {line: 1, column: 0}, end: {line: 1, column: 5}},
141-
left: {
142-
type: 'Literal',
143-
start: 0,
144-
end: 1,
145-
loc: {start: {line: 1, column: 0}, end: {line: 1, column: 1}},
146-
value: 1,
147-
raw: '1'
148-
},
149-
operator: '+',
150-
right: {
151-
type: 'Literal',
152-
start: 4,
153-
end: 5,
154-
loc: {start: {line: 1, column: 4}, end: {line: 1, column: 5}},
155-
value: 1,
156-
raw: '1'
157-
}
142+
type: 'Program',
143+
start: 1,
144+
end: 6,
145+
body: [
146+
{
147+
type: 'ExpressionStatement',
148+
expression: {
149+
type: 'BinaryExpression',
150+
start: 1,
151+
end: 6,
152+
left: {
153+
type: 'Literal',
154+
start: 1,
155+
end: 2,
156+
value: 1,
157+
raw: '1',
158+
loc: {
159+
start: {line: 1, column: 1},
160+
end: {line: 1, column: 2}
161+
},
162+
range: [1, 2]
163+
},
164+
operator: '+',
165+
right: {
166+
type: 'Literal',
167+
start: 5,
168+
end: 6,
169+
value: 1,
170+
raw: '1',
171+
loc: {
172+
start: {line: 1, column: 5},
173+
end: {line: 1, column: 6}
174+
},
175+
range: [5, 6]
176+
},
177+
loc: {
178+
start: {line: 1, column: 1},
179+
end: {line: 1, column: 6}
180+
},
181+
range: [1, 6]
182+
},
183+
start: 1,
184+
end: 6,
185+
loc: {start: {line: 1, column: 1}, end: {line: 1, column: 6}},
186+
range: [1, 6]
187+
}
188+
],
189+
sourceType: 'module',
190+
loc: {start: {line: 1, column: 1}, end: {line: 1, column: 6}},
191+
range: [1, 6]
158192
}
159193
}
160194
}

0 commit comments

Comments
 (0)