@livechat/data-utils
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -19,2 +19,4 @@ function add(first, second) { | ||
sources.forEach(function (source) { | ||
// false positive | ||
// eslint-disable-next-line no-unused-vars | ||
for (var key in source) { | ||
@@ -194,3 +196,8 @@ if (hasOwn(key, source)) { | ||
// eslint-disable-next-line consistent-return | ||
function entries(obj) { | ||
return Object.keys(obj).map(function (key) { | ||
return [key, obj[key]]; | ||
}); | ||
} | ||
function find(predicate, arr) { | ||
@@ -222,3 +229,2 @@ for (var index = 0; index < arr.length; index++) { | ||
// eslint-disable-next-line consistent-return | ||
function findLast(predicate, arr) { | ||
@@ -256,3 +262,2 @@ for (var index = arr.length - 1; index >= 0; index--) { | ||
// eslint-disable-next-line lodash-fp/prefer-identity | ||
function identity(value) { | ||
@@ -266,4 +271,2 @@ return value; | ||
// previous version was written like this, but it seems that TS can't intersect function types like this? it infers (any, any) => any from this | ||
// type IndexerCallback<T extends { [key: string]: any }> = { [P in keyof T]: (val: T[P], key: P) => any }[keyof T] | ||
function forOwn(callback, obj) { | ||
@@ -330,4 +333,4 @@ return Object.keys(obj).forEach(function (key) { | ||
function includes(value, arr) { | ||
return arr.indexOf(value) !== -1; | ||
function includes(value, arrOrStr) { | ||
return arrOrStr.indexOf(value) !== -1; | ||
} | ||
@@ -348,3 +351,3 @@ | ||
var isPromise = function isPromise(promise) { | ||
return isObject(promise) && typeof promise.then === 'function'; | ||
return !!promise && typeof promise.then === 'function'; | ||
}; | ||
@@ -359,2 +362,15 @@ | ||
function keys(obj) { | ||
var keysArray = []; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
for (var property in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, property)) { | ||
keysArray.push(property); | ||
} | ||
} | ||
return keysArray; | ||
} | ||
// TODO: this should return `T | undefined` to match native behavior | ||
function last(arr) { | ||
@@ -388,2 +404,13 @@ return arr.length > 0 ? arr[arr.length - 1] : null; | ||
result[key] = merge(objA[key], objB[key]); | ||
} else if (isArray(objA[key]) && isArray(objB[key])) { | ||
var length = Math.max(objA[key].length, objB[key].length); | ||
result[key] = new Array(length); | ||
for (var i = 0; i < length; i++) { | ||
if (i in objB[key]) { | ||
result[key][i] = objB[key][i]; | ||
} else if (i in objA[key]) { | ||
result[key][i] = objA[key][i]; | ||
} | ||
} | ||
} else { | ||
@@ -480,3 +507,3 @@ result[key] = objB[key]; | ||
function omit(keys, obj) { | ||
return omitByIndexed(function (value, key) { | ||
return omitByIndexed(function (_, key) { | ||
return keys.indexOf(key) !== -1; | ||
@@ -538,2 +565,6 @@ }, obj); | ||
function pair(a, b) { | ||
return [a, b]; | ||
} | ||
function partitionObject(predicate, obj) { | ||
@@ -680,3 +711,3 @@ return Object.keys(obj).reduce(function (acc, key) { | ||
function snakeCase(str) { | ||
var snakeCased = str.replace(/[A-Z]|([\-_ ]+)/g, function (match) { | ||
var snakeCased = str.replace(/[A-Z]|([-_ ]+)/g, function (match) { | ||
var code = match.charCodeAt(0); | ||
@@ -693,5 +724,4 @@ var upperCased = code > 64 && code < 91; | ||
function splitAt(splitPoint, arr) { | ||
// TODO first item from the tuple could be replaced by dropRight | ||
return [arr.slice(0, splitPoint), arr.slice(splitPoint, arr.length)]; | ||
function splitAt(splitPoint, arrOrStr) { | ||
return [arrOrStr.slice(0, splitPoint), arrOrStr.slice(splitPoint, arrOrStr.length)]; | ||
} | ||
@@ -703,3 +733,3 @@ | ||
for (var index = arr.length; index > 0; index--) { | ||
// eslint-disable-next-line no-param-reassign | ||
var _fn = fn(arr[index - 1], acc); | ||
@@ -739,2 +769,6 @@ | ||
function takeRightWhile(predicate, arr) { | ||
return takeRightWhileFrom(predicate, arr.length - 1, arr); | ||
} | ||
function throttle(ms, fn) { | ||
@@ -798,2 +832,14 @@ var lastCall = Date.now() - 2 * ms; | ||
function leadingThrottle(ms, fn) { | ||
var lastCall = 0; | ||
return function () { | ||
var now = Date.now(); | ||
if (now - lastCall >= ms) { | ||
lastCall = Date.now(); | ||
fn.apply(void 0, arguments); | ||
} | ||
}; | ||
} | ||
var leadingWhiteSpace = /^\s+/; | ||
@@ -848,2 +894,6 @@ function trimStart(str) { | ||
export { add, assign, chain, cloneDeep, camelCase, compact, compose, debounce, defaultTo, drop, dropRight, ensureArray, find, findIndex, findKey, findLast, findLastIndex, findLastIndexFrom, filledArray, flatMap, flatten, forOwn, fromPairs, generateRandomId, generateUniqueId, get, getOr, groupBy, groupKeys, hasOwn, identity, includes, isArray, isEmpty, isFalsy, isNil, isObject, isTruthy, isPromise, keyBy, last, mapKeys, mapValues, mapValuesIndexed, merge, mergeAll, memoize, memoizeOne, memoizeWith, noop, numericSortBy, omit, omitBy, omitByIndexed, once, over, overArgs, partitionObject, pick, pickBy, pickByIndexed, pickOwn, range, reject, removeAt, set$1 as set, shallowEqual, sliceDiff, snakeCase, someAreTruthy, splitAt, splitRightWhenAccum, spread, sum, take, takeLast, takeRightWhileFrom, throttle, toPairs, trailingThrottle, trimStart, trimEnd, repeat, uniq, uniqBy, update, values, without, zipWith }; | ||
function zip(arrayA, arrayB) { | ||
return zipWith(pair, arrayA, arrayB); | ||
} | ||
export { add, assign, chain, cloneDeep, camelCase, compact, compose, debounce, defaultTo, drop, dropRight, ensureArray, entries, find, findIndex, findKey, findLast, findLastIndex, findLastIndexFrom, filledArray, flatMap, flatten, forOwn, fromPairs, generateRandomId, generateUniqueId, get, getOr, groupBy, groupKeys, hasOwn, identity, includes, isArray, isEmpty, isFalsy, isNil, isObject, isTruthy, isPromise, keyBy, keys, last, mapKeys, mapValues, mapValuesIndexed, merge, mergeAll, memoize, memoizeOne, memoizeWith, noop, numericSortBy, omit, omitBy, omitByIndexed, once, over, overArgs, pair, partitionObject, pick, pickBy, pickByIndexed, pickOwn, range, reject, removeAt, set$1 as set, shallowEqual, sliceDiff, snakeCase, someAreTruthy, splitAt, splitRightWhenAccum, spread, sum, take, takeLast, takeRightWhile, takeRightWhileFrom, throttle, toPairs, trailingThrottle, leadingThrottle, trimStart, trimEnd, repeat, uniq, uniqBy, update, values, without, zip, zipWith }; |
@@ -23,2 +23,4 @@ 'use strict'; | ||
sources.forEach(function (source) { | ||
// false positive | ||
// eslint-disable-next-line no-unused-vars | ||
for (var key in source) { | ||
@@ -198,3 +200,8 @@ if (hasOwn(key, source)) { | ||
// eslint-disable-next-line consistent-return | ||
function entries(obj) { | ||
return Object.keys(obj).map(function (key) { | ||
return [key, obj[key]]; | ||
}); | ||
} | ||
function find(predicate, arr) { | ||
@@ -226,3 +233,2 @@ for (var index = 0; index < arr.length; index++) { | ||
// eslint-disable-next-line consistent-return | ||
function findLast(predicate, arr) { | ||
@@ -260,3 +266,2 @@ for (var index = arr.length - 1; index >= 0; index--) { | ||
// eslint-disable-next-line lodash-fp/prefer-identity | ||
function identity(value) { | ||
@@ -270,4 +275,2 @@ return value; | ||
// previous version was written like this, but it seems that TS can't intersect function types like this? it infers (any, any) => any from this | ||
// type IndexerCallback<T extends { [key: string]: any }> = { [P in keyof T]: (val: T[P], key: P) => any }[keyof T] | ||
function forOwn(callback, obj) { | ||
@@ -334,4 +337,4 @@ return Object.keys(obj).forEach(function (key) { | ||
function includes(value, arr) { | ||
return arr.indexOf(value) !== -1; | ||
function includes(value, arrOrStr) { | ||
return arrOrStr.indexOf(value) !== -1; | ||
} | ||
@@ -352,3 +355,3 @@ | ||
var isPromise = function isPromise(promise) { | ||
return isObject(promise) && typeof promise.then === 'function'; | ||
return !!promise && typeof promise.then === 'function'; | ||
}; | ||
@@ -363,2 +366,15 @@ | ||
function keys(obj) { | ||
var keysArray = []; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
for (var property in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, property)) { | ||
keysArray.push(property); | ||
} | ||
} | ||
return keysArray; | ||
} | ||
// TODO: this should return `T | undefined` to match native behavior | ||
function last(arr) { | ||
@@ -392,2 +408,13 @@ return arr.length > 0 ? arr[arr.length - 1] : null; | ||
result[key] = merge(objA[key], objB[key]); | ||
} else if (isArray(objA[key]) && isArray(objB[key])) { | ||
var length = Math.max(objA[key].length, objB[key].length); | ||
result[key] = new Array(length); | ||
for (var i = 0; i < length; i++) { | ||
if (i in objB[key]) { | ||
result[key][i] = objB[key][i]; | ||
} else if (i in objA[key]) { | ||
result[key][i] = objA[key][i]; | ||
} | ||
} | ||
} else { | ||
@@ -484,3 +511,3 @@ result[key] = objB[key]; | ||
function omit(keys, obj) { | ||
return omitByIndexed(function (value, key) { | ||
return omitByIndexed(function (_, key) { | ||
return keys.indexOf(key) !== -1; | ||
@@ -542,2 +569,6 @@ }, obj); | ||
function pair(a, b) { | ||
return [a, b]; | ||
} | ||
function partitionObject(predicate, obj) { | ||
@@ -684,3 +715,3 @@ return Object.keys(obj).reduce(function (acc, key) { | ||
function snakeCase(str) { | ||
var snakeCased = str.replace(/[A-Z]|([\-_ ]+)/g, function (match) { | ||
var snakeCased = str.replace(/[A-Z]|([-_ ]+)/g, function (match) { | ||
var code = match.charCodeAt(0); | ||
@@ -697,5 +728,4 @@ var upperCased = code > 64 && code < 91; | ||
function splitAt(splitPoint, arr) { | ||
// TODO first item from the tuple could be replaced by dropRight | ||
return [arr.slice(0, splitPoint), arr.slice(splitPoint, arr.length)]; | ||
function splitAt(splitPoint, arrOrStr) { | ||
return [arrOrStr.slice(0, splitPoint), arrOrStr.slice(splitPoint, arrOrStr.length)]; | ||
} | ||
@@ -707,3 +737,3 @@ | ||
for (var index = arr.length; index > 0; index--) { | ||
// eslint-disable-next-line no-param-reassign | ||
var _fn = fn(arr[index - 1], acc); | ||
@@ -743,2 +773,6 @@ | ||
function takeRightWhile(predicate, arr) { | ||
return takeRightWhileFrom(predicate, arr.length - 1, arr); | ||
} | ||
function throttle(ms, fn) { | ||
@@ -802,2 +836,14 @@ var lastCall = Date.now() - 2 * ms; | ||
function leadingThrottle(ms, fn) { | ||
var lastCall = 0; | ||
return function () { | ||
var now = Date.now(); | ||
if (now - lastCall >= ms) { | ||
lastCall = Date.now(); | ||
fn.apply(void 0, arguments); | ||
} | ||
}; | ||
} | ||
var leadingWhiteSpace = /^\s+/; | ||
@@ -852,2 +898,6 @@ function trimStart(str) { | ||
function zip(arrayA, arrayB) { | ||
return zipWith(pair, arrayA, arrayB); | ||
} | ||
exports.add = add; | ||
@@ -865,2 +915,3 @@ exports.assign = assign; | ||
exports.ensureArray = ensureArray; | ||
exports.entries = entries; | ||
exports.find = find; | ||
@@ -894,2 +945,3 @@ exports.findIndex = findIndex; | ||
exports.keyBy = keyBy; | ||
exports.keys = keys; | ||
exports.last = last; | ||
@@ -912,2 +964,3 @@ exports.mapKeys = mapKeys; | ||
exports.overArgs = overArgs; | ||
exports.pair = pair; | ||
exports.partitionObject = partitionObject; | ||
@@ -932,2 +985,3 @@ exports.pick = pick; | ||
exports.takeLast = takeLast; | ||
exports.takeRightWhile = takeRightWhile; | ||
exports.takeRightWhileFrom = takeRightWhileFrom; | ||
@@ -937,2 +991,3 @@ exports.throttle = throttle; | ||
exports.trailingThrottle = trailingThrottle; | ||
exports.leadingThrottle = leadingThrottle; | ||
exports.trimStart = trimStart; | ||
@@ -946,2 +1001,3 @@ exports.trimEnd = trimEnd; | ||
exports.without = without; | ||
exports.zip = zip; | ||
exports.zipWith = zipWith; |
@@ -25,2 +25,4 @@ (function (global, factory) { | ||
sources.forEach(function (source) { | ||
// false positive | ||
// eslint-disable-next-line no-unused-vars | ||
for (var key in source) { | ||
@@ -200,3 +202,8 @@ if (hasOwn(key, source)) { | ||
// eslint-disable-next-line consistent-return | ||
function entries(obj) { | ||
return Object.keys(obj).map(function (key) { | ||
return [key, obj[key]]; | ||
}); | ||
} | ||
function find(predicate, arr) { | ||
@@ -228,3 +235,2 @@ for (var index = 0; index < arr.length; index++) { | ||
// eslint-disable-next-line consistent-return | ||
function findLast(predicate, arr) { | ||
@@ -262,3 +268,2 @@ for (var index = arr.length - 1; index >= 0; index--) { | ||
// eslint-disable-next-line lodash-fp/prefer-identity | ||
function identity(value) { | ||
@@ -272,4 +277,2 @@ return value; | ||
// previous version was written like this, but it seems that TS can't intersect function types like this? it infers (any, any) => any from this | ||
// type IndexerCallback<T extends { [key: string]: any }> = { [P in keyof T]: (val: T[P], key: P) => any }[keyof T] | ||
function forOwn(callback, obj) { | ||
@@ -336,4 +339,4 @@ return Object.keys(obj).forEach(function (key) { | ||
function includes(value, arr) { | ||
return arr.indexOf(value) !== -1; | ||
function includes(value, arrOrStr) { | ||
return arrOrStr.indexOf(value) !== -1; | ||
} | ||
@@ -354,3 +357,3 @@ | ||
var isPromise = function isPromise(promise) { | ||
return isObject(promise) && typeof promise.then === 'function'; | ||
return !!promise && typeof promise.then === 'function'; | ||
}; | ||
@@ -365,2 +368,15 @@ | ||
function keys(obj) { | ||
var keysArray = []; // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
for (var property in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, property)) { | ||
keysArray.push(property); | ||
} | ||
} | ||
return keysArray; | ||
} | ||
// TODO: this should return `T | undefined` to match native behavior | ||
function last(arr) { | ||
@@ -394,2 +410,13 @@ return arr.length > 0 ? arr[arr.length - 1] : null; | ||
result[key] = merge(objA[key], objB[key]); | ||
} else if (isArray(objA[key]) && isArray(objB[key])) { | ||
var length = Math.max(objA[key].length, objB[key].length); | ||
result[key] = new Array(length); | ||
for (var i = 0; i < length; i++) { | ||
if (i in objB[key]) { | ||
result[key][i] = objB[key][i]; | ||
} else if (i in objA[key]) { | ||
result[key][i] = objA[key][i]; | ||
} | ||
} | ||
} else { | ||
@@ -486,3 +513,3 @@ result[key] = objB[key]; | ||
function omit(keys, obj) { | ||
return omitByIndexed(function (value, key) { | ||
return omitByIndexed(function (_, key) { | ||
return keys.indexOf(key) !== -1; | ||
@@ -544,2 +571,6 @@ }, obj); | ||
function pair(a, b) { | ||
return [a, b]; | ||
} | ||
function partitionObject(predicate, obj) { | ||
@@ -686,3 +717,3 @@ return Object.keys(obj).reduce(function (acc, key) { | ||
function snakeCase(str) { | ||
var snakeCased = str.replace(/[A-Z]|([\-_ ]+)/g, function (match) { | ||
var snakeCased = str.replace(/[A-Z]|([-_ ]+)/g, function (match) { | ||
var code = match.charCodeAt(0); | ||
@@ -699,5 +730,4 @@ var upperCased = code > 64 && code < 91; | ||
function splitAt(splitPoint, arr) { | ||
// TODO first item from the tuple could be replaced by dropRight | ||
return [arr.slice(0, splitPoint), arr.slice(splitPoint, arr.length)]; | ||
function splitAt(splitPoint, arrOrStr) { | ||
return [arrOrStr.slice(0, splitPoint), arrOrStr.slice(splitPoint, arrOrStr.length)]; | ||
} | ||
@@ -709,3 +739,3 @@ | ||
for (var index = arr.length; index > 0; index--) { | ||
// eslint-disable-next-line no-param-reassign | ||
var _fn = fn(arr[index - 1], acc); | ||
@@ -745,2 +775,6 @@ | ||
function takeRightWhile(predicate, arr) { | ||
return takeRightWhileFrom(predicate, arr.length - 1, arr); | ||
} | ||
function throttle(ms, fn) { | ||
@@ -804,2 +838,14 @@ var lastCall = Date.now() - 2 * ms; | ||
function leadingThrottle(ms, fn) { | ||
var lastCall = 0; | ||
return function () { | ||
var now = Date.now(); | ||
if (now - lastCall >= ms) { | ||
lastCall = Date.now(); | ||
fn.apply(void 0, arguments); | ||
} | ||
}; | ||
} | ||
var leadingWhiteSpace = /^\s+/; | ||
@@ -854,2 +900,6 @@ function trimStart(str) { | ||
function zip(arrayA, arrayB) { | ||
return zipWith(pair, arrayA, arrayB); | ||
} | ||
exports.add = add; | ||
@@ -867,2 +917,3 @@ exports.assign = assign; | ||
exports.ensureArray = ensureArray; | ||
exports.entries = entries; | ||
exports.find = find; | ||
@@ -896,2 +947,3 @@ exports.findIndex = findIndex; | ||
exports.keyBy = keyBy; | ||
exports.keys = keys; | ||
exports.last = last; | ||
@@ -914,2 +966,3 @@ exports.mapKeys = mapKeys; | ||
exports.overArgs = overArgs; | ||
exports.pair = pair; | ||
exports.partitionObject = partitionObject; | ||
@@ -934,2 +987,3 @@ exports.pick = pick; | ||
exports.takeLast = takeLast; | ||
exports.takeRightWhile = takeRightWhile; | ||
exports.takeRightWhileFrom = takeRightWhileFrom; | ||
@@ -939,2 +993,3 @@ exports.throttle = throttle; | ||
exports.trailingThrottle = trailingThrottle; | ||
exports.leadingThrottle = leadingThrottle; | ||
exports.trimStart = trimStart; | ||
@@ -948,2 +1003,3 @@ exports.trimEnd = trimEnd; | ||
exports.without = without; | ||
exports.zip = zip; | ||
exports.zipWith = zipWith; | ||
@@ -950,0 +1006,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.DataUtils={})}(this,function(n){"use strict";function r(n,r){return n+r}var t={}.hasOwnProperty;function a(n,r){return t.call(r,n)}function e(){return(e=Object.assign||function(t){for(var n=arguments.length,r=Array(1<n?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];return r.forEach(function(n){for(var r in n)a(r,n)&&(t[r]=n[r])}),t}).apply(void 0,arguments)}function u(n,r){var t;return(t=[]).concat.apply(t,r.map(n))}var o=Array.isArray;function i(n){return"object"==typeof n&&null!==n&&!o(n)}function c(t,e){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r]),n},{})}function f(n){return null==n}function l(n,r){for(var t=0;t<r.length;t++){var e=r[t];if(n(e))return e}}function s(n,r,t){for(var e=r;0<=e;e--)if(n(t[e]))return e;return-1}function p(n){return n}function d(r,t){return Object.keys(t).forEach(function(n){r(t[n],n)})}function v(){return Math.random().toString(36).substring(2)}function y(n,r){for(var t="string"==typeof n?n.split("."):n,e=0,u=r;u&&e<t.length;)u=u[t[e++]];return u}function h(n){return 0===(o(n)?n:Object.keys(n)).length}function g(t,e){if(h(e))return t;var u={};return d(function(n,r){u[r]=a(r,e)?i(t[r])&&i(e[r])?g(t[r],e[r]):e[r]:t[r]},t),d(function(n,r){a(r,u)||(u[r]=e[r])},e),u}function m(t,e){var u={};return function(){var n=t.apply(void 0,arguments);if(a(n,u))return u[n];var r=e.apply(void 0,arguments);return u[n]=r}}function O(r){return Object.keys(r).map(function(n){return r[n]})}function b(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r],r)||(n[r]=e[r]),n},{})}function j(n,r){return r.slice(-n)}function k(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r],r)&&(n[r]=e[r]),n},{})}function A(){return(A=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n}).apply(this,arguments)}function w(n,r){return n===r?0!==n||0!==r||1/n==1/r:n!=n&&r!=r}function x(n,r){return[r.slice(0,n),r.slice(n,r.length)]}var C=/^\s+/;var D=/\s+$/;function L(t,n){var e=[];return n.filter(function(n){var r=t(n);return-1==e.indexOf(r)&&(e.push(r),!0)})}n.add=r,n.assign=e,n.chain=function(r,t){return"function"==typeof t?function(n){return r(t(n))(n)}:u(r,t)},n.cloneDeep=function n(r){return o(r)?r.map(n):i(r)?c(n,r):r},n.camelCase=function(n){var r=n.trim();return 0===r.length?"":1===r.length?r.toLowerCase():/^[a-z\d]+$/.test(r)?r:(r!==r.toLowerCase()&&(r=function(n){for(var r=n,t=!1,e=!1,u=!1,o=0;o<r.length;o++){var i=r[o];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(r=r.slice(0,o)+"-"+r.slice(o),u=e,e=!(t=!1),o++):e&&u&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(r=r.slice(0,o-1)+"-"+r.slice(o-1),u=e,t=!(e=!1)):(t=i.toLowerCase()===i,u=e,e=i.toUpperCase()===i)}return r}(r)),r=r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(n,r){return r.toUpperCase()}))},n.compact=function(e){return o(e)?e.filter(function(n){return null!=n}):Object.keys(e).reduce(function(n,r){var t=e[r];return null!=t&&(n[r]=t),n},{})},n.compose=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduce(function(n,r){return function(){return n(r.apply(void 0,arguments))}})},n.debounce=function(e,u){var o;return function(){clearTimeout(o);for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];o=setTimeout.apply(void 0,[u,e].concat(r))}},n.defaultTo=function(r){return function(n){return f(n)?r:n}},n.drop=function(n,r){return r.slice(n)},n.dropRight=function(n,r){return r.slice(0,-n)},n.ensureArray=function(n){return o(n)?n:[n]},n.find=l,n.findIndex=function(n,r){for(var t=0;t<r.length;t++)if(n(r[t]))return t;return-1},n.findKey=function(r,t){return l(function(n){return r(t[n])},Object.keys(t))},n.findLast=function(n,r){for(var t=r.length-1;0<=t;t--)if(n(r[t]))return r[t]},n.findLastIndex=function(n,r){return s(n,r.length-1,r)},n.findLastIndexFrom=s,n.filledArray=function(n,r){for(var t=[];n--;)t.push(r);return t},n.flatMap=u,n.flatten=function(n){return u(p,n)},n.forOwn=d,n.fromPairs=function(n){return n.reduce(function(n,r){return n[r[0]]=r[1],n},{})},n.generateRandomId=v,n.generateUniqueId=function n(r){var t=v();return a(t,r)?n(r):t},n.get=y,n.getOr=function(n,r,t){var e=y(r,t);return null!=e?e:n},n.groupBy=function(u,o){return Object.keys(o).reduce(function(n,r){var t=o[r],e=u(t);return n[e]=n[e]||[],n[e].push(t),n},{})},n.groupKeys=function(e,u){return Object.keys(u).reduce(function(n,r){var t=e(r);return n[t]=n[t]||{},n[t][r]=u[r],n},{})},n.hasOwn=a,n.identity=p,n.includes=function(n,r){return-1!=r.indexOf(n)},n.isArray=o,n.isEmpty=h,n.isFalsy=function(n){return!n},n.isNil=f,n.isObject=i,n.isTruthy=function(n){return!!n},n.isPromise=function(n){return i(n)&&"function"==typeof n.then},n.keyBy=function(t,n){return n.reduce(function(n,r){return n[r[t]]=r,n},{})},n.last=function(n){return 0<n.length?n[n.length-1]:null},n.mapKeys=function(t,e){return Object.keys(e).reduce(function(n,r){return n[t(r)]=e[r],n},{})},n.mapValues=c,n.mapValuesIndexed=function(t,e){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})},n.merge=g,n.mergeAll=function(n){if(0===n.length)return{};var r=n[0];return n.slice(1).reduce(function(n,r){return g(n,r)},r)},n.memoize=function(n){return m(p,n)},n.memoizeOne=function(n){var r,t,e=!1;return function(){return e&&(0<arguments.length?arguments[0]:void 0)===t?r:(e=!0,t=0<arguments.length?arguments[0]:void 0,r=n.apply(void 0,arguments))}},n.memoizeWith=m,n.noop=function(){},n.numericSortBy=function(r,n){var t="function"==typeof r?r:function(n){return y(r,n)};return(o(n)?[].concat(n):O(n)).sort(function(n,r){return t(n)-t(r)})},n.omit=function(t,n){return b(function(n,r){return-1!=t.indexOf(r)},n)},n.omitBy=function(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r])||(n[r]=e[r]),n},{})},n.omitByIndexed=b,n.once=function(n){var r,t=!1;return function(){return t?r:(t=!0,r=n.apply(void 0,arguments))}},n.over=function(e){return function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.map(function(n){return n.apply(void 0,r)})}},n.overArgs=function(u,o){return function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=o.map(function(n,r){return n(t[r])});return u.apply(void 0,e.length<t.length?e.concat(j(t.length-e.length,t)):e)}},n.partitionObject=function(t,e){return Object.keys(e).reduce(function(n,r){return n[t(e[r])?0:1][r]=e[r],n},[{},{}])},n.pick=function(n,t){return n.reduce(function(n,r){return n[r]=t[r],n},{})},n.pickBy=function(t,e){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})},n.pickByIndexed=k,n.pickOwn=function(n,t){return n.reduce(function(n,r){return a(r,t)&&(n[r]=t[r]),n},{})},n.range=function(n){for(var r=[],t=0;t<=n;)r.push(t++);return r},n.reject=function(r,n){return n.filter(function(n){return!r(n)})},n.removeAt=function(n,r){var t=[].concat(r);return t.splice(n,1),t},n.set=function n(r,t,e){var u,o=r.split?r.split("."):r,i=o[0],c=t;if(1<o.length){var f=null!=e&&a(i,e)?e[i]:{};c=n(o.slice(1),t,f)}return A({},e,((u={})[i]=c,u))},n.shallowEqual=function(n,r){if(w(n,r))return!0;if("object"!=typeof n||null===n||"object"!=typeof r||null===r)return!1;var t=Object.keys(n);if(t.length!==Object.keys(r).length)return!1;for(var e=0;e<t.length;e++)if(!a(t[e],r)||!w(n[t[e]],r[t[e]]))return!1;return!0},n.sliceDiff=function(n,t){var r=k(function(n,r){return n!==t[r]},n);return h(r)?null:r},n.snakeCase=function(n){var r=n.replace(/[A-Z]|([\-_ ]+)/g,function(n){var r=n.charCodeAt(0);return 64<r&&r<91?"_"+n.toLowerCase():"_"});return"_"===r[0]?r.substr(1):r},n.someAreTruthy=function(n){return n.some(p)},n.splitAt=x,n.splitRightWhenAccum=function(n,r,t){for(var e=t.length;0<e;e--){var u=n(t[e-1],r);if(r=u[1],u[0])return x(e-1,t)}return[[],t]},n.spread=function(r){return function(n){return r.apply(void 0,n)}},n.sum=function(n){return n.reduce(r,0)},n.take=function(n,r){return r.slice(0,n)},n.takeLast=j,n.takeRightWhileFrom=function(r,n,t){var e=s(function(n){return!r(n)},n,t);return e===n?[]:t.slice(e+1,n+1)},n.throttle=function(u,n){var o,i=Date.now()-2*u,c=function(){i=Date.now(),n.apply(void 0,arguments)};return function(){for(var n=Date.now(),r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];n-i<u?(clearTimeout(o),o=setTimeout.apply(void 0,[c,i-n+u].concat(t))):c.apply(void 0,t)}},n.toPairs=function(r){return Object.keys(r).map(function(n){return[n,r[n]]})},n.trailingThrottle=function(u,o){var i,c=Date.now()-2*u;return function(){var n=Date.now();n-c<u||(c=Date.now()),clearTimeout(i);for(var r=arguments.length,t=Array(r),e=0;e<r;e++)t[e]=arguments[e];i=setTimeout.apply(void 0,[function(){return c=Date.now(),o.apply(void 0,arguments)},c-n+u].concat(t))}},n.trimStart=function(n){return n.replace(C,"")},n.trimEnd=function(n){return n.replace(D,"")},n.repeat=function(n,r){return Array(n+1).join(r)},n.uniq=function(n){return L(p,n)},n.uniqBy=L,n.update=function(n,r,t){return[].concat(t.slice(0,n),[r],t.slice(n+1,t.length))},n.values=O,n.without=function(r,n){return n.filter(function(n){return-1==r.indexOf(n)})},n.zipWith=function(t,n,e){return n.map(function(n,r){return t(n,e[r])})},Object.defineProperty(n,"__esModule",{value:!0})}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.DataUtils={})}(this,function(n){"use strict";function t(n,t){return n+t}var r={}.hasOwnProperty;function a(n,t){return r.call(t,n)}function e(){return(e=Object.assign||function(r){for(var n=arguments.length,t=Array(1<n?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];return t.forEach(function(n){for(var t in n)a(t,n)&&(r[t]=n[t])}),r}).apply(void 0,arguments)}function u(n,t){var r;return(r=[]).concat.apply(r,t.map(n))}var c=Array.isArray;function f(n){return"object"==typeof n&&null!==n&&!c(n)}function i(r,e){return Object.keys(e).reduce(function(n,t){return n[t]=r(e[t]),n},{})}function o(n){return null==n}function l(n,t){for(var r=0;r<t.length;r++){var e=t[r];if(n(e))return e}}function s(n,t,r){for(var e=t;0<=e;e--)if(n(r[e]))return e;return-1}function p(n){return n}function v(t,r){return Object.keys(r).forEach(function(n){t(r[n],n)})}function y(){return Math.random().toString(36).substring(2)}function d(n,t){for(var r="string"==typeof n?n.split("."):n,e=0,u=t;u&&e<r.length;)u=u[r[e++]];return u}function h(n){return 0===(c(n)?n:Object.keys(n)).length}function g(u,i){if(h(i))return u;var o={};return v(function(n,t){if(a(t,i))if(f(u[t])&&f(i[t]))o[t]=g(u[t],i[t]);else if(c(u[t])&&c(i[t])){var r=Math.max(u[t].length,i[t].length);o[t]=Array(r);for(var e=0;e<r;e++)e in i[t]?o[t][e]=i[t][e]:e in u[t]&&(o[t][e]=u[t][e])}else o[t]=i[t];else o[t]=u[t]},u),v(function(n,t){a(t,o)||(o[t]=i[t])},i),o}function m(r,e){var u={};return function(){var n=r.apply(void 0,arguments);if(a(n,u))return u[n];var t=e.apply(void 0,arguments);return u[n]=t}}function O(t){return Object.keys(t).map(function(n){return t[n]})}function b(r,e){return Object.keys(e).reduce(function(n,t){return r(e[t],t)||(n[t]=e[t]),n},{})}function j(n,t){return t.slice(-n)}function k(n,t){return[n,t]}function w(r,e){return Object.keys(e).reduce(function(n,t){return r(e[t],t)&&(n[t]=e[t]),n},{})}function A(){return(A=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}function x(n,t){return n===t?0!==n||0!==t||1/n==1/t:n!=n&&t!=t}function C(n,t){return[t.slice(0,n),t.slice(n,t.length)]}function D(t,n,r){var e=s(function(n){return!t(n)},n,r);return e===n?[]:r.slice(e+1,n+1)}var T=/^\s+/;var L=/\s+$/;function z(r,n){var e=[];return n.filter(function(n){var t=r(n);return-1==e.indexOf(t)&&(e.push(t),!0)})}function B(r,n,e){return n.map(function(n,t){return r(n,e[t])})}n.add=t,n.assign=e,n.chain=function(t,r){return"function"==typeof r?function(n){return t(r(n))(n)}:u(t,r)},n.cloneDeep=function n(t){return c(t)?t.map(n):f(t)?i(n,t):t},n.camelCase=function(n){var t=n.trim();return 0===t.length?"":1===t.length?t.toLowerCase():/^[a-z\d]+$/.test(t)?t:(t!==t.toLowerCase()&&(t=function(n){for(var t=n,r=!1,e=!1,u=!1,i=0;i<t.length;i++){var o=t[i];r&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,i)+"-"+t.slice(i),u=e,e=!(r=!1),i++):e&&u&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,i-1)+"-"+t.slice(i-1),u=e,r=!(e=!1)):(r=o.toLowerCase()===o,u=e,e=o.toUpperCase()===o)}return t}(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(n,t){return t.toUpperCase()}))},n.compact=function(e){return c(e)?e.filter(function(n){return null!=n}):Object.keys(e).reduce(function(n,t){var r=e[t];return null!=r&&(n[t]=r),n},{})},n.compose=function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return t.reduce(function(n,t){return function(){return n(t.apply(void 0,arguments))}})},n.debounce=function(e,u){var i;return function(){clearTimeout(i);for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];i=setTimeout.apply(void 0,[u,e].concat(t))}},n.defaultTo=function(t){return function(n){return o(n)?t:n}},n.drop=function(n,t){return t.slice(n)},n.dropRight=function(n,t){return t.slice(0,-n)},n.ensureArray=function(n){return c(n)?n:[n]},n.entries=function(t){return Object.keys(t).map(function(n){return[n,t[n]]})},n.find=l,n.findIndex=function(n,t){for(var r=0;r<t.length;r++)if(n(t[r]))return r;return-1},n.findKey=function(t,r){return l(function(n){return t(r[n])},Object.keys(r))},n.findLast=function(n,t){for(var r=t.length-1;0<=r;r--)if(n(t[r]))return t[r]},n.findLastIndex=function(n,t){return s(n,t.length-1,t)},n.findLastIndexFrom=s,n.filledArray=function(n,t){for(var r=[];n--;)r.push(t);return r},n.flatMap=u,n.flatten=function(n){return u(p,n)},n.forOwn=v,n.fromPairs=function(n){return n.reduce(function(n,t){return n[t[0]]=t[1],n},{})},n.generateRandomId=y,n.generateUniqueId=function n(t){var r=y();return a(r,t)?n(t):r},n.get=d,n.getOr=function(n,t,r){var e=d(t,r);return null!=e?e:n},n.groupBy=function(u,i){return Object.keys(i).reduce(function(n,t){var r=i[t],e=u(r);return n[e]=n[e]||[],n[e].push(r),n},{})},n.groupKeys=function(e,u){return Object.keys(u).reduce(function(n,t){var r=e(t);return n[r]=n[r]||{},n[r][t]=u[t],n},{})},n.hasOwn=a,n.identity=p,n.includes=function(n,t){return-1!=t.indexOf(n)},n.isArray=c,n.isEmpty=h,n.isFalsy=function(n){return!n},n.isNil=o,n.isObject=f,n.isTruthy=function(n){return!!n},n.isPromise=function(n){return!!n&&"function"==typeof n.then},n.keyBy=function(r,n){return n.reduce(function(n,t){return n[t[r]]=t,n},{})},n.keys=function(n){var t=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.push(r);return t},n.last=function(n){return 0<n.length?n[n.length-1]:null},n.mapKeys=function(r,e){return Object.keys(e).reduce(function(n,t){return n[r(t)]=e[t],n},{})},n.mapValues=i,n.mapValuesIndexed=function(r,e){return Object.keys(e).reduce(function(n,t){return n[t]=r(e[t],t),n},{})},n.merge=g,n.mergeAll=function(n){if(0===n.length)return{};var t=n[0];return n.slice(1).reduce(function(n,t){return g(n,t)},t)},n.memoize=function(n){return m(p,n)},n.memoizeOne=function(n){var t,r,e=!1;return function(){return e&&(0<arguments.length?arguments[0]:void 0)===r?t:(e=!0,r=0<arguments.length?arguments[0]:void 0,t=n.apply(void 0,arguments))}},n.memoizeWith=m,n.noop=function(){},n.numericSortBy=function(t,n){var r="function"==typeof t?t:function(n){return d(t,n)};return(c(n)?[].concat(n):O(n)).sort(function(n,t){return r(n)-r(t)})},n.omit=function(r,n){return b(function(n,t){return-1!=r.indexOf(t)},n)},n.omitBy=function(r,e){return Object.keys(e).reduce(function(n,t){return r(e[t])||(n[t]=e[t]),n},{})},n.omitByIndexed=b,n.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(void 0,arguments))}},n.over=function(e){return function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.map(function(n){return n.apply(void 0,t)})}},n.overArgs=function(u,i){return function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];var e=i.map(function(n,t){return n(r[t])});return u.apply(void 0,e.length<r.length?e.concat(j(r.length-e.length,r)):e)}},n.pair=k,n.partitionObject=function(r,e){return Object.keys(e).reduce(function(n,t){return n[r(e[t])?0:1][t]=e[t],n},[{},{}])},n.pick=function(n,r){return n.reduce(function(n,t){return n[t]=r[t],n},{})},n.pickBy=function(r,e){return Object.keys(e).reduce(function(n,t){return r(e[t])&&(n[t]=e[t]),n},{})},n.pickByIndexed=w,n.pickOwn=function(n,r){return n.reduce(function(n,t){return a(t,r)&&(n[t]=r[t]),n},{})},n.range=function(n){for(var t=[],r=0;r<=n;)t.push(r++);return t},n.reject=function(t,n){return n.filter(function(n){return!t(n)})},n.removeAt=function(n,t){var r=[].concat(t);return r.splice(n,1),r},n.set=function n(t,r,e){var u,i=t.split?t.split("."):t,o=i[0],c=r;if(1<i.length){var f=null!=e&&a(o,e)?e[o]:{};c=n(i.slice(1),r,f)}return A({},e,((u={})[o]=c,u))},n.shallowEqual=function(n,t){if(x(n,t))return!0;if("object"!=typeof n||null===n||"object"!=typeof t||null===t)return!1;var r=Object.keys(n);if(r.length!==Object.keys(t).length)return!1;for(var e=0;e<r.length;e++)if(!a(r[e],t)||!x(n[r[e]],t[r[e]]))return!1;return!0},n.sliceDiff=function(n,r){var t=w(function(n,t){return n!==r[t]},n);return h(t)?null:t},n.snakeCase=function(n){var t=n.replace(/[A-Z]|([-_ ]+)/g,function(n){var t=n.charCodeAt(0);return 64<t&&t<91?"_"+n.toLowerCase():"_"});return"_"===t[0]?t.substr(1):t},n.someAreTruthy=function(n){return n.some(p)},n.splitAt=C,n.splitRightWhenAccum=function(n,t,r){for(var e=r.length;0<e;e--){var u=n(r[e-1],t);if(t=u[1],u[0])return C(e-1,r)}return[[],r]},n.spread=function(t){return function(n){return t.apply(void 0,n)}},n.sum=function(n){return n.reduce(t,0)},n.take=function(n,t){return t.slice(0,n)},n.takeLast=j,n.takeRightWhile=function(n,t){return D(n,t.length-1,t)},n.takeRightWhileFrom=D,n.throttle=function(u,n){var i,o=Date.now()-2*u,c=function(){o=Date.now(),n.apply(void 0,arguments)};return function(){for(var n=Date.now(),t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];n-o<u?(clearTimeout(i),i=setTimeout.apply(void 0,[c,o-n+u].concat(r))):c.apply(void 0,r)}},n.toPairs=function(t){return Object.keys(t).map(function(n){return[n,t[n]]})},n.trailingThrottle=function(u,i){var o,c=Date.now()-2*u;return function(){var n=Date.now();n-c<u||(c=Date.now()),clearTimeout(o);for(var t=arguments.length,r=Array(t),e=0;e<t;e++)r[e]=arguments[e];o=setTimeout.apply(void 0,[function(){return c=Date.now(),i.apply(void 0,arguments)},c-n+u].concat(r))}},n.leadingThrottle=function(n,t){var r=0;return function(){Date.now()-r<n||(r=Date.now(),t.apply(void 0,arguments))}},n.trimStart=function(n){return n.replace(T,"")},n.trimEnd=function(n){return n.replace(L,"")},n.repeat=function(n,t){return Array(n+1).join(t)},n.uniq=function(n){return z(p,n)},n.uniqBy=z,n.update=function(n,t,r){return[].concat(r.slice(0,n),[t],r.slice(n+1,r.length))},n.values=O,n.without=function(t,n){return n.filter(function(n){return-1==t.indexOf(n)})},n.zip=function(n,t){return B(k,n,t)},n.zipWith=B,Object.defineProperty(n,"__esModule",{value:!0})}); |
{ | ||
"name": "@livechat/data-utils", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Collections utility functions", | ||
@@ -10,2 +10,3 @@ "contributors": [ | ||
"license": "MIT", | ||
"source": "./src/index.ts", | ||
"main": "dist/data-utils", | ||
@@ -15,3 +16,6 @@ "module": "dist/data-utils.es", | ||
"types": "./types", | ||
"files": ["dist", "types"], | ||
"files": [ | ||
"dist", | ||
"types/**/*.d.ts" | ||
], | ||
"keywords": [], | ||
@@ -25,5 +29,4 @@ "dependencies": {}, | ||
"@babel/preset-typescript": "^7.3.3", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^23.4.2", | ||
"jest": "^23.6.0", | ||
"babel-jest": "^24.9.0", | ||
"jest": "24.9.0", | ||
"lerna-alias": "3.0.3-0", | ||
@@ -37,3 +40,3 @@ "rimraf": "^2.6.1", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"typescript": "^3.4.1" | ||
"typescript": "^3.6.4" | ||
}, | ||
@@ -40,0 +43,0 @@ "scripts": { |
@@ -1,4 +0,2 @@ | ||
export default function hasOwn<Obj extends { | ||
[key: string]: any; | ||
}, Own extends keyof Obj, Prop extends string>(prop: Prop, obj: Obj): Prop extends Own ? true : false; | ||
export default function hasOwn<Obj extends {}, Own extends keyof Obj, Prop extends PropertyKey>(prop: Prop, obj: Obj): Prop extends Own ? true : false; | ||
//# sourceMappingURL=hasOwn.d.ts.map |
@@ -13,2 +13,3 @@ export { default as add } from './add'; | ||
export { default as ensureArray } from './ensureArray'; | ||
export { default as entries } from './entries'; | ||
export { default as find } from './find'; | ||
@@ -42,2 +43,3 @@ export { default as findIndex } from './findIndex'; | ||
export { default as keyBy } from './keyBy'; | ||
export { default as keys } from './keys'; | ||
export { default as last } from './last'; | ||
@@ -60,2 +62,3 @@ export { default as mapKeys } from './mapKeys'; | ||
export { default as overArgs } from './overArgs'; | ||
export { default as pair } from './pair'; | ||
export { default as partitionObject } from './partitionObject'; | ||
@@ -80,2 +83,3 @@ export { default as pick } from './pick'; | ||
export { default as takeLast } from './takeLast'; | ||
export { default as takeRightWhile } from './takeRightWhile'; | ||
export { default as takeRightWhileFrom } from './takeRightWhileFrom'; | ||
@@ -85,2 +89,3 @@ export { default as throttle } from './throttle'; | ||
export { default as trailingThrottle } from './trailingThrottle'; | ||
export { default as leadingThrottle } from './leadingThrottle'; | ||
export { default as trimStart } from './trimStart'; | ||
@@ -94,3 +99,4 @@ export { default as trimEnd } from './trimEnd'; | ||
export { default as without } from './without'; | ||
export { default as zip } from './zip'; | ||
export { default as zipWith } from './zipWith'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { AnyFunction } from "./types"; | ||
import { AnyFunction } from './types'; | ||
declare type KeyResolver<T extends AnyFunction> = (...args: Parameters<T>) => string; | ||
@@ -3,0 +3,0 @@ export default function memoizeWith<T extends AnyFunction, K extends KeyResolver<T>>(keyResolver: K, func: T): T; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16
58
2536
0
91060