pinia-orm-edge 1.9.2-28660070.3210918 → 1.9.2-28668347.1d9ea10
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 +2 -2
- package/dist/casts.d.mts +2 -2
- package/dist/casts.d.ts +2 -2
- package/dist/decorators.d.cts +3 -3
- package/dist/decorators.d.mts +3 -3
- package/dist/decorators.d.ts +3 -3
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.mts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +4 -4
- package/dist/nanoid/async.d.cts +2 -2
- package/dist/nanoid/async.d.mts +2 -2
- package/dist/nanoid/async.d.ts +2 -2
- package/dist/nanoid/index.d.cts +2 -2
- package/dist/nanoid/index.d.mts +2 -2
- package/dist/nanoid/index.d.ts +2 -2
- package/dist/nanoid/non-secure.d.cts +2 -2
- package/dist/nanoid/non-secure.d.mts +2 -2
- package/dist/nanoid/non-secure.d.ts +2 -2
- package/dist/shared/{pinia-orm.75041af1.d.cts → pinia-orm.ae01a7ce.d.cts} +19 -19
- package/dist/shared/{pinia-orm.75041af1.d.mts → pinia-orm.ae01a7ce.d.mts} +19 -19
- package/dist/shared/{pinia-orm.75041af1.d.ts → pinia-orm.ae01a7ce.d.ts} +19 -19
- package/dist/uuid/v1.d.cts +2 -2
- package/dist/uuid/v1.d.mts +2 -2
- package/dist/uuid/v1.d.ts +2 -2
- package/dist/uuid/v4.d.cts +2 -2
- package/dist/uuid/v4.d.mts +2 -2
- package/dist/uuid/v4.d.ts +2 -2
- package/package.json +11 -11
package/dist/casts.d.cts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ae01a7ce.cjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class ArrayCast extends CastAttribute {
|
7
7
|
/**
|
package/dist/casts.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ae01a7ce.mjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class ArrayCast extends CastAttribute {
|
7
7
|
/**
|
package/dist/casts.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, m as ModelFields } from './shared/pinia-orm.ae01a7ce.js';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class ArrayCast extends CastAttribute {
|
7
7
|
/**
|
package/dist/decorators.d.cts
CHANGED
@@ -1,8 +1,8 @@
|
|
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.
|
2
|
-
export { aq as NanoidOptions } from './shared/pinia-orm.
|
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.ae01a7ce.cjs';
|
2
|
+
export { aq as NanoidOptions } from './shared/pinia-orm.ae01a7ce.cjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* Create an Attr attribute property decorator.
|
package/dist/decorators.d.mts
CHANGED
@@ -1,8 +1,8 @@
|
|
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.
|
2
|
-
export { aq as NanoidOptions } from './shared/pinia-orm.
|
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.ae01a7ce.mjs';
|
2
|
+
export { aq as NanoidOptions } from './shared/pinia-orm.ae01a7ce.mjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* Create an Attr attribute property decorator.
|
package/dist/decorators.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
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.
|
2
|
-
export { aq as NanoidOptions } from './shared/pinia-orm.
|
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.ae01a7ce.js';
|
2
|
+
export { aq as NanoidOptions } from './shared/pinia-orm.ae01a7ce.js';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* Create an Attr attribute property decorator.
|
package/dist/helpers.d.cts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { M as Model, b as Collection } from './shared/pinia-orm.
|
1
|
+
import { M as Model, b as Collection } from './shared/pinia-orm.ae01a7ce.cjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
|
7
7
|
|
package/dist/helpers.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { M as Model, b as Collection } from './shared/pinia-orm.
|
1
|
+
import { M as Model, b as Collection } from './shared/pinia-orm.ae01a7ce.mjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
|
7
7
|
|
package/dist/helpers.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { M as Model, b as Collection } from './shared/pinia-orm.
|
1
|
+
import { M as Model, b as Collection } from './shared/pinia-orm.ae01a7ce.js';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
type SortFlags = 'SORT_REGULAR' | 'SORT_FLAG_CASE';
|
7
7
|
|
package/dist/index.cjs
CHANGED
@@ -668,7 +668,7 @@ class BelongsToMany extends Relation {
|
|
668
668
|
*/
|
669
669
|
match(relation, models, query) {
|
670
670
|
const relatedModels = query.get(false);
|
671
|
-
const pivotModels = query.newQuery(this.pivot.$
|
671
|
+
const pivotModels = query.newQuery(this.pivot.$modelEntity()).whereIn(this.relatedPivotKey, this.getKeys(relatedModels, this.relatedKey)).whereIn(this.foreignPivotKey, this.getKeys(models, this.parentKey)).groupBy(this.foreignPivotKey, this.relatedPivotKey).get();
|
672
672
|
models.forEach((parentModel) => {
|
673
673
|
const relationResults = [];
|
674
674
|
relatedModels.forEach((relatedModel) => {
|
@@ -2837,7 +2837,7 @@ class MorphToMany extends Relation {
|
|
2837
2837
|
*/
|
2838
2838
|
match(relation, models, query) {
|
2839
2839
|
const relatedModels = query.get(false);
|
2840
|
-
const pivotModels = query.newQuery(this.pivot.$
|
2840
|
+
const pivotModels = query.newQuery(this.pivot.$modelEntity()).whereIn(this.relatedId, this.getKeys(relatedModels, this.relatedKey)).whereIn(this.morphId, this.getKeys(models, this.parentKey)).groupBy(this.morphId, this.relatedId, this.morphType).get();
|
2841
2841
|
models.forEach((parentModel) => {
|
2842
2842
|
const relationResults = [];
|
2843
2843
|
relatedModels.forEach((relatedModel) => {
|
@@ -3032,7 +3032,7 @@ class Model {
|
|
3032
3032
|
const pivotInstance = pivot.newRawInstance();
|
3033
3033
|
parentKey = parentKey ?? model.$getLocalKey();
|
3034
3034
|
relatedKey = relatedKey ?? instance.$getLocalKey();
|
3035
|
-
this.schemas[related.
|
3035
|
+
this.schemas[related.modelEntity()][`pivot_${relatedPivotKey}_${pivotInstance.$entity()}`] = new HasOne(instance, pivotInstance, relatedPivotKey, relatedKey);
|
3036
3036
|
return new BelongsToMany(
|
3037
3037
|
model,
|
3038
3038
|
instance,
|
@@ -3052,7 +3052,7 @@ class Model {
|
|
3052
3052
|
const pivotInstance = pivot.newRawInstance();
|
3053
3053
|
parentKey = parentKey ?? model.$getLocalKey();
|
3054
3054
|
relatedKey = relatedKey ?? instance.$getLocalKey();
|
3055
|
-
this.schemas[related.
|
3055
|
+
this.schemas[related.modelEntity()][`pivot_${relatedId}_${pivotInstance.$entity()}`] = new MorphOne(instance, pivotInstance, relatedId, model.$entity(), relatedKey);
|
3056
3056
|
return new MorphToMany(
|
3057
3057
|
model,
|
3058
3058
|
instance,
|
package/dist/index.d.cts
CHANGED
@@ -1,8 +1,8 @@
|
|
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.
|
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.
|
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.ae01a7ce.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.ae01a7ce.cjs';
|
3
3
|
import { Pinia } from 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare function useRepo<R extends Repository<any>>(repository: R | Constructor<R>, pinia?: Pinia): R;
|
8
8
|
declare function useRepo<M extends Model>(model: Constructor<M>, pinia?: Pinia): Repository<M>;
|
package/dist/index.d.mts
CHANGED
@@ -1,8 +1,8 @@
|
|
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.
|
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.
|
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.ae01a7ce.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.ae01a7ce.mjs';
|
3
3
|
import { Pinia } from 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare function useRepo<R extends Repository<any>>(repository: R | Constructor<R>, pinia?: Pinia): R;
|
8
8
|
declare function useRepo<M extends Model>(model: Constructor<M>, pinia?: Pinia): Repository<M>;
|
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
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.
|
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.
|
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.ae01a7ce.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.ae01a7ce.js';
|
3
3
|
import { Pinia } from 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare function useRepo<R extends Repository<any>>(repository: R | Constructor<R>, pinia?: Pinia): R;
|
8
8
|
declare function useRepo<M extends Model>(model: Constructor<M>, pinia?: Pinia): Repository<M>;
|
package/dist/index.mjs
CHANGED
@@ -666,7 +666,7 @@ class BelongsToMany extends Relation {
|
|
666
666
|
*/
|
667
667
|
match(relation, models, query) {
|
668
668
|
const relatedModels = query.get(false);
|
669
|
-
const pivotModels = query.newQuery(this.pivot.$
|
669
|
+
const pivotModels = query.newQuery(this.pivot.$modelEntity()).whereIn(this.relatedPivotKey, this.getKeys(relatedModels, this.relatedKey)).whereIn(this.foreignPivotKey, this.getKeys(models, this.parentKey)).groupBy(this.foreignPivotKey, this.relatedPivotKey).get();
|
670
670
|
models.forEach((parentModel) => {
|
671
671
|
const relationResults = [];
|
672
672
|
relatedModels.forEach((relatedModel) => {
|
@@ -2835,7 +2835,7 @@ class MorphToMany extends Relation {
|
|
2835
2835
|
*/
|
2836
2836
|
match(relation, models, query) {
|
2837
2837
|
const relatedModels = query.get(false);
|
2838
|
-
const pivotModels = query.newQuery(this.pivot.$
|
2838
|
+
const pivotModels = query.newQuery(this.pivot.$modelEntity()).whereIn(this.relatedId, this.getKeys(relatedModels, this.relatedKey)).whereIn(this.morphId, this.getKeys(models, this.parentKey)).groupBy(this.morphId, this.relatedId, this.morphType).get();
|
2839
2839
|
models.forEach((parentModel) => {
|
2840
2840
|
const relationResults = [];
|
2841
2841
|
relatedModels.forEach((relatedModel) => {
|
@@ -3030,7 +3030,7 @@ class Model {
|
|
3030
3030
|
const pivotInstance = pivot.newRawInstance();
|
3031
3031
|
parentKey = parentKey ?? model.$getLocalKey();
|
3032
3032
|
relatedKey = relatedKey ?? instance.$getLocalKey();
|
3033
|
-
this.schemas[related.
|
3033
|
+
this.schemas[related.modelEntity()][`pivot_${relatedPivotKey}_${pivotInstance.$entity()}`] = new HasOne(instance, pivotInstance, relatedPivotKey, relatedKey);
|
3034
3034
|
return new BelongsToMany(
|
3035
3035
|
model,
|
3036
3036
|
instance,
|
@@ -3050,7 +3050,7 @@ class Model {
|
|
3050
3050
|
const pivotInstance = pivot.newRawInstance();
|
3051
3051
|
parentKey = parentKey ?? model.$getLocalKey();
|
3052
3052
|
relatedKey = relatedKey ?? instance.$getLocalKey();
|
3053
|
-
this.schemas[related.
|
3053
|
+
this.schemas[related.modelEntity()][`pivot_${relatedId}_${pivotInstance.$entity()}`] = new MorphOne(instance, pivotInstance, relatedId, model.$entity(), relatedKey);
|
3054
3054
|
return new MorphToMany(
|
3055
3055
|
model,
|
3056
3056
|
instance,
|
package/dist/nanoid/async.d.cts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* Create a cast nanoid/async.
|
package/dist/nanoid/async.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* Create a cast nanoid/async.
|
package/dist/nanoid/async.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* Create a cast nanoid/async.
|
package/dist/nanoid/index.d.cts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class UidCast extends CastAttribute {
|
7
7
|
static parameters?: NanoidOptions;
|
package/dist/nanoid/index.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class UidCast extends CastAttribute {
|
7
7
|
static parameters?: NanoidOptions;
|
package/dist/nanoid/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class UidCast extends CastAttribute {
|
7
7
|
static parameters?: NanoidOptions;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class UidCast extends CastAttribute {
|
7
7
|
static parameters?: NanoidOptions;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class UidCast extends CastAttribute {
|
7
7
|
static parameters?: NanoidOptions;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a0 as CastAttribute, aq as NanoidOptions, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
|
2
2
|
import 'pinia';
|
3
|
-
import '@pinia-orm/normalizr';
|
4
3
|
import '@/composables';
|
4
|
+
import '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
declare class UidCast extends CastAttribute {
|
7
7
|
static parameters?: NanoidOptions;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as pinia from 'pinia';
|
2
2
|
import { PiniaPlugin, Pinia, DefineStoreOptionsBase } from 'pinia';
|
3
|
-
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
4
3
|
import * as __composables from '@/composables';
|
4
|
+
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
interface Constructor<T> {
|
7
7
|
new (...args: any[]): T;
|
@@ -1775,18 +1775,14 @@ type Item<M extends Model = Model> = M | null;
|
|
1775
1775
|
type Collection<M extends Model = Model> = M[];
|
1776
1776
|
type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
|
1777
1777
|
|
1778
|
-
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1779
|
-
newRawInstance(): M;
|
1780
|
-
}
|
1781
|
-
|
1782
1778
|
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
|
1783
|
-
save(this:
|
1784
|
-
insert(this:
|
1785
|
-
update(this:
|
1786
|
-
fresh(this:
|
1787
|
-
destroy(this:
|
1788
|
-
delete(this:
|
1789
|
-
flush(this:
|
1779
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1780
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1781
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1782
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1783
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1784
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1785
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1790
1786
|
}>;
|
1791
1787
|
interface DataStoreState {
|
1792
1788
|
data: Record<string, any>;
|
@@ -1794,6 +1790,10 @@ interface DataStoreState {
|
|
1794
1790
|
}
|
1795
1791
|
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1796
1792
|
|
1793
|
+
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1794
|
+
newRawInstance(): M;
|
1795
|
+
}
|
1796
|
+
|
1797
1797
|
interface Repository<M extends Model = Model> {
|
1798
1798
|
/**
|
1799
1799
|
* Add a where clause where `field` value is in values.
|
@@ -1897,13 +1897,13 @@ declare class Repository<M extends Model = Model> {
|
|
1897
1897
|
* Returns the pinia store used with this model
|
1898
1898
|
*/
|
1899
1899
|
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, S, {}, {
|
1900
|
-
save(this:
|
1901
|
-
insert(this:
|
1902
|
-
update(this:
|
1903
|
-
fresh(this:
|
1904
|
-
destroy(this:
|
1905
|
-
delete(this:
|
1906
|
-
flush(this:
|
1900
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1901
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1902
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1903
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1904
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1905
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1906
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1907
1907
|
}>;
|
1908
1908
|
/**
|
1909
1909
|
* Create a new repository with the given model.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as pinia from 'pinia';
|
2
2
|
import { PiniaPlugin, Pinia, DefineStoreOptionsBase } from 'pinia';
|
3
|
-
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
4
3
|
import * as __composables from '@/composables';
|
4
|
+
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
interface Constructor<T> {
|
7
7
|
new (...args: any[]): T;
|
@@ -1775,18 +1775,14 @@ type Item<M extends Model = Model> = M | null;
|
|
1775
1775
|
type Collection<M extends Model = Model> = M[];
|
1776
1776
|
type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
|
1777
1777
|
|
1778
|
-
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1779
|
-
newRawInstance(): M;
|
1780
|
-
}
|
1781
|
-
|
1782
1778
|
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
|
1783
|
-
save(this:
|
1784
|
-
insert(this:
|
1785
|
-
update(this:
|
1786
|
-
fresh(this:
|
1787
|
-
destroy(this:
|
1788
|
-
delete(this:
|
1789
|
-
flush(this:
|
1779
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1780
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1781
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1782
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1783
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1784
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1785
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1790
1786
|
}>;
|
1791
1787
|
interface DataStoreState {
|
1792
1788
|
data: Record<string, any>;
|
@@ -1794,6 +1790,10 @@ interface DataStoreState {
|
|
1794
1790
|
}
|
1795
1791
|
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1796
1792
|
|
1793
|
+
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1794
|
+
newRawInstance(): M;
|
1795
|
+
}
|
1796
|
+
|
1797
1797
|
interface Repository<M extends Model = Model> {
|
1798
1798
|
/**
|
1799
1799
|
* Add a where clause where `field` value is in values.
|
@@ -1897,13 +1897,13 @@ declare class Repository<M extends Model = Model> {
|
|
1897
1897
|
* Returns the pinia store used with this model
|
1898
1898
|
*/
|
1899
1899
|
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, S, {}, {
|
1900
|
-
save(this:
|
1901
|
-
insert(this:
|
1902
|
-
update(this:
|
1903
|
-
fresh(this:
|
1904
|
-
destroy(this:
|
1905
|
-
delete(this:
|
1906
|
-
flush(this:
|
1900
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1901
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1902
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1903
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1904
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1905
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1906
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1907
1907
|
}>;
|
1908
1908
|
/**
|
1909
1909
|
* Create a new repository with the given model.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as pinia from 'pinia';
|
2
2
|
import { PiniaPlugin, Pinia, DefineStoreOptionsBase } from 'pinia';
|
3
|
-
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
4
3
|
import * as __composables from '@/composables';
|
4
|
+
import { schema, Schema as Schema$1 } from '@pinia-orm/normalizr';
|
5
5
|
|
6
6
|
interface Constructor<T> {
|
7
7
|
new (...args: any[]): T;
|
@@ -1775,18 +1775,14 @@ type Item<M extends Model = Model> = M | null;
|
|
1775
1775
|
type Collection<M extends Model = Model> = M[];
|
1776
1776
|
type GroupedCollection<M extends Model = Model> = Record<string, M[]>;
|
1777
1777
|
|
1778
|
-
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1779
|
-
newRawInstance(): M;
|
1780
|
-
}
|
1781
|
-
|
1782
1778
|
declare function useDataStore<S extends DataStoreState, T extends DataStore = DataStore>(id: string, options: DefineStoreOptionsBase<S, T>, query?: Query<any>): pinia.StoreDefinition<string, S, {}, {
|
1783
|
-
save(this:
|
1784
|
-
insert(this:
|
1785
|
-
update(this:
|
1786
|
-
fresh(this:
|
1787
|
-
destroy(this:
|
1788
|
-
delete(this:
|
1789
|
-
flush(this:
|
1779
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1780
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1781
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1782
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1783
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1784
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1785
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1790
1786
|
}>;
|
1791
1787
|
interface DataStoreState {
|
1792
1788
|
data: Record<string, any>;
|
@@ -1794,6 +1790,10 @@ interface DataStoreState {
|
|
1794
1790
|
}
|
1795
1791
|
type DataStore = ReturnType<typeof __composables['useDataStore']>;
|
1796
1792
|
|
1793
|
+
interface ModelConstructor<M extends Model> extends Constructor<M> {
|
1794
|
+
newRawInstance(): M;
|
1795
|
+
}
|
1796
|
+
|
1797
1797
|
interface Repository<M extends Model = Model> {
|
1798
1798
|
/**
|
1799
1799
|
* Add a where clause where `field` value is in values.
|
@@ -1897,13 +1897,13 @@ declare class Repository<M extends Model = Model> {
|
|
1897
1897
|
* Returns the pinia store used with this model
|
1898
1898
|
*/
|
1899
1899
|
piniaStore<S extends DataStoreState = DataStoreState>(): pinia.Store<string, S, {}, {
|
1900
|
-
save(this:
|
1901
|
-
insert(this:
|
1902
|
-
update(this:
|
1903
|
-
fresh(this:
|
1904
|
-
destroy(this:
|
1905
|
-
delete(this:
|
1906
|
-
flush(this:
|
1900
|
+
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1901
|
+
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1902
|
+
update(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1903
|
+
fresh(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1904
|
+
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1905
|
+
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1906
|
+
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1907
1907
|
}>;
|
1908
1908
|
/**
|
1909
1909
|
* Create a new repository with the given model.
|
package/dist/uuid/v1.d.cts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare class UidCast extends CastAttribute {
|
8
8
|
static parameters?: V1Options;
|
package/dist/uuid/v1.d.mts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare class UidCast extends CastAttribute {
|
8
8
|
static parameters?: V1Options;
|
package/dist/uuid/v1.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare class UidCast extends CastAttribute {
|
8
8
|
static parameters?: V1Options;
|
package/dist/uuid/v4.d.cts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.cjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare class UidCast extends CastAttribute {
|
8
8
|
static parameters?: V4Options;
|
package/dist/uuid/v4.d.mts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.mjs';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare class UidCast extends CastAttribute {
|
8
8
|
static parameters?: V4Options;
|
package/dist/uuid/v4.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.ae01a7ce.js';
|
3
3
|
import 'pinia';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
4
|
import '@/composables';
|
5
|
+
import '@pinia-orm/normalizr';
|
6
6
|
|
7
7
|
declare class UidCast extends CastAttribute {
|
8
8
|
static parameters?: V4Options;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pinia-orm-edge",
|
3
|
-
"version": "1.9.2-
|
3
|
+
"version": "1.9.2-28668347.1d9ea10",
|
4
4
|
"description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
|
5
5
|
"keywords": [
|
6
6
|
"vue",
|
@@ -46,38 +46,38 @@
|
|
46
46
|
"pinia": "^2.1.7"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.2-28668347.1d9ea10"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nuxt/eslint-config": "^0.3.13",
|
53
53
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
54
54
|
"@pinia/testing": "^0.1.3",
|
55
55
|
"@size-limit/preset-small-lib": "^11.1.4",
|
56
|
-
"@types/node": "^20.14.
|
56
|
+
"@types/node": "^20.14.9",
|
57
57
|
"@types/prettier": "^3.0.0",
|
58
58
|
"@types/uuid": "^9.0.8",
|
59
|
-
"@typescript-eslint/parser": "^7.
|
59
|
+
"@typescript-eslint/parser": "^7.15.0",
|
60
60
|
"@vitest/coverage-v8": "^1.6.0",
|
61
61
|
"@vitest/ui": "^1.6.0",
|
62
62
|
"@vue/composition-api": "^1.7.2",
|
63
63
|
"@vue/test-utils": "^2.4.6",
|
64
64
|
"c8": "^10.1.2",
|
65
65
|
"core-js": "^3.37.1",
|
66
|
-
"eslint": "^9.
|
67
|
-
"happy-dom": "^14.12.
|
68
|
-
"mkdist": "^1.5.
|
66
|
+
"eslint": "^9.6.0",
|
67
|
+
"happy-dom": "^14.12.3",
|
68
|
+
"mkdist": "^1.5.3",
|
69
69
|
"nanoid": "4.0.2",
|
70
70
|
"pinia": "^2.1.7",
|
71
71
|
"prettier": "^3.3.2",
|
72
72
|
"size-limit": "^11.1.4",
|
73
73
|
"std-env": "^3.7.0",
|
74
74
|
"tsup": "^8.1.0",
|
75
|
-
"typescript": "^5.
|
75
|
+
"typescript": "^5.5.3",
|
76
76
|
"unbuild": "^2.0.0",
|
77
77
|
"uuid": "^10.0.0",
|
78
|
-
"vite": "^5.3.
|
78
|
+
"vite": "^5.3.3",
|
79
79
|
"vitest": "^1.6.0",
|
80
|
-
"vue": "^3.4.
|
80
|
+
"vue": "^3.4.31",
|
81
81
|
"vue-demi": "^0.14.8",
|
82
82
|
"vue2": "npm:vue@^2.7.3"
|
83
83
|
},
|
@@ -100,7 +100,7 @@
|
|
100
100
|
}
|
101
101
|
],
|
102
102
|
"volta": {
|
103
|
-
"node": "20.
|
103
|
+
"node": "20.15.0"
|
104
104
|
},
|
105
105
|
"repository": {
|
106
106
|
"type": "git",
|