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 3.0.0 to 3.2.1

12

dist/index.d.ts

@@ -0,1 +1,4 @@

/**
* @public
*/
export declare type CarouselData<T = any> = {

@@ -5,4 +8,13 @@ component: string | Function;

};
/**
* @public
*/
export declare function setStyle(num: number, width: number, count: number): void;
/**
* @public
*/
export declare function runAnimation(ul: HTMLElement, timeout: number, keyframes: string, num: number, next: () => void): void;
/**
* @public
*/
export declare function appendLeftAndRightData<T>(data: CarouselData<T>[], actualCount: number): void;
var animationKeyframesIdName = "carousel-animation-keyframes";
/**
* @public
*/
export function setStyle(num, width, count) {

@@ -12,2 +15,5 @@ var style = document.getElementById(animationKeyframesIdName);

}
/**
* @public
*/
export function runAnimation(ul, timeout, keyframes, num, next) {

@@ -24,2 +30,5 @@ ul.style.animation = "";

}
/**
* @public
*/
export function appendLeftAndRightData(data, actualCount) {

@@ -26,0 +35,0 @@ var leftItems = data.slice(data.length - actualCount);

9

package.json
{
"name": "carousel-component",
"version": "3.0.0",
"version": "3.2.1",
"main": "dist/index.js",

@@ -17,6 +17,13 @@ "types": "dist/index.d.ts",

"homepage": "https://github.com/plantain-00/carousel-component#readme",
"files": [
"dist"
],
"dependencies": {
"@types/node": "*",
"tslib": "1"
},
"peerDependencies": {
"@types/node": "*",
"tslib": "1"
}
}
.npmignore
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