@kedaruma/revlm-client 1.0.9 → 1.0.10
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/dist/index.d.mts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { User as User$1 } from '@kedaruma/revlm-shared/models/user-types';
|
|
2
|
-
import { Timestamp, Long } from 'bson';
|
|
3
2
|
import * as bson from 'bson';
|
|
4
|
-
|
|
5
|
-
export { ObjectId as ObjectID, ObjectId } from 'bson';
|
|
3
|
+
import { Timestamp, Long } from 'bson';
|
|
6
4
|
|
|
7
5
|
type RevlmErrorResponse = {
|
|
8
6
|
ok: false;
|
|
@@ -256,4 +254,10 @@ declare class App {
|
|
|
256
254
|
deleteUser(user: User): Promise<void>;
|
|
257
255
|
}
|
|
258
256
|
|
|
259
|
-
|
|
257
|
+
declare const ObjectId: typeof bson.ObjectId;
|
|
258
|
+
declare const ObjectID: typeof bson.ObjectId;
|
|
259
|
+
declare const BSON: typeof bson & {
|
|
260
|
+
ObjectID: typeof bson.ObjectId;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export { type AggregatePipelineStage, App, BSON, type BaseChangeEvent, type ChangeEvent, type ChangeEventId, type CountOptions, Credentials, type DeleteEvent, type DeleteResult, type DeleteUserResponse, type DeleteUserSuccess, type Document, type DocumentKey, type DocumentNamespace, type DropDatabaseEvent, type DropEvent, type Filter, type FindOneAndModifyOptions, type FindOneOptions, type FindOptions, type InsertEvent, type InsertManyResult, type InsertOneResult, type InvalidateEvent, type LoginResponse, type LoginSuccess, MdbCollection, MongoDBService, type NewDocument, ObjectID, ObjectId, type OperationType, type ProvisionalLoginResponse, type ProvisionalLoginSuccess, type RegisterUserResponse, type RegisterUserSuccess, type RenameEvent, type ReplaceEvent, Revlm, RevlmDBDatabase, type RevlmErrorResponse, type RevlmOptions, type RevlmResponse, type Update, type UpdateDescription, type UpdateEvent, type UpdateOptions, type UpdateResult, User, type WatchOptionsFilter, type WatchOptionsIds };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { User as User$1 } from '@kedaruma/revlm-shared/models/user-types';
|
|
2
|
-
import { Timestamp, Long } from 'bson';
|
|
3
2
|
import * as bson from 'bson';
|
|
4
|
-
|
|
5
|
-
export { ObjectId as ObjectID, ObjectId } from 'bson';
|
|
3
|
+
import { Timestamp, Long } from 'bson';
|
|
6
4
|
|
|
7
5
|
type RevlmErrorResponse = {
|
|
8
6
|
ok: false;
|
|
@@ -256,4 +254,10 @@ declare class App {
|
|
|
256
254
|
deleteUser(user: User): Promise<void>;
|
|
257
255
|
}
|
|
258
256
|
|
|
259
|
-
|
|
257
|
+
declare const ObjectId: typeof bson.ObjectId;
|
|
258
|
+
declare const ObjectID: typeof bson.ObjectId;
|
|
259
|
+
declare const BSON: typeof bson & {
|
|
260
|
+
ObjectID: typeof bson.ObjectId;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export { type AggregatePipelineStage, App, BSON, type BaseChangeEvent, type ChangeEvent, type ChangeEventId, type CountOptions, Credentials, type DeleteEvent, type DeleteResult, type DeleteUserResponse, type DeleteUserSuccess, type Document, type DocumentKey, type DocumentNamespace, type DropDatabaseEvent, type DropEvent, type Filter, type FindOneAndModifyOptions, type FindOneOptions, type FindOptions, type InsertEvent, type InsertManyResult, type InsertOneResult, type InvalidateEvent, type LoginResponse, type LoginSuccess, MdbCollection, MongoDBService, type NewDocument, ObjectID, ObjectId, type OperationType, type ProvisionalLoginResponse, type ProvisionalLoginSuccess, type RegisterUserResponse, type RegisterUserSuccess, type RenameEvent, type ReplaceEvent, Revlm, RevlmDBDatabase, type RevlmErrorResponse, type RevlmOptions, type RevlmResponse, type Update, type UpdateDescription, type UpdateEvent, type UpdateOptions, type UpdateResult, User, type WatchOptionsFilter, type WatchOptionsIds };
|
package/dist/index.js
CHANGED
|
@@ -35,8 +35,8 @@ __export(index_exports, {
|
|
|
35
35
|
Credentials: () => Credentials,
|
|
36
36
|
MdbCollection: () => MdbCollection,
|
|
37
37
|
MongoDBService: () => MongoDBService,
|
|
38
|
-
ObjectID: () =>
|
|
39
|
-
ObjectId: () =>
|
|
38
|
+
ObjectID: () => ObjectID,
|
|
39
|
+
ObjectId: () => ObjectId2,
|
|
40
40
|
Revlm: () => Revlm,
|
|
41
41
|
RevlmDBDatabase: () => RevlmDBDatabase,
|
|
42
42
|
User: () => User
|
|
@@ -404,9 +404,11 @@ var App = class {
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
-
// src/
|
|
408
|
-
var
|
|
409
|
-
var
|
|
407
|
+
// src/bsonCompat.ts
|
|
408
|
+
var bson = __toESM(require("bson"));
|
|
409
|
+
var ObjectId2 = bson.ObjectId;
|
|
410
|
+
var ObjectID = bson.ObjectId;
|
|
411
|
+
var BSON = Object.assign({}, bson, { ObjectID: bson.ObjectId });
|
|
410
412
|
// Annotate the CommonJS export names for ESM import in node:
|
|
411
413
|
0 && (module.exports = {
|
|
412
414
|
App,
|
package/dist/index.mjs
CHANGED
|
@@ -359,17 +359,19 @@ var App = class {
|
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
// src/
|
|
363
|
-
import
|
|
364
|
-
|
|
362
|
+
// src/bsonCompat.ts
|
|
363
|
+
import * as bson from "bson";
|
|
364
|
+
var ObjectId2 = bson.ObjectId;
|
|
365
|
+
var ObjectID = bson.ObjectId;
|
|
366
|
+
var BSON = Object.assign({}, bson, { ObjectID: bson.ObjectId });
|
|
365
367
|
export {
|
|
366
368
|
App,
|
|
367
369
|
BSON,
|
|
368
370
|
Credentials,
|
|
369
371
|
MdbCollection,
|
|
370
372
|
MongoDBService,
|
|
371
|
-
|
|
372
|
-
ObjectId,
|
|
373
|
+
ObjectID,
|
|
374
|
+
ObjectId2 as ObjectId,
|
|
373
375
|
Revlm,
|
|
374
376
|
RevlmDBDatabase,
|
|
375
377
|
User
|