Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nteract/mathjax

Package Overview
Dependencies
Maintainers
13
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nteract/mathjax - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

14

lib/node.js

@@ -126,3 +126,9 @@ "use strict";

if (!this.script) return;
MathJax.Hub.Queue(MathJax.Hub.Reprocess(this.script, this.props.onRender));
var reprocess = ["Reprocess", MathJax.Hub, this.script];
if (!this.props.onRender) {
MathJax.Hub.Queue(reprocess);
} else {
MathJax.Hub.Queue(reprocess, this.props.onRender);
}
}

@@ -171,4 +177,4 @@ /**

/*#__PURE__*/
function (_React$Component2) {
(0, _inherits2.default)(MathJaxNode, _React$Component2);
function (_React$PureComponent) {
(0, _inherits2.default)(MathJaxNode, _React$PureComponent);

@@ -210,3 +216,3 @@ function MathJaxNode() {

return MathJaxNode;
}(React.Component);
}(React.PureComponent);

@@ -213,0 +219,0 @@ (0, _defineProperty2.default)(MathJaxNode, "defaultProps", {

@@ -76,6 +76,2 @@ "use strict";

}
_this.setState({
MathJax: MathJax
});
});

@@ -91,2 +87,6 @@ MathJax.Hub.Register.MessageHook("Math Processing Error", function (message) {

}
_this.setState({
MathJax: MathJax
});
});

@@ -93,0 +93,0 @@ _this.state = {

@@ -63,3 +63,9 @@ "use strict";

MathJax.Hub.Queue(MathJax.Hub.Typeset(this.nodeRef.current, this.props.onRender));
var typeset = ["Typeset", MathJax.Hub, this.nodeRef.current];
if (!this.props.onRender) {
MathJax.Hub.Queue(typeset);
} else {
MathJax.Hub.Queue(typeset, this.props.onRender);
}
}

@@ -79,4 +85,4 @@ }, {

/*#__PURE__*/
function (_React$Component2) {
(0, _inherits2.default)(MathJaxText, _React$Component2);
function (_React$PureComponent) {
(0, _inherits2.default)(MathJaxText, _React$PureComponent);

@@ -117,3 +123,3 @@ function MathJaxText() {

return MathJaxText;
}(React.Component);
}(React.PureComponent);

@@ -120,0 +126,0 @@ (0, _defineProperty2.default)(MathJaxText, "defaultProps", {

{
"name": "@nteract/mathjax",
"version": "3.0.0",
"version": "3.0.1",
"description": "React components for MathJax",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

},
"gitHead": "3f9fa9a396cc966327b9d084239d9e024e78664b"
"gitHead": "e4bdb34c3c0402b67e32c6f224f793558157977d"
}

@@ -12,5 +12,3 @@ /* @flow strict */

},
Reprocess: (HTMLElement, cb: ?() => void) => *,
Typeset: (HTMLElement, cb: ?() => void) => *,
Queue: (*) => void,
Queue(...*): void,
processSectionDelay: number

@@ -17,0 +15,0 @@ }

@@ -98,3 +98,9 @@ // @flow

MathJax.Hub.Queue(MathJax.Hub.Reprocess(this.script, this.props.onRender));
const reprocess = ["Reprocess", MathJax.Hub, this.script];
if (!this.props.onRender) {
MathJax.Hub.Queue(reprocess);
} else {
MathJax.Hub.Queue(reprocess, this.props.onRender);
}
}

@@ -134,3 +140,3 @@

class MathJaxNode extends React.Component<Props, null> {
class MathJaxNode extends React.PureComponent<Props, null> {
static defaultProps = {

@@ -137,0 +143,0 @@ inline: false,

@@ -102,6 +102,2 @@ // @flow strict

}
this.setState({
MathJax
});
});

@@ -118,2 +114,6 @@

}
this.setState({
MathJax
});
};

@@ -120,0 +120,0 @@

@@ -36,6 +36,9 @@ // @flow

}
const typeset = ["Typeset", MathJax.Hub, this.nodeRef.current];
MathJax.Hub.Queue(
MathJax.Hub.Typeset(this.nodeRef.current, this.props.onRender)
);
if (!this.props.onRender) {
MathJax.Hub.Queue(typeset);
} else {
MathJax.Hub.Queue(typeset, this.props.onRender);
}
}

@@ -48,3 +51,3 @@

class MathJaxText extends React.Component<Props, null> {
class MathJaxText extends React.PureComponent<Props, null> {
static defaultProps = {

@@ -51,0 +54,0 @@ onRender: null

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc