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

rc-virtual-list

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-virtual-list - npm Package Compare versions

Comparing version 0.0.0-alpha.18 to 0.0.0-alpha.19

7

es/List.js

@@ -550,2 +550,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

if (!isVirtual) {
/**
* Virtual list switch is works on component updated.
* We should double check here if need cut the content.
*/
var shouldVirtual = requireVirtual(height, itemHeight, data.length);
return React.createElement(Component, Object.assign({

@@ -562,3 +567,3 @@ style: height ? _objectSpread({}, style, {

height: height
}, this.renderChildren(data, 0, children)));
}, this.renderChildren(shouldVirtual ? data.slice(0, Math.ceil(height / itemHeight)) : data, 0, children)));
} // Use virtual list

@@ -565,0 +570,0 @@

@@ -566,2 +566,7 @@ "use strict";

if (!isVirtual) {
/**
* Virtual list switch is works on component updated.
* We should double check here if need cut the content.
*/
var shouldVirtual = (0, _itemUtil.requireVirtual)(height, itemHeight, data.length);
return React.createElement(Component, Object.assign({

@@ -578,3 +583,3 @@ style: height ? _objectSpread({}, style, {

height: height
}, this.renderChildren(data, 0, children)));
}, this.renderChildren(shouldVirtual ? data.slice(0, Math.ceil(height / itemHeight)) : data, 0, children)));
} // Use virtual list

@@ -581,0 +586,0 @@

2

package.json
{
"name": "rc-virtual-list",
"version": "0.0.0-alpha.18",
"version": "0.0.0-alpha.19",
"description": "React Virtual List Component",

@@ -5,0 +5,0 @@ "keywords": [

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