@dnax/core 0.4.7 → 0.4.9

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.
@@ -292,7 +292,7 @@ class useRest {
292
292
  if (col?.hooks?.afterInsert && useHook) {
293
293
  await col.hooks.afterInsert({
294
294
  sharedData: sharedData,
295
- data: data,
295
+ data: toJson(data),
296
296
  c: this.#c,
297
297
  io: Cfg.io,
298
298
  driver: "mongodb",
@@ -355,7 +355,7 @@ class useRest {
355
355
  if (col?.hooks?.beforeOperation && useHook) {
356
356
  await col.hooks.beforeOperation({
357
357
  sharedData: sharedData,
358
- data: data,
358
+ data: toJson(data),
359
359
  io: Cfg.io,
360
360
  c: this.#c,
361
361
  driver: "mongodb",
@@ -398,7 +398,7 @@ class useRest {
398
398
  if (col?.hooks?.afterInsert && useHook) {
399
399
  await col.hooks.afterInsert({
400
400
  sharedData: sharedData,
401
- data: data,
401
+ data: toJson(data),
402
402
  c: this.#c,
403
403
  io: Cfg.io,
404
404
  driver: "mongodb",
@@ -9,7 +9,12 @@ export type optionsType = {
9
9
  | "string"
10
10
  | "number"
11
11
  | "boolean"
12
- | Vector<number>
12
+ | `vector[${number}]`
13
+ | "enum[]"
14
+ | "enum"
15
+ | "string[]"
16
+ | "number[]"
17
+ | "boolean[]"
13
18
  | "geopoint";
14
19
  };
15
20
  settings?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {