@dnax/core 0.69.8 → 0.69.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/app/ctrl.ts CHANGED
@@ -18,6 +18,7 @@ const actions = [
18
18
  "count",
19
19
  "search",
20
20
  "listActivity",
21
+ "findWithMeta",
21
22
  ];
22
23
 
23
24
  const forbiddenPipelineOperators = [
@@ -836,7 +836,7 @@ class useRest {
836
836
  return new Promise(async (resolve, reject) => {
837
837
  try {
838
838
  let meta = {
839
- ts: 0, // time duration
839
+ ms: 0, // time duration
840
840
  };
841
841
  let start = Date.now();
842
842
 
@@ -899,7 +899,7 @@ class useRest {
899
899
  }),
900
900
  })) as any;
901
901
  // Temp dexecution en ms
902
- meta.ts = Date.now() - start;
902
+ meta.ms = Date.now() - start;
903
903
  return resolve({
904
904
  meta: meta,
905
905
  data: result,
@@ -915,7 +915,7 @@ class useRest {
915
915
  .toArray()) || [];
916
916
 
917
917
  result.docs = toJson(result.docs);
918
- meta.ts = Date.now() - start;
918
+ meta.ms = Date.now() - start;
919
919
  if (col?.hooks?.afterFindWithMeta && useHook) {
920
920
  await col.hooks.afterFindWithMeta({
921
921
  sharedData: sharedData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.69.8",
3
+ "version": "0.69.10",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},
package/types/index.ts CHANGED
@@ -237,7 +237,7 @@ export type hooksCtx = (ctx: {
237
237
  sharedData?: any;
238
238
  action?: Actions;
239
239
  c?: Context;
240
- meta?: { ts:number; [key: string]: any };
240
+ meta?: { ms:number; [key: string]: any };
241
241
  rest: InstanceType<typeof useRest>;
242
242
  session?: sessionCtx;
243
243
  io: socketIoType;