@dnax/core 0.1.8 → 0.1.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.
@@ -38,7 +38,7 @@ type options = {
38
38
  type optionCb = {
39
39
  useHook?: boolean;
40
40
  cleanDeep?: boolean;
41
- useCustomApi: boolean;
41
+ useCustomApi?: boolean;
42
42
  };
43
43
 
44
44
  const omitUpdate = [
@@ -56,7 +56,7 @@ class useRest {
56
56
  #tenant: Tenant;
57
57
  #tenant_id: string;
58
58
  #session: ClientSession | null | undefined;
59
- #useCustomApi = true;
59
+ #useCustomApi: boolean = true;
60
60
  constructor(options: options) {
61
61
  this.#c = options.c;
62
62
  this.#useCustomApi = options.useCustomApi ?? true;
@@ -817,7 +817,7 @@ class useRest {
817
817
  ?.collection(collection)
818
818
  .findOneAndUpdate(
819
819
  {
820
- ...(filter || {}),
820
+ ...(formatData(filter) || {}),
821
821
  },
822
822
  {
823
823
  ...formatData(omit(update, omitUpdate)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {