Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Dec 17, 2020
1 parent 8b6e1bb commit fecc017
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 37 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
},
"devDependencies": {
"mdast-util-from-markdown": "^0.8.0",
"micromark-extension-mdx": "^0.1.0",
"micromark-extension-mdxjs": "^0.1.0",
"micromark-extension-mdx": "^0.2.0",
"micromark-extension-mdxjs": "^0.2.0",
"nyc": "^15.0.0",
"prettier": "^2.0.0",
"remark-cli": "^9.0.0",
Expand Down
36 changes: 27 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Now, running `node example` yields (positional info removed for brevity):
local: {type: 'Identifier', name: 'Box'}
}
],
source: {type: 'Literal', value: 'place'}
source: {type: 'Literal', value: 'place', raw: '"place"'}
}
],
sourceType: 'module'
Expand All @@ -116,10 +116,19 @@ Now, running `node example` yields (positional info removed for brevity):
value: '\n1 + 1 /* } */\n',
data: {
estree: {
type: 'BinaryExpression',
left: {type: 'Literal', value: 1},
operator: '+',
right: {type: 'Literal', value: 1}
type: 'Program',
body: [
{
type: 'ExpressionStatement',
expression: {
type: 'BinaryExpression',
left: {type: 'Literal', value: 1, raw: '1'},
operator: '+',
right: {type: 'Literal', value: 1, raw: '1'}
}
}
],
sourceType: 'module'
}
}
},
Expand All @@ -132,10 +141,19 @@ Now, running `node example` yields (positional info removed for brevity):
value: '1+1',
data: {
estree: {
type: 'BinaryExpression',
left: {type: 'Literal', value: 1},
operator: '+',
right: {type: 'Literal', value: 1}
type: 'Program',
body: [
{
type: 'ExpressionStatement',
expression: {
type: 'BinaryExpression',
left: {type: 'Literal', value: 1, raw: '1'},
operator: '+',
right: {type: 'Literal', value: 1, raw: '1'}
}
}
],
sourceType: 'module'
}
}
},
Expand Down
86 changes: 60 additions & 26 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ test('markdown -> mdast', function (t) {
start: {line: 1, column: 7},
end: {line: 1, column: 8}
},
name: 'a'
}
name: 'a',
range: [7, 8]
},
range: [7, 8]
}
],
source: {
Expand All @@ -69,11 +71,14 @@ test('markdown -> mdast', function (t) {
end: {line: 1, column: 17}
},
value: 'b',
raw: '"b"'
}
raw: '"b"',
range: [14, 17]
},
range: [0, 17]
}
],
sourceType: 'module'
sourceType: 'module',
range: [0, 17]
}
}
}
Expand Down Expand Up @@ -134,27 +139,56 @@ test('markdown -> mdast', function (t) {
},
data: {
estree: {
type: 'BinaryExpression',
start: 0,
end: 5,
loc: {start: {line: 1, column: 0}, end: {line: 1, column: 5}},
left: {
type: 'Literal',
start: 0,
end: 1,
loc: {start: {line: 1, column: 0}, end: {line: 1, column: 1}},
value: 1,
raw: '1'
},
operator: '+',
right: {
type: 'Literal',
start: 4,
end: 5,
loc: {start: {line: 1, column: 4}, end: {line: 1, column: 5}},
value: 1,
raw: '1'
}
type: 'Program',
start: 1,
end: 6,
body: [
{
type: 'ExpressionStatement',
expression: {
type: 'BinaryExpression',
start: 1,
end: 6,
left: {
type: 'Literal',
start: 1,
end: 2,
value: 1,
raw: '1',
loc: {
start: {line: 1, column: 1},
end: {line: 1, column: 2}
},
range: [1, 2]
},
operator: '+',
right: {
type: 'Literal',
start: 5,
end: 6,
value: 1,
raw: '1',
loc: {
start: {line: 1, column: 5},
end: {line: 1, column: 6}
},
range: [5, 6]
},
loc: {
start: {line: 1, column: 1},
end: {line: 1, column: 6}
},
range: [1, 6]
},
start: 1,
end: 6,
loc: {start: {line: 1, column: 1}, end: {line: 1, column: 6}},
range: [1, 6]
}
],
sourceType: 'module',
loc: {start: {line: 1, column: 1}, end: {line: 1, column: 6}},
range: [1, 6]
}
}
}
Expand Down

0 comments on commit fecc017

Please sign in to comment.