joist-utils 2.4.0-next.5 → 2.4.0-next.51

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.
@@ -1,5 +1,5 @@
1
1
  //#region src/Deferred.d.ts
2
- declare class Deferred<T> {
2
+ export declare class Deferred<T> {
3
3
  promise: Promise<T>;
4
4
  private fate;
5
5
  private state;
@@ -14,5 +14,4 @@ declare class Deferred<T> {
14
14
  isRejected(): boolean;
15
15
  }
16
16
  //#endregion
17
- export { Deferred };
18
17
  //# sourceMappingURL=Deferred.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Deferred.d.cts","names":[],"sources":["../src/Deferred.ts"],"mappings":";cAAa,SAAS;EACb,SAAS,QAAQ;UAChB;UACA;UACA;UACA;EAER;EAaA,QAAQ;EAQR,OAAO;EAQP;EAIA;EAIA;EAIA"}
1
+ {"version":3,"file":"Deferred.d.cts","names":[],"sources":["../src/Deferred.ts"],"mappings":";qBAAa,SAAS;EACb,SAAS,QAAQ;UAChB;UACA;UACA;UACA;EAER;EAaA,QAAQ;EAQR,OAAO;EAQP;EAIA;EAIA;EAIA"}
@@ -1,5 +1,5 @@
1
1
  //#region src/Deferred.d.ts
2
- declare class Deferred<T> {
2
+ export declare class Deferred<T> {
3
3
  promise: Promise<T>;
4
4
  private fate;
5
5
  private state;
@@ -14,5 +14,4 @@ declare class Deferred<T> {
14
14
  isRejected(): boolean;
15
15
  }
16
16
  //#endregion
17
- export { Deferred };
18
17
  //# sourceMappingURL=Deferred.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Deferred.d.mts","names":[],"sources":["../src/Deferred.ts"],"mappings":";cAAa,SAAS;EACb,SAAS,QAAQ;UAChB;UACA;UACA;UACA;EAER;EAaA,QAAQ;EAQR,OAAO;EAQP;EAIA;EAIA;EAIA"}
1
+ {"version":3,"file":"Deferred.d.mts","names":[],"sources":["../src/Deferred.ts"],"mappings":";qBAAa,SAAS;EACb,SAAS,QAAQ;UAChB;UACA;UACA;UACA;EAER;EAaA,QAAQ;EAQR,OAAO;EAQP;EAIA;EAIA;EAIA"}
@@ -10,14 +10,14 @@ type DbSettingsEnv = {
10
10
  DB_PORT: string;
11
11
  DB_SSL?: string;
12
12
  };
13
- type ConnectionEnv = DatabaseUrlEnv | DbSettingsEnv;
13
+ export type ConnectionEnv = DatabaseUrlEnv | DbSettingsEnv;
14
14
  /**
15
15
  * A simple connection config compatible with both `pg.Pool` and knex.
16
16
  *
17
17
  * We use a plain object type instead of pg's `ConnectionConfig` to avoid
18
18
  * pulling in pg-specific fields (like `types`) that are incompatible with knex.
19
19
  */
20
- type ConnectionConfig = {
20
+ export type ConnectionConfig = {
21
21
  user?: string;
22
22
  password?: string;
23
23
  database?: string;
@@ -40,7 +40,7 @@ type ConnectionConfig = {
40
40
  * Note that users using a library for typed / validated environment variables, i.e.
41
41
  * ts-app-env, you can pass in a specific `env` variable.
42
42
  */
43
- declare function newPgConnectionConfig(env?: ConnectionEnv): ConnectionConfig;
43
+ export declare function newPgConnectionConfig(env?: ConnectionEnv): ConnectionConfig;
44
44
  //#endregion
45
- export { ConnectionConfig, ConnectionEnv, newPgConnectionConfig };
45
+ export {};
46
46
  //# sourceMappingURL=connection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.d.cts","names":[],"sources":["../src/connection.ts"],"mappings":";KAEK;EAAmB;;KACnB;EACH;EACA;EACA;EACA;EACA;EACA;;KAGU,gBAAgB,iBAAiB;;;;;;;KAQjC;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;iBAiBc,sBAAsB,MAAM,gBAAgB"}
1
+ {"version":3,"file":"connection.d.cts","names":[],"sources":["../src/connection.ts"],"mappings":";KAEK;EAAmB;;KACnB;EACH;EACA;EACA;EACA;EACA;EACA;;YAGU,gBAAgB,iBAAiB;;;;;;;YAQjC;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;wBAiBc,sBAAsB,MAAM,gBAAgB"}
@@ -10,14 +10,14 @@ type DbSettingsEnv = {
10
10
  DB_PORT: string;
11
11
  DB_SSL?: string;
12
12
  };
13
- type ConnectionEnv = DatabaseUrlEnv | DbSettingsEnv;
13
+ export type ConnectionEnv = DatabaseUrlEnv | DbSettingsEnv;
14
14
  /**
15
15
  * A simple connection config compatible with both `pg.Pool` and knex.
16
16
  *
17
17
  * We use a plain object type instead of pg's `ConnectionConfig` to avoid
18
18
  * pulling in pg-specific fields (like `types`) that are incompatible with knex.
19
19
  */
20
- type ConnectionConfig = {
20
+ export type ConnectionConfig = {
21
21
  user?: string;
22
22
  password?: string;
23
23
  database?: string;
@@ -40,7 +40,7 @@ type ConnectionConfig = {
40
40
  * Note that users using a library for typed / validated environment variables, i.e.
41
41
  * ts-app-env, you can pass in a specific `env` variable.
42
42
  */
43
- declare function newPgConnectionConfig(env?: ConnectionEnv): ConnectionConfig;
43
+ export declare function newPgConnectionConfig(env?: ConnectionEnv): ConnectionConfig;
44
44
  //#endregion
45
- export { ConnectionConfig, ConnectionEnv, newPgConnectionConfig };
45
+ export {};
46
46
  //# sourceMappingURL=connection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.d.mts","names":[],"sources":["../src/connection.ts"],"mappings":";KAEK;EAAmB;;KACnB;EACH;EACA;EACA;EACA;EACA;EACA;;KAGU,gBAAgB,iBAAiB;;;;;;;KAQjC;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;iBAiBc,sBAAsB,MAAM,gBAAgB"}
1
+ {"version":3,"file":"connection.d.mts","names":[],"sources":["../src/connection.ts"],"mappings":";KAEK;EAAmB;;KACnB;EACH;EACA;EACA;EACA;EACA;EACA;;YAGU,gBAAgB,iBAAiB;;;;;;;YAQjC;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;wBAiBc,sBAAsB,MAAM,gBAAgB"}
package/build/index.d.cts CHANGED
@@ -3,10 +3,10 @@ import { ConnectionConfig, newPgConnectionConfig } from "./connection.cjs";
3
3
  import { isPlainObject } from "./is-plain-object.cjs";
4
4
  import { stripAnsi } from "./stripAnsi.cjs";
5
5
  //#region src/index.d.ts
6
- declare function fail(message?: string): never;
7
- declare function groupBy<T, Y = T>(list: readonly T[], fn: (x: T) => string, valueFn?: (x: T) => Y): Record<string, Y[]>;
8
- declare function keyBy<T, K extends PropertyKey, Y = T>(list: readonly T[], fnOrKey: CallbackFn<T, K> | keyof T[][number], valueFn?: CallbackFn<T, Y>): Record<K, Y>;
9
- type CallbackFn<T, R = any> = (element: T, index: number, array: readonly T[]) => R;
6
+ export declare function fail(message?: string): never;
7
+ export declare function groupBy<T, Y = T>(list: readonly T[], fn: (x: T) => string, valueFn?: (x: T) => Y): Record<string, Y[]>;
8
+ export declare function keyBy<T, K extends PropertyKey, Y = T>(list: readonly T[], fnOrKey: CallbackFn<T, K> | keyof T[][number], valueFn?: CallbackFn<T, Y>): Record<K, Y>;
9
+ export type CallbackFn<T, R = any> = (element: T, index: number, array: readonly T[]) => R;
10
10
  //#endregion
11
- export { CallbackFn, type ConnectionConfig, Deferred, fail, groupBy, isPlainObject, keyBy, newPgConnectionConfig, stripAnsi };
11
+ export { type ConnectionConfig, Deferred, isPlainObject, newPgConnectionConfig, stripAnsi };
12
12
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;iBAKgB,KAAK;iBAIL,QAAQ,GAAG,IAAI,GAC7B,eAAe,KACf,KAAK,GAAG,cACR,WAAW,GAAG,MAAM,IACnB,eAAe;iBAYF,MAAM,GAAG,UAAU,aAAa,IAAI,GAClD,eAAe,KACf,SAAS,WAAW,GAAG,WAAW,aAClC,UAAU,WAAW,GAAG,KAAE,OAAA,GAAA;KAchB,WAAW,GAAG,YAAY,SAAS,GAAG,eAAe,gBAAgB,QAAQ"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;wBAKgB,KAAK;wBAIL,QAAQ,GAAG,IAAI,GAC7B,eAAe,KACf,KAAK,GAAG,cACR,WAAW,GAAG,MAAM,IACnB,eAAe;wBAYF,MAAM,GAAG,UAAU,aAAa,IAAI,GAClD,eAAe,KACf,SAAS,WAAW,GAAG,WAAW,aAClC,UAAU,WAAW,GAAG,KAAE,OAAA,GAAA;YAchB,WAAW,GAAG,YAAY,SAAS,GAAG,eAAe,gBAAgB,QAAQ"}
package/build/index.d.mts CHANGED
@@ -3,10 +3,10 @@ import { ConnectionConfig, newPgConnectionConfig } from "./connection.mjs";
3
3
  import { isPlainObject } from "./is-plain-object.mjs";
4
4
  import { stripAnsi } from "./stripAnsi.mjs";
5
5
  //#region src/index.d.ts
6
- declare function fail(message?: string): never;
7
- declare function groupBy<T, Y = T>(list: readonly T[], fn: (x: T) => string, valueFn?: (x: T) => Y): Record<string, Y[]>;
8
- declare function keyBy<T, K extends PropertyKey, Y = T>(list: readonly T[], fnOrKey: CallbackFn<T, K> | keyof T[][number], valueFn?: CallbackFn<T, Y>): Record<K, Y>;
9
- type CallbackFn<T, R = any> = (element: T, index: number, array: readonly T[]) => R;
6
+ export declare function fail(message?: string): never;
7
+ export declare function groupBy<T, Y = T>(list: readonly T[], fn: (x: T) => string, valueFn?: (x: T) => Y): Record<string, Y[]>;
8
+ export declare function keyBy<T, K extends PropertyKey, Y = T>(list: readonly T[], fnOrKey: CallbackFn<T, K> | keyof T[][number], valueFn?: CallbackFn<T, Y>): Record<K, Y>;
9
+ export type CallbackFn<T, R = any> = (element: T, index: number, array: readonly T[]) => R;
10
10
  //#endregion
11
- export { CallbackFn, type ConnectionConfig, Deferred, fail, groupBy, isPlainObject, keyBy, newPgConnectionConfig, stripAnsi };
11
+ export { type ConnectionConfig, Deferred, isPlainObject, newPgConnectionConfig, stripAnsi };
12
12
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;iBAKgB,KAAK;iBAIL,QAAQ,GAAG,IAAI,GAC7B,eAAe,KACf,KAAK,GAAG,cACR,WAAW,GAAG,MAAM,IACnB,eAAe;iBAYF,MAAM,GAAG,UAAU,aAAa,IAAI,GAClD,eAAe,KACf,SAAS,WAAW,GAAG,WAAW,aAClC,UAAU,WAAW,GAAG,KAAE,OAAA,GAAA;KAchB,WAAW,GAAG,YAAY,SAAS,GAAG,eAAe,gBAAgB,QAAQ"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;wBAKgB,KAAK;wBAIL,QAAQ,GAAG,IAAI,GAC7B,eAAe,KACf,KAAK,GAAG,cACR,WAAW,GAAG,MAAM,IACnB,eAAe;wBAYF,MAAM,GAAG,UAAU,aAAa,IAAI,GAClD,eAAe,KACf,SAAS,WAAW,GAAG,WAAW,aAClC,UAAU,WAAW,GAAG,KAAE,OAAA,GAAA;YAchB,WAAW,GAAG,YAAY,SAAS,GAAG,eAAe,gBAAgB,QAAQ"}
@@ -5,7 +5,6 @@
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- declare function isPlainObject(o: any): boolean;
8
+ export declare function isPlainObject(o: any): boolean;
9
9
  //#endregion
10
- export { isPlainObject };
11
10
  //# sourceMappingURL=is-plain-object.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-plain-object.d.cts","names":[],"sources":["../src/is-plain-object.ts"],"mappings":";;;;;;;iBAagB,cAAc"}
1
+ {"version":3,"file":"is-plain-object.d.cts","names":[],"sources":["../src/is-plain-object.ts"],"mappings":";;;;;;;wBAagB,cAAc"}
@@ -5,7 +5,6 @@
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- declare function isPlainObject(o: any): boolean;
8
+ export declare function isPlainObject(o: any): boolean;
9
9
  //#endregion
10
- export { isPlainObject };
11
10
  //# sourceMappingURL=is-plain-object.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-plain-object.d.mts","names":[],"sources":["../src/is-plain-object.ts"],"mappings":";;;;;;;iBAagB,cAAc"}
1
+ {"version":3,"file":"is-plain-object.d.mts","names":[],"sources":["../src/is-plain-object.ts"],"mappings":";;;;;;;wBAagB,cAAc"}
@@ -1,6 +1,5 @@
1
1
  //#region src/stripAnsi.d.ts
2
2
  /** Removes ANSI color codes from a string. */
3
- declare function stripAnsi(value: string): string;
3
+ export declare function stripAnsi(value: string): string;
4
4
  //#endregion
5
- export { stripAnsi };
6
5
  //# sourceMappingURL=stripAnsi.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripAnsi.d.cts","names":[],"sources":["../src/stripAnsi.ts"],"mappings":";;iBACgB,UAAU"}
1
+ {"version":3,"file":"stripAnsi.d.cts","names":[],"sources":["../src/stripAnsi.ts"],"mappings":";;wBACgB,UAAU"}
@@ -1,6 +1,5 @@
1
1
  //#region src/stripAnsi.d.ts
2
2
  /** Removes ANSI color codes from a string. */
3
- declare function stripAnsi(value: string): string;
3
+ export declare function stripAnsi(value: string): string;
4
4
  //#endregion
5
- export { stripAnsi };
6
5
  //# sourceMappingURL=stripAnsi.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripAnsi.d.mts","names":[],"sources":["../src/stripAnsi.ts"],"mappings":";;iBACgB,UAAU"}
1
+ {"version":3,"file":"stripAnsi.d.mts","names":[],"sources":["../src/stripAnsi.ts"],"mappings":";;wBACgB,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joist-utils",
3
- "version": "2.4.0-next.5",
3
+ "version": "2.4.0-next.51",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -43,10 +43,10 @@
43
43
  "test": "jest"
44
44
  },
45
45
  "devDependencies": {
46
- "@swc/core": "^1.16.1",
46
+ "@swc/core": "1.16.18",
47
47
  "@swc/jest": "^0.2.39",
48
48
  "@types/jest": "^30.0.0",
49
- "@types/node": "^26.2.0",
49
+ "@types/node": "^26.6.5",
50
50
  "jest": "30.4.2",
51
51
  "tsconfig-paths": "^4.2.0",
52
52
  "typescript": "7.0.2"