pinia-orm-edge 1.9.2-28634821.7af5df6 → 1.9.2-28642708.5cf3de4

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/dist/casts.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.6811c38b.cjs';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ef8ba408.cjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
package/dist/casts.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.6811c38b.mjs';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ef8ba408.mjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
package/dist/casts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.6811c38b.js';
1
+ import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ef8ba408.js';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,5 +1,5 @@
1
- import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.6811c38b.cjs';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.6811c38b.cjs';
1
+ import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.ef8ba408.cjs';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.ef8ba408.cjs';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
@@ -1,5 +1,5 @@
1
- import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.6811c38b.mjs';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.6811c38b.mjs';
1
+ import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.ef8ba408.mjs';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.ef8ba408.mjs';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
@@ -1,5 +1,5 @@
1
- import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.6811c38b.js';
2
- export { aq as NanoidOptions } from './shared/pinia-orm.6811c38b.js';
1
+ import { a1 as TypeDefault, an as PropertyDecorator, ao as TypeOptions, ap as UidOptions, M as Model, s as PrimaryKey, H as deleteModes, a0 as CastAttribute, aj as Mutator } from './shared/pinia-orm.ef8ba408.js';
2
+ export { aq as NanoidOptions } from './shared/pinia-orm.ef8ba408.js';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.6811c38b.cjs';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.ef8ba408.cjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.6811c38b.mjs';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.ef8ba408.mjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
package/dist/helpers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Model, b as Collection } from './shared/pinia-orm.6811c38b.js';
1
+ import { M as Model, b as Collection } from './shared/pinia-orm.ef8ba408.js';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
package/dist/index.cjs CHANGED
@@ -1360,7 +1360,7 @@ class Query {
1360
1360
  continue;
1361
1361
  }
1362
1362
  if (model.$isDirty()) {
1363
- model = this.hydrate(model.$getAttributes(), { operation: "set", action: existing ? "update" : "save" });
1363
+ model = this.hydrate(model.$getAttributes(), { operation: "set", action: "update" });
1364
1364
  }
1365
1365
  afterSavingHooks.push(() => model.$self().saved(model, record));
1366
1366
  afterSavingHooks.push(() => existing ? model.$self().updated(model, record) : model.$self().created(model, record));
@@ -3291,7 +3291,7 @@ class Model {
3291
3291
  keyValue = mutator.set(keyValue);
3292
3292
  }
3293
3293
  if (cast && operation === "set") {
3294
- keyValue = cast.set(keyValue);
3294
+ keyValue = options.action === "update" ? cast.get(keyValue) : cast.set(keyValue);
3295
3295
  }
3296
3296
  this[key] = this[key] ?? keyValue;
3297
3297
  }
