@flink-app/flink 2.0.0-alpha.74 → 2.0.0-alpha.76

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @flink-app/flink
2
2
 
3
+ ## 2.0.0-alpha.76
4
+
5
+ ## 2.0.0-alpha.75
6
+
3
7
  ## 2.0.0-alpha.74
4
8
 
5
9
  ### Patch Changes
@@ -37,6 +37,10 @@ export declare abstract class FlinkRepo<C extends FlinkContext, Model extends Do
37
37
  * @returns
38
38
  */
39
39
  buildId(id: string | ObjectId): ObjectId;
40
- private objectIdToString;
40
+ protected objectIdToString<T>(doc: T & {
41
+ _id?: any;
42
+ }): T & {
43
+ _id?: any;
44
+ };
41
45
  }
42
46
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/flink",
3
- "version": "2.0.0-alpha.74",
3
+ "version": "2.0.0-alpha.76",
4
4
  "description": "Typescript only framework for creating REST-like APIs on top of Express and mongodb",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "main": "dist/src/index.js",
package/src/FlinkRepo.ts CHANGED
@@ -110,7 +110,7 @@ export abstract class FlinkRepo<C extends FlinkContext, Model extends Document>
110
110
  return oid;
111
111
  }
112
112
 
113
- private objectIdToString<T>(doc: T & { _id?: any }) {
113
+ protected objectIdToString<T>(doc: T & { _id?: any }) {
114
114
  if (doc && doc._id) {
115
115
  doc._id = doc._id.toString();
116
116
  }