New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@trackunit/shared-utils

Package Overview
Dependencies
Maintainers
3
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trackunit/shared-utils - npm Package Compare versions

Comparing version 0.0.5-alpha-05cf9fe826.0 to 0.0.5

11

package.json
{
"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

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