rlz-engine 1.0.17 → 1.0.19
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.
|
@@ -6,7 +6,7 @@ export declare class AuthStorage {
|
|
|
6
6
|
private readonly logger;
|
|
7
7
|
private readonly mongo;
|
|
8
8
|
private constructor();
|
|
9
|
-
create(mongo: MongoStorage): Promise<AuthStorage>;
|
|
9
|
+
static create(mongo: MongoStorage): Promise<AuthStorage>;
|
|
10
10
|
private init;
|
|
11
11
|
createUser(id: string, name: string, email: string, passwordSalt: Binary, passwordHash: Binary): Promise<void>;
|
|
12
12
|
getUser(name: string): Promise<StorageUser | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Collection, Db, Document, IndexDescription } from 'mongodb';
|
|
2
|
-
type StorageIndexDescription = IndexDescription & {
|
|
2
|
+
export type StorageIndexDescription = IndexDescription & {
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
5
5
|
export declare class MongoStorage {
|
|
@@ -12,4 +12,3 @@ export declare class MongoStorage {
|
|
|
12
12
|
createIndexes<T extends Document>(collection: Collection<T>, indexes: StorageIndexDescription[]): Promise<void>;
|
|
13
13
|
private listIndexes;
|
|
14
14
|
}
|
|
15
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rlz-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Deps and tools for my style of development",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc",
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
"zod": "^3.23.8",
|
|
69
69
|
"zod-to-json-schema": "^3.23.5"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|