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

@zendeskgarden/container-utilities

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zendeskgarden/container-utilities - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

25

dist/index.cjs.js

@@ -23,4 +23,4 @@ /**

}
return fns.some(function (fn) {
fn && fn.apply(void 0, [event].concat(args));
return fns.some(fn => {
fn && fn(event, ...args);
return event && event.defaultPrevented;

@@ -31,3 +31,3 @@ });

var idCounter = 0;
let idCounter = 0;
function generateId(prefix) {

@@ -37,3 +37,3 @@ if (prefix === void 0) {

}
return prefix + "-" + idCounter++;
return `${prefix}-${idCounter++}`;
}

@@ -48,4 +48,3 @@ function setIdCounter(num) {

}
for (var _i = 0, _values = values; _i < _values.length; _i++) {
var value = _values[_i];
for (const value of values) {
if (value !== undefined) {

@@ -62,6 +61,6 @@ return value;

}
var targetRef = react.useRef(null);
react.useEffect(function () {
const targetRef = react.useRef(null);
react.useEffect(() => {
console.warn('"useCombinedRefs()" has been deprecated and will be removed in the next major version release of "@zendeskgarden/container-utilities"');
refs.forEach(function (ref) {
refs.forEach(ref => {
if (!ref) return;

@@ -78,4 +77,4 @@ if (typeof ref === 'function') {

var convertToMatrix = function convertToMatrix(array, columnCount) {
return array.reduce(function (acc, curr) {
const convertToMatrix = (array, columnCount) => {
return array.reduce((acc, curr) => {
if (acc.length === 0) return [[curr]];

@@ -91,3 +90,3 @@ if (acc[acc.length - 1].length < columnCount) {

var KEY_CODES = {
const KEY_CODES = {
ALT: 18,

@@ -119,3 +118,3 @@ ASTERISK: 170,

};
var KEYS = {
const KEYS = {
ALT: 'Alt',

@@ -122,0 +121,0 @@ ASTERISK: '*',

@@ -19,4 +19,4 @@ /**

}
return fns.some(function (fn) {
fn && fn.apply(void 0, [event].concat(args));
return fns.some(fn => {
fn && fn(event, ...args);
return event && event.defaultPrevented;

@@ -27,3 +27,3 @@ });

var idCounter = 0;
let idCounter = 0;
function generateId(prefix) {

@@ -33,3 +33,3 @@ if (prefix === void 0) {

}
return prefix + "-" + idCounter++;
return `${prefix}-${idCounter++}`;
}

@@ -44,4 +44,3 @@ function setIdCounter(num) {

}
for (var _i = 0, _values = values; _i < _values.length; _i++) {
var value = _values[_i];
for (const value of values) {
if (value !== undefined) {

@@ -58,6 +57,6 @@ return value;

}
var targetRef = useRef(null);
useEffect(function () {
const targetRef = useRef(null);
useEffect(() => {
console.warn('"useCombinedRefs()" has been deprecated and will be removed in the next major version release of "@zendeskgarden/container-utilities"');
refs.forEach(function (ref) {
refs.forEach(ref => {
if (!ref) return;

@@ -74,4 +73,4 @@ if (typeof ref === 'function') {

var convertToMatrix = function convertToMatrix(array, columnCount) {
return array.reduce(function (acc, curr) {
const convertToMatrix = (array, columnCount) => {
return array.reduce((acc, curr) => {
if (acc.length === 0) return [[curr]];

@@ -87,3 +86,3 @@ if (acc[acc.length - 1].length < columnCount) {

var KEY_CODES = {
const KEY_CODES = {
ALT: 18,

@@ -115,3 +114,3 @@ ASTERISK: 170,

};
var KEYS = {
const KEYS = {
ALT: 'Alt',

@@ -118,0 +117,0 @@ ASTERISK: '*',

{
"name": "@zendeskgarden/container-utilities",
"version": "1.0.0",
"version": "1.0.1",
"description": "Container utilities in the Garden Design System",

@@ -44,3 +44,3 @@ "license": "Apache-2.0",

"zendeskgarden:src": "src/index.ts",
"gitHead": "9d58d7c857d5b21a8d90558be2f2be341b2a9270"
"gitHead": "621beb216c03789ed99aa39ed0f2897fa2e52368"
}
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