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

carousel-component

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carousel-component - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

package.json
{
"name": "carousel-component",
"version": "2.0.3",
"version": "2.0.4",
"description": "A vuejs and reactjs carousel component.",

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

@@ -29,5 +29,5 @@ import * as tslib_1 from "tslib";

var list = this.props.data.filter(function (item, i) { return i >= _this.currentIndex - _this.actualCount && i < _this.currentIndex + _this.actualCount * 2; })
.map(function (item) {
.map(function (item, i) {
var conponent = React.createElement(item.component, { data: item.data });
return (React.createElement("li", { style: _this.liStyle }, conponent));
return (React.createElement("li", { style: _this.liStyle, key: i }, conponent));
});

@@ -34,0 +34,0 @@ return (React.createElement("div", { className: "carousel", style: this.containerStyle },

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