@dnax/core 0.69.12 → 0.69.13

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.
@@ -254,6 +254,13 @@ class useRest {
254
254
  };
255
255
  }
256
256
 
257
+ /**
258
+ * Check if the session is active
259
+ * @returns boolean
260
+ */
261
+ hasSession() {
262
+ return this.#session ? true : false;
263
+ }
257
264
  async aggregate(
258
265
  collection: string,
259
266
  pipeline: Array<object>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.69.12",
3
+ "version": "0.69.13",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},
package/types/index.ts CHANGED
@@ -311,7 +311,7 @@ export type Collection = {
311
311
  customApi?: {
312
312
  aggregate?: (ctx: ctxApi) => Array<object> | null | undefined | typeof fn.error;
313
313
  insertOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
314
- insertMany?: (ctx: ctxApi) => Array<object> | null | undefined | typeof fn.error;
314
+ insertMany?: (ctx: ctxApi) => Array<any> | null | undefined | typeof fn.error;
315
315
  updateOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
316
316
  updateMany?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
317
317
  deleteOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;