bt-core-app 2.1.32 → 2.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5847,14 +5847,11 @@ function RT(e, t) {
5847
5847
  a.some((l) => t(n) == t(l)) || a.push(n);
5848
5848
  }), a;
5849
5849
  }
5850
- function Goe(e, t) {
5851
- const a = /* @__PURE__ */ new Map();
5852
- return e.forEach((n) => {
5853
- let l;
5854
- typeof t == "string" ? l = n[t] : l = t(n);
5855
- const r = a.get(l);
5856
- r ? r.push(n) : a.set(l, [n]);
5857
- }), a;
5850
+ function Goe(e, t, a) {
5851
+ return e == null ? /* @__PURE__ */ new Map() : e.reduce((n, l) => {
5852
+ const r = t(l) ?? a, i = n.get(r);
5853
+ return i ? i.push(l) : n.set(r, [l]), n;
5854
+ }, /* @__PURE__ */ new Map());
5858
5855
  }
5859
5856
  function nP(e, t) {
5860
5857
  const a = /* @__PURE__ */ new Map();
package/dist/index.d.ts CHANGED
@@ -1129,7 +1129,7 @@ export declare interface GraphedData {
1129
1129
 
1130
1130
  export declare function group<T>(list: T[], keyGetter: string | ((item: T) => string | number)): Map<any, any>;
1131
1131
 
1132
- export declare function groupBy<T extends object>(list: T[], keyGetter: StringKeyOf<T> | ((item: T) => string)): Map<string, T[]>;
1132
+ export declare function groupBy<T>(array: T[], keyGetter: (item: T) => string | undefined, defaultKey: string): Map<string, T[]>;
1133
1133
 
1134
1134
  export declare interface GroupedHeaderOption {
1135
1135
  position: number;
@@ -1836,8 +1836,6 @@ export declare interface StorePathOptions extends PathOptions {
1836
1836
  dateTo?: string;
1837
1837
  }
1838
1838
 
1839
- declare type StringKeyOf<T extends object> = Extract<keyof T, string>;
1840
-
1841
1839
  export declare function sum(array: number[]): number;
1842
1840
 
1843
1841
  export declare interface SWEvent extends Event {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.1.32",
3
+ "version": "2.1.33",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {