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

bulmil-react

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulmil-react - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.2.3](https://github.com/gomah/bulmil/compare/bulmil-react@0.2.2...bulmil-react@0.2.3) (2020-04-23)
**Note:** Version bump only for package bulmil-react
## [0.2.2](https://github.com/gomah/bulmil/compare/bulmil-react@0.2.1...bulmil-react@0.2.2) (2020-04-17)

@@ -8,0 +16,0 @@

8

dist/react-component-lib/createComponent.js

@@ -13,3 +13,2 @@ var __rest = (this && this.__rest) || function (s, e) {

import React from 'react';
import ReactDom from 'react-dom';
import { attachEventProps, createForwardRef, dashToPascalCase, isCoveredByReact, } from './utils/index';

@@ -21,2 +20,3 @@ export const createReactComponent = (tagName) => {

super(props);
this.ref = React.createRef();
}

@@ -27,3 +27,3 @@ componentDidMount() {

componentDidUpdate(prevProps) {
const node = ReactDom.findDOMNode(this);
const node = this.ref.current;
attachEventProps(node, this.props, prevProps);

@@ -39,3 +39,3 @@ }

const eventName = name.substring(2).toLowerCase();
if (isCoveredByReact(eventName)) {
if (typeof document !== "undefined" && isCoveredByReact(eventName)) {
acc[name] = cProps[name];

@@ -49,3 +49,3 @@ }

}, {});
const newProps = Object.assign(Object.assign({}, propsToPass), { ref: forwardedRef, style,
const newProps = Object.assign(Object.assign({}, propsToPass), { ref: this.ref, style,
className });

@@ -52,0 +52,0 @@ return React.createElement(tagName, newProps, children);

{
"name": "bulmil-react",
"sideEffects": false,
"version": "0.2.2",
"version": "0.2.3",
"author": "Gomah",

@@ -27,8 +27,8 @@ "license": "MIT",

"@types/jest": "25.2.1",
"@types/node": "13.11.1",
"@types/node": "13.13.2",
"@types/react": "16.9.32",
"@types/react-dom": "16.9.6",
"jest": "^25.2.7",
"jest": "^25.4.0",
"jest-dom": "^4.0.0",
"np": "^6.2.1",
"np": "^6.2.2",
"react": "^16.13.1",

@@ -40,3 +40,3 @@ "react-dom": "^16.13.1",

"dependencies": {
"bulmil": "^0.2.2"
"bulmil": "^0.2.3"
},

@@ -47,3 +47,3 @@ "peerDependencies": {

},
"gitHead": "ffba6c87c58de397fd42433ab7ede2017f244b3a"
"gitHead": "46b0158e71c181535b0be268da9a186c3c5b6809"
}

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