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

rc-util

Package Overview
Dependencies
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-util - npm Package Compare versions

Comparing version 4.0.4 to 4.1.0

es/Portal.js

4

es/Dom/class.js

@@ -6,3 +6,3 @@ export function hasClass(node, className) {

var originClass = node.className;
return originClass.indexOf(className) > -1;
return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;
}

@@ -26,5 +26,5 @@

var originClass = node.className;
node.className = originClass.replace(className, '');
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', '');
}
}
}

@@ -14,3 +14,3 @@ 'use strict';

var originClass = node.className;
return originClass.indexOf(className) > -1;
return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;
}

@@ -34,5 +34,5 @@

var originClass = node.className;
node.className = originClass.replace(className, '');
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', '');
}
}
}
{
"name": "rc-util",
"version": "4.0.4",
"version": "4.1.0",
"description": "Common Utils For React Component",

@@ -56,4 +56,5 @@ "keywords": [

"babel-runtime": "6.x",
"prop-types": "^15.5.10",
"shallowequal": "^0.2.2"
}
}

@@ -69,2 +69,18 @@ # rc-util

### Portal
Render children to the specific container;
```jsx
import Portal from 'rc-util/lib/Portal';
```
Props:
| Prop | Type | Description | Default |
|-------|------|-------------|---------|
| children | ReactChildren | Content render to the container | - |
| getContaienr | (): HTMLElement | A function to get the container | - |
### getScrollBarSize

@@ -71,0 +87,0 @@

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