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 2.1.1 to 2.1.2

7

lib/node.js

@@ -40,2 +40,4 @@ "use strict";

_this.nodeRef = React.createRef();
_this.typeset = _this.typeset;

@@ -149,3 +151,4 @@ return _this;

this.script.type = "math/" + type + "; " + (inline ? "" : "mode=display");
this.refs.node.appendChild(this.script);
this.nodeRef.current.appendChild(this.script);
}

@@ -168,3 +171,3 @@

value: function render() {
return React.createElement("span", { ref: "node" });
return React.createElement("span", { ref: this.nodeRef });
}

@@ -171,0 +174,0 @@ }]);

{
"name": "@nteract/mathjax",
"version": "2.1.1",
"version": "2.1.2",
"description": "React components for MathJax",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -18,2 +18,3 @@ // @flow

script: ?HTMLScriptElement;
nodeRef: React.ElementRef<*>;

@@ -28,2 +29,4 @@ static defaultProps = {

this.nodeRef = React.createRef();
(this: any).typeset = this.typeset;

@@ -119,3 +122,4 @@ }

this.script.type = `math/${type}; ${inline ? "" : "mode=display"}`;
this.refs.node.appendChild(this.script);
this.nodeRef.current.appendChild(this.script);
}

@@ -137,3 +141,3 @@

render() {
return React.createElement("span", { ref: "node" });
return <span ref={this.nodeRef} />;
}

@@ -140,0 +144,0 @@ }

Sorry, the diff of this file is not supported yet

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