chore(deps): lock file maintenance (#3428)
* chore(deps): lock file maintenance * fix: don't add undefined children property * chore: add missing axios dependency Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
This commit is contained in:
parent
69c2a7df9c
commit
d812eecc51
@ -103,6 +103,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^2.9.0",
|
||||
"@typescript-eslint/parser": "^2.9.0",
|
||||
"all-contributors-cli": "^6.0.0",
|
||||
"axios": "^0.19.2",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-eslint": "^11.0.0-beta.2",
|
||||
"babel-jest": "^24.5.0",
|
||||
|
@ -243,7 +243,7 @@ export default function remarkEscapeMarkdownEntities() {
|
||||
*/
|
||||
if (has(node.data, 'shortcode')) return node;
|
||||
|
||||
const children = node.children && node.children.map(transform);
|
||||
const children = node.children ? { children: node.children.map(transform) } : {};
|
||||
|
||||
/**
|
||||
* Escape characters in text and html nodes only. We store a lot of normal
|
||||
@ -255,13 +255,13 @@ export default function remarkEscapeMarkdownEntities() {
|
||||
* common characters.
|
||||
*/
|
||||
const value = index === 0 ? escapeAllChars(node.value) : escapeCommonChars(node.value);
|
||||
return { ...node, value, children };
|
||||
return { ...node, value, ...children };
|
||||
}
|
||||
|
||||
/**
|
||||
* Always return nodes with recursively mapped children.
|
||||
*/
|
||||
return { ...node, children };
|
||||
return { ...node, ...children };
|
||||
};
|
||||
|
||||
return transform;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user