pinia-orm-edge 2.0.0-28995677.3ec4e6e → 2.0.0-28995709.5fa7bf1
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 +1 -1
- package/dist/casts.d.mts +1 -1
- package/dist/casts.d.ts +1 -1
- package/dist/decorators.d.cts +2 -2
- package/dist/decorators.d.mts +2 -2
- package/dist/decorators.d.ts +2 -2
- package/dist/helpers.d.cts +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/nanoid/async.d.cts +1 -1
- package/dist/nanoid/async.d.mts +1 -1
- package/dist/nanoid/async.d.ts +1 -1
- package/dist/nanoid/index.d.cts +1 -1
- package/dist/nanoid/index.d.mts +1 -1
- package/dist/nanoid/index.d.ts +1 -1
- package/dist/nanoid/non-secure.d.cts +1 -1
- package/dist/nanoid/non-secure.d.mts +1 -1
- package/dist/nanoid/non-secure.d.ts +1 -1
- package/dist/shared/{pinia-orm.BcBqSZTx.d.cts → pinia-orm.eiCLbQIe.d.cts} +6 -6
- package/dist/shared/{pinia-orm.BcBqSZTx.d.mts → pinia-orm.eiCLbQIe.d.mts} +6 -6
- package/dist/shared/{pinia-orm.BcBqSZTx.d.ts → pinia-orm.eiCLbQIe.d.ts} +6 -6
- package/dist/uuid/v1.d.cts +1 -1
- package/dist/uuid/v1.d.mts +1 -1
- package/dist/uuid/v1.d.ts +1 -1
- package/dist/uuid/v4.d.cts +1 -1
- package/dist/uuid/v4.d.mts +1 -1
- package/dist/uuid/v4.d.ts +1 -1
- package/package.json +7 -11
package/dist/casts.d.cts
CHANGED
package/dist/casts.d.mts
CHANGED
package/dist/casts.d.ts
CHANGED
package/dist/decorators.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.
|
2
|
-
export { at as NanoidOptions } from './shared/pinia-orm.
|
1
|
+
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.eiCLbQIe.cjs';
|
2
|
+
export { at as NanoidOptions } from './shared/pinia-orm.eiCLbQIe.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/decorators.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.
|
2
|
-
export { at as NanoidOptions } from './shared/pinia-orm.
|
1
|
+
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.eiCLbQIe.mjs';
|
2
|
+
export { at as NanoidOptions } from './shared/pinia-orm.eiCLbQIe.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/decorators.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.
|
2
|
-
export { at as NanoidOptions } from './shared/pinia-orm.
|
1
|
+
import { a3 as TypeDefault, aq as PropertyDecorator, ar as TypeOptions, as as UidOptions, M as Model, w as PrimaryKey, L as deleteModes, a2 as CastAttribute, am as Mutator } from './shared/pinia-orm.eiCLbQIe.js';
|
2
|
+
export { at as NanoidOptions } from './shared/pinia-orm.eiCLbQIe.js';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/helpers.d.cts
CHANGED
package/dist/helpers.d.mts
CHANGED
package/dist/helpers.d.ts
CHANGED
package/dist/index.cjs
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
const Utils = require('./shared/pinia-orm.CO4kZz81.cjs');
|
4
4
|
const pinia = require('pinia');
|
5
5
|
const normalizr = require('@pinia-orm/normalizr');
|
6
|
-
const
|
6
|
+
const vue = require('vue');
|
7
7
|
const CastAttribute = require('./shared/pinia-orm.DWjxIbAJ.cjs');
|
8
8
|
|
9
9
|
class Attribute {
|
@@ -554,7 +554,7 @@ function useDataStore(id, options, customOptions, query) {
|
|
554
554
|
});
|
555
555
|
}
|
556
556
|
return pinia.defineStore(id, () => ({
|
557
|
-
data:
|
557
|
+
data: vue.ref({}),
|
558
558
|
...useStoreActions(query),
|
559
559
|
...options
|
560
560
|
}), customOptions);
|
package/dist/index.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.
|
2
|
-
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.
|
1
|
+
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.eiCLbQIe.cjs';
|
2
|
+
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.eiCLbQIe.cjs';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.
|
2
|
-
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.
|
1
|
+
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.eiCLbQIe.mjs';
|
2
|
+
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.eiCLbQIe.mjs';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.
|
2
|
-
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.
|
1
|
+
import { R as Repository, C as Constructor, M as Model, W as WeakCache, F as FilledInstallOptions } from './shared/pinia-orm.eiCLbQIe.js';
|
2
|
+
export { A as AfterHook, J as Attribute, B as BeforeHook, Q as BelongsTo, T as BelongsToMany, ap as CacheConfig, h as CacheConfigOptions, a2 as CastAttribute, a1 as Casts, b as Collection, k as CreatePiniaOrm, d as DataStore, D as DataStoreState, m as Database, K as Dictionary, ak as EagerLoad, al as EagerLoadConstraint, E as Element, a as Elements, a9 as GetElementType, af as Group, ah as GroupBy, ai as GroupByFields, G as GroupedCollection, U as HasMany, X as HasManyBy, Y as HasManyThrough, V as HasOne, z as InheritanceTypes, j as InstallOptions, a5 as Interpreter, I as Item, y as MetaValues, g as ModelConfigOptions, q as ModelFields, x as ModelOptions, t as ModelRegistries, v as ModelRegistry, s as ModelSchemas, Z as MorphMany, a0 as MorphOne, _ as MorphTo, $ as MorphToMany, am as Mutator, an as MutatorFunctions, ao as Mutators, a8 as NonMethodKeys, N as NormalizedData, ae as Order, ag as OrderBy, aj as OrderDirection, i as PiniaConfigOptions, e as PiniaOrmPlugin, P as PiniaOrmPluginContext, w as PrimaryKey, a6 as Query, O as Relation, o as Schema, n as Schemas, S as StoreActions, a4 as Type, a3 as TypeDefault, aa as UltimateKeys, a7 as Where, ad as WhereGroup, ab as WherePrimaryClosure, ac as WhereSecondaryClosure, H as WithKeys, l as createORM, f as definePiniaOrmPlugin, L as deleteModes, p as plugins, r as registerPlugins, c as useDataStore, u as useStoreActions } from './shared/pinia-orm.eiCLbQIe.js';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/index.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { i as isArray, t as throwError, a as assert, g as generateId, b as isNullish, c as compareWithOperator, d as generateKey, e as isEmpty, f as isFunction, h as groupBy, o as orderBy, j as equals, k as isDate } from './shared/pinia-orm.DGc38JnV.mjs';
|
2
2
|
import { defineStore, acceptHMRUpdate } from 'pinia';
|
3
3
|
import { schema, normalize } from '@pinia-orm/normalizr';
|
4
|
-
import { ref } from 'vue
|
4
|
+
import { ref } from 'vue';
|
5
5
|
export { C as CastAttribute } from './shared/pinia-orm.C7bM_uXu.mjs';
|
6
6
|
|
7
7
|
class Attribute {
|
package/dist/nanoid/async.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/async.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/async.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/index.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/index.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
1
|
+
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js';
|
2
2
|
import 'pinia';
|
3
3
|
import 'vue';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -309,7 +309,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
309
309
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
310
310
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
311
311
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
312
|
-
data: vue.Ref<Record<string, any>>;
|
312
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
313
313
|
}, "data">, Pick<{
|
314
314
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
315
315
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -318,7 +318,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
318
318
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
319
319
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
320
320
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
321
|
-
data: vue.Ref<Record<string, any>>;
|
321
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
322
322
|
}, never>, Pick<{
|
323
323
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
324
324
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -327,7 +327,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
327
327
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
328
328
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
329
329
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
330
|
-
data: vue.Ref<Record<string, any>>;
|
330
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
331
331
|
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
332
332
|
interface DataStoreState {
|
333
333
|
data: Record<string, any>;
|
@@ -1960,7 +1960,7 @@ declare class Repository<M extends Model = Model> {
|
|
1960
1960
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1961
1961
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1962
1962
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1963
|
-
data: vue.Ref<Record<string, any>>;
|
1963
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1964
1964
|
}, "data">, Pick<{
|
1965
1965
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1966
1966
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1969,7 +1969,7 @@ declare class Repository<M extends Model = Model> {
|
|
1969
1969
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1970
1970
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1971
1971
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1972
|
-
data: vue.Ref<Record<string, any>>;
|
1972
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1973
1973
|
}, never>, Pick<{
|
1974
1974
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1975
1975
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1978,7 +1978,7 @@ declare class Repository<M extends Model = Model> {
|
|
1978
1978
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1979
1979
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1980
1980
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1981
|
-
data: vue.Ref<Record<string, any>>;
|
1981
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1982
1982
|
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
1983
1983
|
/**
|
1984
1984
|
* Create a new repository with the given model.
|
@@ -309,7 +309,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
309
309
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
310
310
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
311
311
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
312
|
-
data: vue.Ref<Record<string, any>>;
|
312
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
313
313
|
}, "data">, Pick<{
|
314
314
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
315
315
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -318,7 +318,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
318
318
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
319
319
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
320
320
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
321
|
-
data: vue.Ref<Record<string, any>>;
|
321
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
322
322
|
}, never>, Pick<{
|
323
323
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
324
324
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -327,7 +327,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
327
327
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
328
328
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
329
329
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
330
|
-
data: vue.Ref<Record<string, any>>;
|
330
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
331
331
|
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
332
332
|
interface DataStoreState {
|
333
333
|
data: Record<string, any>;
|
@@ -1960,7 +1960,7 @@ declare class Repository<M extends Model = Model> {
|
|
1960
1960
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1961
1961
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1962
1962
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1963
|
-
data: vue.Ref<Record<string, any>>;
|
1963
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1964
1964
|
}, "data">, Pick<{
|
1965
1965
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1966
1966
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1969,7 +1969,7 @@ declare class Repository<M extends Model = Model> {
|
|
1969
1969
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1970
1970
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1971
1971
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1972
|
-
data: vue.Ref<Record<string, any>>;
|
1972
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1973
1973
|
}, never>, Pick<{
|
1974
1974
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1975
1975
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1978,7 +1978,7 @@ declare class Repository<M extends Model = Model> {
|
|
1978
1978
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1979
1979
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1980
1980
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1981
|
-
data: vue.Ref<Record<string, any>>;
|
1981
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1982
1982
|
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
1983
1983
|
/**
|
1984
1984
|
* Create a new repository with the given model.
|
@@ -309,7 +309,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
309
309
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
310
310
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
311
311
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
312
|
-
data: vue.Ref<Record<string, any>>;
|
312
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
313
313
|
}, "data">, Pick<{
|
314
314
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
315
315
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -318,7 +318,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
318
318
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
319
319
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
320
320
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
321
|
-
data: vue.Ref<Record<string, any>>;
|
321
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
322
322
|
}, never>, Pick<{
|
323
323
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
324
324
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -327,7 +327,7 @@ declare function useDataStore<S extends DataStoreState, T extends DataStore = Da
|
|
327
327
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
328
328
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
329
329
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
330
|
-
data: vue.Ref<Record<string, any>>;
|
330
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
331
331
|
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
332
332
|
interface DataStoreState {
|
333
333
|
data: Record<string, any>;
|
@@ -1960,7 +1960,7 @@ declare class Repository<M extends Model = Model> {
|
|
1960
1960
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1961
1961
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1962
1962
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1963
|
-
data: vue.Ref<Record<string, any>>;
|
1963
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1964
1964
|
}, "data">, Pick<{
|
1965
1965
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1966
1966
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1969,7 +1969,7 @@ declare class Repository<M extends Model = Model> {
|
|
1969
1969
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1970
1970
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1971
1971
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1972
|
-
data: vue.Ref<Record<string, any>>;
|
1972
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1973
1973
|
}, never>, Pick<{
|
1974
1974
|
save(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
1975
1975
|
insert(this: DataStore, records: Elements, triggerQueryAction?: boolean): void;
|
@@ -1978,7 +1978,7 @@ declare class Repository<M extends Model = Model> {
|
|
1978
1978
|
destroy(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1979
1979
|
delete(this: DataStore, ids: (string | number)[], triggerQueryAction?: boolean): void;
|
1980
1980
|
flush(this: DataStore, _records?: Elements, triggerQueryAction?: boolean): void;
|
1981
|
-
data: vue.Ref<Record<string, any>>;
|
1981
|
+
data: vue.Ref<Record<string, any>, Record<string, any>>;
|
1982
1982
|
}, "insert" | "flush" | "delete" | "update" | "destroy" | "save" | "fresh">>;
|
1983
1983
|
/**
|
1984
1984
|
* Create a new repository with the given model.
|
package/dist/uuid/v1.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/uuid/v1.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/uuid/v1.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V1Options } from 'uuid';
|
2
|
-
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/uuid/v4.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/uuid/v4.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/uuid/v4.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { V4Options } from 'uuid';
|
2
|
-
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.
|
2
|
+
import { a2 as CastAttribute, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js';
|
3
3
|
import 'pinia';
|
4
4
|
import 'vue';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pinia-orm-edge",
|
3
|
-
"version": "2.0.0-
|
3
|
+
"version": "2.0.0-28995709.5fa7bf1",
|
4
4
|
"description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
|
5
5
|
"keywords": [
|
6
6
|
"vue",
|
@@ -46,8 +46,7 @@
|
|
46
46
|
"pinia": "^3.0.1"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@2.0.0-
|
50
|
-
"vue-demi": "^0.14.10"
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@2.0.0-28995709.5fa7bf1"
|
51
50
|
},
|
52
51
|
"devDependencies": {
|
53
52
|
"@nuxt/eslint-config": "^0.3.13",
|
@@ -78,8 +77,7 @@
|
|
78
77
|
"uuid": "^10.0.0",
|
79
78
|
"vite": "^5.3.3",
|
80
79
|
"vitest": "^3.0.5",
|
81
|
-
"vue": "^3.
|
82
|
-
"vue2": "npm:vue@^2.7.3"
|
80
|
+
"vue": "^3.5.13"
|
83
81
|
},
|
84
82
|
"size-limit": [
|
85
83
|
{
|
@@ -114,14 +112,12 @@
|
|
114
112
|
"scripts": {
|
115
113
|
"build": "unbuild",
|
116
114
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l pinia-orm -r 1",
|
117
|
-
"coverage": "
|
115
|
+
"coverage": "vitest --run --coverage",
|
118
116
|
"size": "size-limit",
|
119
117
|
"lint": "eslint . --cache",
|
120
118
|
"lint:fix": "eslint . --cache --fix",
|
121
|
-
"test:ui": "
|
122
|
-
"test:watch": "
|
123
|
-
"test
|
124
|
-
"test:3": "vue-demi-switch 3 && vitest --run",
|
125
|
-
"test": "pnpm run test:3"
|
119
|
+
"test:ui": "vitest --ui --api 9527",
|
120
|
+
"test:watch": "vitest --watch",
|
121
|
+
"test": "vitest --run"
|
126
122
|
}
|
127
123
|
}
|