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

mobx-react

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-react - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

custom.d.ts

5

CHANGELOG.md
# MobX-React Changelog
### 3.2.1
* Added typescript typings form `mobx-react/native` and `mobx-react/custom`
* Fixed #63: error when using stateless function components when using babel and typescript
### 3.2.0

@@ -4,0 +9,0 @@

7

custom.js

@@ -151,3 +151,8 @@ (function() {

// wrap it to a react class automatically
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) {
if (
typeof componentClass === "function" &&
(!componentClass.prototype || !componentClass.prototype.render) &&
!componentClass.isReactClass &&
!React.Component.isPrototypeOf(componentClass)
) {
return observer(React.createClass({

@@ -154,0 +159,0 @@ displayName: componentClass.displayName || componentClass.name,

@@ -151,3 +151,8 @@ (function() {

// wrap it to a react class automatically
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) {
if (
typeof componentClass === "function" &&
(!componentClass.prototype || !componentClass.prototype.render) &&
!componentClass.isReactClass &&
!React.Component.isPrototypeOf(componentClass)
) {
return observer(React.createClass({

@@ -154,0 +159,0 @@ displayName: componentClass.displayName || componentClass.name,

@@ -151,3 +151,8 @@ (function() {

// wrap it to a react class automatically
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) {
if (
typeof componentClass === "function" &&
(!componentClass.prototype || !componentClass.prototype.render) &&
!componentClass.isReactClass &&
!React.Component.isPrototypeOf(componentClass)
) {
return observer(React.createClass({

@@ -154,0 +159,0 @@ displayName: componentClass.displayName || componentClass.name,

4

package.json
{
"name": "mobx-react",
"version": "3.3.0",
"version": "3.3.1",
"description": "React bindings for MobX. Create fully reactive components.",

@@ -12,3 +12,3 @@ "main": "index.js",

"scripts": {
"build": "cp index.js native.js && git apply mobx-react-native.patch && cp index.js custom.js && git apply mobx-react-custom.patch",
"build": "cp index.js native.js && git apply mobx-react-native.patch && cp index.js custom.js && git apply mobx-react-custom.patch && cp index.d.ts native.d.ts && cp index.d.ts custom.d.ts",
"prepublish": "npm run build",

@@ -15,0 +15,0 @@ "test": "browserify test/*.js | tape-run && tsc -p test/ts",

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