@empathyco/x-utils
Advanced tools
Comparing version 0.1.0-alpha.5 to 0.1.0-alpha.6
@@ -5,3 +5,4 @@ "use strict"; | ||
tslib_1.__exportStar(require("./object"), exports); | ||
tslib_1.__exportStar(require("./typeguards"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isObject = exports.every = exports.getNewAndUpdatedKeys = exports.objectFilter = exports.cleanUndefined = exports.map = exports.reduce = exports.forEach = void 0; | ||
exports.every = exports.getNewAndUpdatedKeys = exports.objectFilter = exports.cleanUndefined = exports.map = exports.reduce = exports.forEach = void 0; | ||
/** | ||
@@ -123,13 +123,2 @@ * Iterates over every non-undefined property of the object calling the callback passed as | ||
exports.every = every; | ||
/** | ||
* Returns true if the retrieved parameter is an object. | ||
* | ||
* @param obj - The object to check. | ||
* | ||
* @returns A boolean indicating if the parameter is an object. | ||
*/ | ||
function isObject(obj) { | ||
return obj && typeof obj === 'object' && !Array.isArray(obj); | ||
} | ||
exports.isObject = isObject; | ||
//# sourceMappingURL=object.js.map |
export * from './object'; | ||
export * from './typeguards'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.js.map |
@@ -113,12 +113,2 @@ /** | ||
} | ||
/** | ||
* Returns true if the retrieved parameter is an object. | ||
* | ||
* @param obj - The object to check. | ||
* | ||
* @returns A boolean indicating if the parameter is an object. | ||
*/ | ||
export function isObject(obj) { | ||
return obj && typeof obj === 'object' && !Array.isArray(obj); | ||
} | ||
//# sourceMappingURL=object.js.map |
{ | ||
"name": "@empathyco/x-utils", | ||
"version": "0.1.0-alpha.5", | ||
"version": "0.1.0-alpha.6", | ||
"description": "A utility package for Empathy search", | ||
@@ -44,3 +44,3 @@ "author": "Empathy Systems Corporation S.L.", | ||
}, | ||
"gitHead": "e6bed958716d0fe7219030fa25e870f6cdaaf68a" | ||
"gitHead": "1dbdaee6edb8d9ffaabf2e82f2fa0ecc7c40a9f8" | ||
} |
export * from './object'; | ||
export * from './typeguards'; | ||
export * from './types'; |
@@ -70,9 +70,1 @@ import { Dictionary } from './types'; | ||
export declare function every<ObjectType extends Dictionary>(object: ObjectType, condition: (key: keyof ObjectType, value: Exclude<ObjectType[keyof ObjectType], undefined>, index: number) => boolean): boolean; | ||
/** | ||
* Returns true if the retrieved parameter is an object. | ||
* | ||
* @param obj - The object to check. | ||
* | ||
* @returns A boolean indicating if the parameter is an object. | ||
*/ | ||
export declare function isObject(obj: any): obj is Record<string, unknown>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
60651
33
531
0