Skip to content

Commit f45d2ac

Browse files
Update dev-dependencies
Closes GH-13. Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
1 parent 9f63db3 commit f45d2ac

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

lib/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,13 @@ function createLocation(ctx, node, location) {
285285
/** @type {string} */
286286
let key
287287

288-
for (key in location.attrs) {
289-
if (own.call(location.attrs, key)) {
290-
props[find(ctx.schema, key).property] = position(location.attrs[key])
288+
if (location.attrs) {
289+
for (key in location.attrs) {
290+
if (own.call(location.attrs, key)) {
291+
props[find(ctx.schema, key).property] = position(
292+
location.attrs[key]
293+
)
294+
}
291295
}
292296
}
293297

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
"is-hidden": "^2.0.0",
4949
"parse5": "^6.0.0",
5050
"prettier": "^2.0.0",
51-
"remark-cli": "^9.0.0",
52-
"remark-preset-wooorm": "^8.0.0",
51+
"remark-cli": "^10.0.0",
52+
"remark-preset-wooorm": "^9.0.0",
5353
"rimraf": "^3.0.0",
5454
"tape": "^5.0.0",
5555
"to-vfile": "^7.0.0",
5656
"type-coverage": "^2.0.0",
5757
"typescript": "^4.0.0",
5858
"unist-util-visit": "^4.0.0",
59-
"xo": "^0.42.0"
59+
"xo": "^0.49.0"
6060
},
6161
"scripts": {
6262
"prepack": "npm run build && npm run format",

0 commit comments

Comments
 (0)