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.
- package/build/Deferred.d.cts +1 -2
- package/build/Deferred.d.cts.map +1 -1
- package/build/Deferred.d.mts +1 -2
- package/build/Deferred.d.mts.map +1 -1
- package/build/connection.d.cts +4 -4
- package/build/connection.d.cts.map +1 -1
- package/build/connection.d.mts +4 -4
- package/build/connection.d.mts.map +1 -1
- package/build/index.d.cts +5 -5
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +5 -5
- package/build/index.d.mts.map +1 -1
- package/build/is-plain-object.d.cts +1 -2
- package/build/is-plain-object.d.cts.map +1 -1
- package/build/is-plain-object.d.mts +1 -2
- package/build/is-plain-object.d.mts.map +1 -1
- package/build/stripAnsi.d.cts +1 -2
- package/build/stripAnsi.d.cts.map +1 -1
- package/build/stripAnsi.d.mts +1 -2
- package/build/stripAnsi.d.mts.map +1 -1
- package/package.json +3 -3
package/build/Deferred.d.cts
CHANGED
|
@@ -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
|
package/build/Deferred.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deferred.d.cts","names":[],"sources":["../src/Deferred.ts"],"mappings":";
|
|
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"}
|
package/build/Deferred.d.mts
CHANGED
|
@@ -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
|
package/build/Deferred.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deferred.d.mts","names":[],"sources":["../src/Deferred.ts"],"mappings":";
|
|
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"}
|
package/build/connection.d.cts
CHANGED
|
@@ -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 {
|
|
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;;
|
|
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"}
|
package/build/connection.d.mts
CHANGED
|
@@ -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 {
|
|
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;;
|
|
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 {
|
|
11
|
+
export { type ConnectionConfig, Deferred, isPlainObject, newPgConnectionConfig, stripAnsi };
|
|
12
12
|
//# sourceMappingURL=index.d.cts.map
|
package/build/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;
|
|
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 {
|
|
11
|
+
export { type ConnectionConfig, Deferred, isPlainObject, newPgConnectionConfig, stripAnsi };
|
|
12
12
|
//# sourceMappingURL=index.d.mts.map
|
package/build/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;
|
|
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":";;;;;;;
|
|
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":";;;;;;;
|
|
1
|
+
{"version":3,"file":"is-plain-object.d.mts","names":[],"sources":["../src/is-plain-object.ts"],"mappings":";;;;;;;wBAagB,cAAc"}
|
package/build/stripAnsi.d.cts
CHANGED
|
@@ -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":";;
|
|
1
|
+
{"version":3,"file":"stripAnsi.d.cts","names":[],"sources":["../src/stripAnsi.ts"],"mappings":";;wBACgB,UAAU"}
|
package/build/stripAnsi.d.mts
CHANGED
|
@@ -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":";;
|
|
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.
|
|
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": "
|
|
46
|
+
"@swc/core": "1.16.18",
|
|
47
47
|
"@swc/jest": "^0.2.39",
|
|
48
48
|
"@types/jest": "^30.0.0",
|
|
49
|
-
"@types/node": "^26.
|
|
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"
|