build(deps): update dependencies (#2301)

* Bump flow version

* Bump jest version

* Bump eslint version

* Bump rollup version

* Bump webpack version

* Bump misc dependencies and update lockfile

* Update lockfile

* Bump commander version

* Bump misc dependencies

* Bump istanbul version

* Bump docusaurus version

* Update lockfile

* Explicitly declare dependencies

* Bump caniuse-lite version

* Update lockfile

* Bump commander version

* Bump webpack and css-loader version

* Bump flow version
This commit is contained in:
ylemkimon
2020-07-26 03:38:29 +09:00
committed by GitHub
parent e76857ec03
commit 8a24907518
28 changed files with 11760 additions and 4516 deletions

View File

@@ -975,6 +975,7 @@ export default class Parser {
text,
};
}
// $FlowFixMe
symbol = s;
} else if (text.charCodeAt(0) >= 0x80) { // no symbol for e.g. ^
if (this.settings.strict) {
@@ -1025,10 +1026,12 @@ export default class Parser {
label: command,
isStretchy: false,
isShifty: true,
// $FlowFixMe
base: symbol,
};
}
}
// $FlowFixMe
return symbol;
}
}

View File

@@ -219,6 +219,7 @@ export const buildGroup = function(
// Call the groupBuilders function
// $FlowFixMe
const result: MathDomNode = groupBuilders[group.type](group, options);
// $FlowFixMe
return result;
} else {
throw new ParseError(

View File

@@ -108,7 +108,6 @@ export default function defineEnvironment<NODETYPE: NodeType>({
// TODO: The value type of _environments should be a type union of all
// possible `EnvSpec<>` possibilities instead of `EnvSpec<*>`, which is
// an existential type.
// $FlowFixMe
_environments[names[i]] = data;
}
if (htmlBuilder) {

View File

@@ -6,7 +6,6 @@ import environments from "../environments";
// Environment delimiters. HTML/MathML rendering is defined in the corresponding
// defineEnvironment definitions.
// $FlowFixMe, "environment" handler returns an environment ParseNode
defineFunction({
type: "environment",
names: ["\\begin", "\\end"],
@@ -14,6 +13,7 @@ defineFunction({
numArgs: 1,
argTypes: ["text"],
},
// $FlowFixMe, "environment" handler returns an environment ParseNode
handler({parser, funcName}, args) {
const nameGroup = args[0];
if (nameGroup.type !== "ordgroup") {

View File

@@ -61,7 +61,6 @@ export const htmlBuilder: HtmlBuilderSupSub<"op"> = (grp, options) => {
// No font glyphs yet, so use a glyph w/o the oval.
// TODO: When font glyphs are available, delete this code.
stash = group.name.substr(1);
// $FlowFixMe
group.name = stash === "oiint" ? "\\iint" : "\\iiint";
}
@@ -82,7 +81,6 @@ export const htmlBuilder: HtmlBuilderSupSub<"op"> = (grp, options) => {
{type: "elem", elem: oval, shift: large ? 0.08 : 0},
],
}, options);
// $FlowFixMe
group.name = "\\" + stash;
base.classes.unshift("mop");
// $FlowFixMe

View File

@@ -458,6 +458,7 @@ export function assertNodeType<NODETYPE: NodeType>(
`Expected node of type ${type}, but got ` +
(node ? `node of type ${node.type}` : String(node)));
}
// $FlowFixMe, >=0.125
return node;
}