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

rc-virtual-list

Package Overview
Dependencies
Maintainers
2
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 3.10.6 to 3.10.7

1

es/List.d.ts

@@ -33,2 +33,3 @@ import * as React from 'react';

* `scrollWidth` will be used as the real width instead of container width.
* When set, `virtual` will always be enabled.
*/

@@ -35,0 +36,0 @@ scrollWidth?: number;

2

es/List.js

@@ -56,3 +56,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

var useVirtual = !!(virtual !== false && height && itemHeight);
var inVirtual = useVirtual && data && itemHeight * data.length > height;
var inVirtual = useVirtual && data && (itemHeight * data.length > height || !!scrollWidth);
var isRTL = direction === 'rtl';

@@ -59,0 +59,0 @@ var mergedClassName = classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-rtl"), isRTL), className);

@@ -33,2 +33,3 @@ import * as React from 'react';

* `scrollWidth` will be used as the real width instead of container width.
* When set, `virtual` will always be enabled.
*/

@@ -35,0 +36,0 @@ scrollWidth?: number;

@@ -64,3 +64,3 @@ "use strict";

var useVirtual = !!(virtual !== false && height && itemHeight);
var inVirtual = useVirtual && data && itemHeight * data.length > height;
var inVirtual = useVirtual && data && (itemHeight * data.length > height || !!scrollWidth);
var isRTL = direction === 'rtl';

@@ -67,0 +67,0 @@ var mergedClassName = (0, _classnames.default)(prefixCls, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-rtl"), isRTL), className);

{
"name": "rc-virtual-list",
"version": "3.10.6",
"version": "3.10.7",
"description": "React Virtual List Component",

@@ -5,0 +5,0 @@ "engines": {

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