@trackunit/shared-utils
Advanced tools
Comparing version 0.0.5-alpha-05cf9fe826.0 to 0.0.5
{ | ||
"name": "@trackunit/shared-utils", | ||
"version": "0.0.5-alpha-05cf9fe826.0", | ||
"version": "0.0.5", | ||
"repository": "https://github.com/Trackunit/manager", | ||
@@ -9,10 +9,5 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
}, | ||
"dependencies": { | ||
"@sentry/react": "7.57.0", | ||
"crossfilter2": "1.5.4", | ||
"moment": "2.29.4" | ||
}, | ||
"dependencies": {}, | ||
"module": "./index.esm.js", | ||
"main": "./index.cjs.js", | ||
"peerDependencies": {} | ||
"main": "./index.cjs.js" | ||
} |
@@ -6,11 +6,2 @@ /** toggle whether a value is in an array or not */ | ||
/** | ||
* Returns the first item in an array, and logs a warning if there are more than one item in the array. | ||
* | ||
* @param array The array to get the first item from | ||
* @param location The location from where this function is called | ||
* @returns The first item in the array | ||
* @example getFirstItemAndLogIfMore([1, 2, 3], "getFirstItemAndLogIfMore") // 1 | ||
*/ | ||
export declare const getFirstItemAndLogIfMore: <T>(array?: T[] | null | undefined, location?: string) => T | undefined; | ||
/** | ||
* Returns a new array with the items from the previous array and the new array, but only if the item's key is unique. | ||
@@ -17,0 +8,0 @@ * |
@@ -8,2 +8,3 @@ export declare enum HoursAndMinutesFormat { | ||
} | ||
export type HoursAndMinutesFormatType = `${HoursAndMinutesFormat}`; | ||
export declare enum DateTimeFormat { | ||
@@ -21,1 +22,2 @@ DATE = "L", | ||
} | ||
export type DateTimeFormatType = `${DateTimeFormat}`; |
@@ -22,5 +22,1 @@ import { Maybe } from "./maybe"; | ||
export declare const fuzzySearch: <T>(elementsToFilter: T[], filterableProps: (element: T) => string[], searchTerm: string) => T[]; | ||
/** | ||
* Filter an array of items based on a search term. | ||
*/ | ||
export declare const Search: <T>(elementsToSearch: T[], searchableProps: (element: T) => string[], searchTerm: string) => T[]; |
export * from "./DateTimeFormat"; | ||
export * from "./DateUtils"; | ||
export * from "./GeoJsonUtils"; | ||
export * from "./TimePeriod"; | ||
export * from "./UnitOfMeasurementConverter"; | ||
export * from "./addressUtils"; | ||
export * from "./arrayUtils"; | ||
export * from "./chameleonUtils"; | ||
export * from "./constants"; | ||
export * from "./dimensionHelpers"; | ||
export * from "./doNothing"; | ||
@@ -24,3 +21,2 @@ export * from "./enumUtils"; | ||
export * from "./stringUtils"; | ||
export * from "./timePeriodConverter/timePeriodConverter"; | ||
export * from "./typeUtils"; |
@@ -30,2 +30,2 @@ /** | ||
*/ | ||
export declare const removeLeftPadding: (id: string) => number; | ||
export declare const removeLeftPadding: (id: string | null | undefined) => number; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
0
88612
30
2395
1
- Removed@sentry/react@7.57.0
- Removedcrossfilter2@1.5.4
- Removedmoment@2.29.4
- Removed@ranfdev/deepobj@1.0.2(transitive)
- Removed@sentry-internal/tracing@7.57.0(transitive)
- Removed@sentry/browser@7.57.0(transitive)
- Removed@sentry/core@7.57.0(transitive)
- Removed@sentry/react@7.57.0(transitive)
- Removed@sentry/replay@7.57.0(transitive)
- Removed@sentry/types@7.57.0(transitive)
- Removed@sentry/utils@7.57.0(transitive)
- Removedcrossfilter2@1.5.4(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedmoment@2.29.4(transitive)
- Removedreact@18.3.1(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedtslib@2.8.1(transitive)