@lenne.tech/nest-server 8.0.1 → 8.0.2

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.
@@ -5,7 +5,7 @@ module.exports = function mongooseIdPlugin(schema, options) {
5
5
  }
6
6
  for (const doc of docs) {
7
7
  if (doc !== null && doc._id) {
8
- doc.id = doc._id.toString();
8
+ doc.id = doc._id.toHexString();
9
9
  }
10
10
  }
11
11
  });
@@ -1 +1 @@
1
- {"version":3,"file":"mongoose-id.plugin.js","sourceRoot":"","sources":["../../../../src/core/common/plugins/mongoose-id.plugin.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,GAAG,SAAS,gBAAgB,CAAC,MAAM,EAAE,OAAO;IACxD,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,UAAU,IAAI;QAClE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACxB,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;SACf;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,EAAE;gBAC3B,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"mongoose-id.plugin.js","sourceRoot":"","sources":["../../../../src/core/common/plugins/mongoose-id.plugin.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,GAAG,SAAS,gBAAgB,CAAC,MAAM,EAAE,OAAO;IACxD,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,UAAU,IAAI;QAClE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACxB,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;SACf;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,EAAE;gBAC3B,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;aAChC;SACF;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -3,6 +3,7 @@
3
3
  /// <reference types="mongoose/types/cursor" />
4
4
  /// <reference types="mongoose/types/document" />
5
5
  /// <reference types="mongoose/types/error" />
6
+ /// <reference types="mongoose/types/mongooseoptions" />
6
7
  /// <reference types="mongoose/types/schemaoptions" />
7
8
  import { CoreUserModel } from '../../../core/modules/user/core-user.model';
8
9
  import { PersistenceModel } from '../../common/models/persistence.model';
@@ -14,4 +15,4 @@ export declare class User extends CoreUserModel implements PersistenceModel {
14
15
  updatedBy: User;
15
16
  init(): this;
16
17
  }
17
- export declare const UserSchema: Schema<Document<User, any, any>, import("mongoose").Model<Document<User, any, any>, any, any, any>, any, any>;
18
+ export declare const UserSchema: Schema<Document<User, any, any>, import("mongoose").Model<Document<User, any, any>, any, any, any>, {}, {}>;