@@ -3530,6 +3530,9 @@ class Model {
3530
3530
  */
3531
3531
  serializeObject(value) {
3532
3532
  const obj = {};
3533
+ if (value.serialize && typeof value.serialize === "function") {
3534
+ return value.serialize(value);
3535
+ }
3533
3536
  for (const key in value) {
3534
3537
  obj[key] = this.serializeValue(value[key]);
3535
3538
  }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.6811c38b.cjs';
2
- export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.6811c38b.cjs';
1
+ import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.ef8ba408.cjs';
2
+ export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.ef8ba408.cjs';
3
3
  import { Pinia } from 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.6811c38b.mjs';
2
- export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.6811c38b.mjs';
1
+ import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.ef8ba408.mjs';
2
+ export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.ef8ba408.mjs';
3
3
  import { Pinia } from 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.6811c38b.js';
2
- export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.6811c38b.js';
1
+ import { R as Repository, C as Constructor, M as Model, Q as Query, D as DataStore, E as Elements, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.ef8ba408.js';
2
+ export { A as AfterHook, y as Attribute, B as BeforeHook, K as BelongsTo, L as BelongsToMany, am as CacheConfig, g as CacheConfigOptions, a0 as CastAttribute, $ as Casts, b as Collection, i as CreatePiniaOrm, c as DataStoreState, k as Database, z as Dictionary, ah as EagerLoad, ai as EagerLoadConstraint, a as Element, a6 as GetElementType, ac as Group, ae as GroupBy, af as GroupByFields, G as GroupedCollection, O as HasMany, U as HasManyBy, V as HasManyThrough, T as HasOne, w as InheritanceTypes, h as InstallOptions, a3 as Interpreter, I as Item, v as MetaValues, f as ModelConfigOptions, m as ModelFields, t as ModelOptions, o as ModelRegistries, q as ModelRegistry, n as ModelSchemas, X as MorphMany, _ as MorphOne, Y as MorphTo, Z as MorphToMany, aj as Mutator, ak as MutatorFunctions, al as Mutators, a5 as NonMethodKeys, N as NormalizedData, ab as Order, ad as OrderBy, ag as OrderDirection, d as PiniaOrmPlugin, P as PiniaOrmPluginContext, s as PrimaryKey, J as Relation, l as Schema, S as Schemas, a2 as Type, a1 as TypeDefault, a7 as UltimateKeys, a4 as Where, aa as WhereGroup, a8 as WherePrimaryClosure, a9 as WhereSecondaryClosure, x as WithKeys, j as createORM, e as definePiniaOrmPlugin, H as deleteModes, p as plugins, r as registerPlugins, u as useDataStore } from './shared/pinia-orm.ef8ba408.js';
3
3
  import { Pinia } from 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
package/dist/index.mjs CHANGED
@@ -1358,7 +1358,7 @@ class Query {
1358
1358
  continue;
1359
1359
  }
1360
1360
  if (model.$isDirty()) {
1361
- model = this.hydrate(model.$getAttributes(), { operation: "set", action: existing ? "update" : "save" });
1361
+ model = this.hydrate(model.$getAttributes(), { operation: "set", action: "update" });
1362
1362
  }
1363
1363
  afterSavingHooks.push(() => model.$self().saved(model, record));
1364
1364
  afterSavingHooks.push(() => existing ? model.$self().updated(model, record) : model.$self().created(model, record));
@@ -3289,7 +3289,7 @@ class Model {
3289
3289
  keyValue = mutator.set(keyValue);
3290
3290
  }
3291
3291
  if (cast && operation === "set") {
3292
- keyValue = cast.set(keyValue);
3292
+ keyValue = options.action === "update" ? cast.get(keyValue) : cast.set(keyValue);
3293
3293
  }
3294
3294
  this[key] = this[key] ?? keyValue;
3295
3295
  }
@@ -3528,6 +3528,9 @@ class Model {
3528
3528
  */
3529
3529
  serializeObject(value) {
3530
3530
  const obj = {};
3531
+ if (value.serialize && typeof value.serialize === "function") {
3532
+ return value.serialize(value);
3533
+ }
3531
3534
  for (const key in value) {
3532
3535
  obj[key] = this.serializeValue(value[key]);
3533
3536
  }
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.cjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.mjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.js';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.cjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.mjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.js';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.cjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.cjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.mjs';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.mjs';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1,4 +1,4 @@
1
- import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.js';
1
+ import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.js';
2
2
  import 'pinia';
3
3
  import '@pinia-orm/normalizr';
4
4
  import '@/composables';
@@ -1756,9 +1756,7 @@ declare class Model {
1756
1756
  /**
1757
1757
  * Serialize the given object to JSON.
1758
1758
  */
1759
- protected serializeObject(value: {
1760
- [index: string]: number | string;
1761
- }): object;
1759
+ protected serializeObject(value: any): object;
1762
1760
  /**
1763
1761
  * Serialize the given relation to JSON.
1764
1762
  */
@@ -1756,9 +1756,7 @@ declare class Model {
1756
1756
  /**
1757
1757
  * Serialize the given object to JSON.
1758
1758
  */
1759
- protected serializeObject(value: {
1760
- [index: string]: number | string;
1761
- }): object;
1759
+ protected serializeObject(value: any): object;
1762
1760
  /**
1763
1761
  * Serialize the given relation to JSON.
1764
1762
  */
@@ -1756,9 +1756,7 @@ declare class Model {
1756
1756
  /**
1757
1757
  * Serialize the given object to JSON.
1758
1758
  */
1759
- protected serializeObject(value: {
1760
- [index: string]: number | string;
1761
- }): object;
1759
+ protected serializeObject(value: any): object;
1762
1760
  /**
1763
1761
  * Serialize the given relation to JSON.
1764
1762
  */
@@ -1,5 +1,5 @@
1
1
  import { V1Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.cjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.cjs';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
@@ -1,5 +1,5 @@
1
1
  import { V1Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.mjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.mjs';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
package/dist/uuid/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { V1Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.js';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.js';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
@@ -1,5 +1,5 @@
1
1
  import { V4Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.cjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.cjs';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
@@ -1,5 +1,5 @@
1
1
  import { V4Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.mjs';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.mjs';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
package/dist/uuid/v4.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { V4Options } from 'uuid';
2
- import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.6811c38b.js';
2
+ import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ef8ba408.js';
3
3
  import 'pinia';
4
4
  import '@pinia-orm/normalizr';
5
5
  import '@/composables';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinia-orm-edge",
3
- "version": "1.9.2-28634821.7af5df6",
3
+ "version": "1.9.2-28642708.5cf3de4",
4
4
  "description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
5
5
  "keywords": [
6
6
  "vue",
@@ -46,7 +46,7 @@
46
46
  "pinia": "^2.1.7"
47
47
  },
48
48
  "dependencies": {
49
- "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-28634821.7af5df6"
49
+ "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-28642708.5cf3de4"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@nuxt/eslint-config": "^0.3.12",