Socket
Socket
Sign inDemoInstall

pcln-carousel

Package Overview
Dependencies
155
Maintainers
2
Versions
284
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3-beta.0

6

dist/cjs/helpers.js

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

exports.useResponsiveVisibleSlides = exports.getVisibleSlidesArray = exports.getSlideKey = exports.getMobileVisibleSlides = void 0;
var _moize = _interopRequireDefault(require("moize"));
var _pclnDesignSystem = require("pcln-design-system");
var _react = require("react");
var _moize = _interopRequireDefault(require("moize"));
var _uuid = require("uuid");
var _constants = require("./constants");
var _lodash = _interopRequireDefault(require("lodash.debounce"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -39,3 +39,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

// Debounce to avoid the function fire multiple times
var handleResizeDebounced = (0, _lodash["default"])(handleResize, 250);
var handleResizeDebounced = (0, _pclnDesignSystem.debounce)(handleResize, 250);
(0, _react.useEffect)(function () {

@@ -42,0 +42,0 @@ var media;

@@ -1,6 +0,6 @@

import { useState, useEffect } from 'react';
import moize from 'moize';
import { debounce } from 'pcln-design-system';
import { useEffect, useState } from 'react';
import { v4 as uuidv4 } from 'uuid';
import { VISIBLE_SLIDES_BREAKPOINT_1, VISIBLE_SLIDES_BREAKPOINT_2, CAROUSEL_BREAKPOINT_1, CAROUSEL_BREAKPOINT_2, MEDIA_QUERY_MATCH } from './constants';
import debounce from 'lodash.debounce';
import { CAROUSEL_BREAKPOINT_1, CAROUSEL_BREAKPOINT_2, MEDIA_QUERY_MATCH, VISIBLE_SLIDES_BREAKPOINT_1, VISIBLE_SLIDES_BREAKPOINT_2 } from './constants';
const getSlideKey = moize(uuidv4, {

@@ -45,2 +45,2 @@ profileName: 'getSlideKey'

const getMobileVisibleSlides = visibleSlides => Array.isArray(visibleSlides) ? getMobileVisibleSlidesArray(visibleSlides) : visibleSlides;
export { getSlideKey, getVisibleSlidesArray, useResponsiveVisibleSlides, getMobileVisibleSlides };
export { getMobileVisibleSlides, getSlideKey, getVisibleSlidesArray, useResponsiveVisibleSlides };
{
"name": "pcln-carousel",
"version": "3.0.2",
"version": "3.0.3-beta.0",
"description": "Priceline Design System Carousel Component",

@@ -29,3 +29,2 @@ "homepage": "https://github.com/priceline/design-system#readme",

"@styled-system/theme-get": "^5.1.2",
"lodash.debounce": "^4.0.8",
"moize": "^6.1.6",

@@ -54,2 +53,4 @@ "prop-types": "^15.8.1",

"npm-run-all": "^4.1.5",
"pcln-design-system": "6.2.1-beta.0",
"pcln-icons": "6.0.1-beta.0",
"react": "^18.2.0",

@@ -63,9 +64,7 @@ "react-dom": "^18.2.0",

"@priceline/babel-preset": "0.0.1",
"@priceline/eslint-config": "0.0.1",
"pcln-icons": "6.0.0",
"pcln-design-system": "6.2.0"
"@priceline/eslint-config": "0.0.1"
},
"peerDependencies": {
"pcln-design-system": "^6.2.0",
"pcln-icons": "^6.0.0",
"pcln-design-system": "6.2.1-beta.0",
"pcln-icons": "6.0.1-beta.0",
"react": "^17.0.2 || ^18.2.0",

@@ -72,0 +71,0 @@ "react-dom": "^17.0.2 || ^18.2.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc