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

@fastkit/helpers

Package Overview
Dependencies
Maintainers
1
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastkit/helpers - npm Package Compare versions

Comparing version 0.6.44 to 0.6.45

13

dist/helpers.cjs.js

@@ -159,2 +159,14 @@ 'use strict';

}
function removeUndef(obj, deep) {
return Object.keys(obj).reduce((result, key) => {
let value = obj[key];
if (value !== undefined) {
if (deep && value && typeof value === 'object') {
value = removeUndef(value, true);
}
result[key] = value;
}
return result;
}, {});
}

@@ -707,2 +719,3 @@ function flattenRecursiveArray(source) {

exports.range = range;
exports.removeUndef = removeUndef;
exports.resolveDebounceSettings = resolveDebounceSettings;

@@ -709,0 +722,0 @@ exports.safeGetTimeByDateSource = safeGetTimeByDateSource;

@@ -159,2 +159,14 @@ 'use strict';

}
function removeUndef(obj, deep) {
return Object.keys(obj).reduce((result, key) => {
let value = obj[key];
if (value !== undefined) {
if (deep && value && typeof value === 'object') {
value = removeUndef(value, true);
}
result[key] = value;
}
return result;
}, {});
}

@@ -707,2 +719,3 @@ function flattenRecursiveArray(source) {

exports.range = range;
exports.removeUndef = removeUndef;
exports.resolveDebounceSettings = resolveDebounceSettings;

@@ -709,0 +722,0 @@ exports.safeGetTimeByDateSource = safeGetTimeByDateSource;

2

dist/helpers.d.ts

@@ -238,2 +238,4 @@ /// <reference types="node" />

export declare function removeUndef<T extends Record<string, unknown>>(obj: T, deep?: boolean): T;
export declare function resolveDebounceSettings<FN extends Debouncable = Debouncable>(fnOrSettings: FN | DebounceSettings<FN>, delayOrOptions?: number | DebounceOptions, immediateOption?: boolean): DebounceSettings<FN>;

@@ -240,0 +242,0 @@

@@ -155,2 +155,14 @@ function toInt(value) {

}
function removeUndef(obj, deep) {
return Object.keys(obj).reduce((result, key) => {
let value = obj[key];
if (value !== undefined) {
if (deep && value && typeof value === 'object') {
value = removeUndef(value, true);
}
result[key] = value;
}
return result;
}, {});
}

@@ -662,2 +674,2 @@ function flattenRecursiveArray(source) {

export { Cloner, DATE_INPUT_PRECISIONS, DATE_INPUT_RE, DefaultComparatorConditionName, IN_DOCUMENT, IN_WINDOW, addTransitionEvent, addTransitionendEvent, arrayRemove, attemptFocus, clone, consoleColorString, copyBuffer, createComparatorCondition, debounce, escapeRegExp, flattenComparatorCondition, flattenRecursiveArray, focusFirstDescendant, isArrayBufferView, isBuffer, isComparatorConditionalValue, isEmpty, isFocusable, isIterableObject, isMap, isObject, isObjectEqual, isPromise, isSameFlattendComparatorCondition, isSet, isString, nilToEmptyString, notEmptyValue, objectFromArray, objectIncludes, ownerDocument, ownerWindow, parseDateInput, pushDynamicStyle, range, resolveDebounceSettings, safeGetTimeByDateSource, safeJSONSerializer, safeJSONStringify, safeRemainderOperation, toComparableNumbers, toFloat, toHalfWidth, toInt, toNumber, toSingleSpace, traverseAndFlattenComparatorCondition };
export { Cloner, DATE_INPUT_PRECISIONS, DATE_INPUT_RE, DefaultComparatorConditionName, IN_DOCUMENT, IN_WINDOW, addTransitionEvent, addTransitionendEvent, arrayRemove, attemptFocus, clone, consoleColorString, copyBuffer, createComparatorCondition, debounce, escapeRegExp, flattenComparatorCondition, flattenRecursiveArray, focusFirstDescendant, isArrayBufferView, isBuffer, isComparatorConditionalValue, isEmpty, isFocusable, isIterableObject, isMap, isObject, isObjectEqual, isPromise, isSameFlattendComparatorCondition, isSet, isString, nilToEmptyString, notEmptyValue, objectFromArray, objectIncludes, ownerDocument, ownerWindow, parseDateInput, pushDynamicStyle, range, removeUndef, resolveDebounceSettings, safeGetTimeByDateSource, safeJSONSerializer, safeJSONStringify, safeRemainderOperation, toComparableNumbers, toFloat, toHalfWidth, toInt, toNumber, toSingleSpace, traverseAndFlattenComparatorCondition };

2

package.json
{
"name": "@fastkit/helpers",
"version": "0.6.44",
"version": "0.6.45",
"description": "@fastkit/helpers",

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

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