pinia-orm-edge 1.10.0-28686653.93359fd → 1.10.0-28692277.ad91ce6
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 +8 -12
- 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 +8 -12
- 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.89228fae.d.cts → pinia-orm.e4d337f9.d.cts} +1 -1
- package/dist/shared/{pinia-orm.89228fae.d.mts → pinia-orm.e4d337f9.d.mts} +1 -1
- package/dist/shared/{pinia-orm.89228fae.d.ts → pinia-orm.e4d337f9.d.ts} +1 -1
- 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 +2 -2
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 { 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.e4d337f9.cjs';
|
2
|
+
export { aq as NanoidOptions } from './shared/pinia-orm.e4d337f9.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/decorators.d.mts
CHANGED
@@ -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.
|
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.e4d337f9.mjs';
|
2
|
+
export { aq as NanoidOptions } from './shared/pinia-orm.e4d337f9.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/decorators.d.ts
CHANGED
@@ -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.
|
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.e4d337f9.js';
|
2
|
+
export { aq as NanoidOptions } from './shared/pinia-orm.e4d337f9.js';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
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
@@ -116,8 +116,8 @@ class Relation extends Attribute {
|
|
116
116
|
/**
|
117
117
|
* Get the index key defined by the primary key or keys (composite)
|
118
118
|
*/
|
119
|
-
|
120
|
-
return Utils.isArray(key) ? `[${key.
|
119
|
+
getResolvedKey(model, key) {
|
120
|
+
return Utils.isArray(key) ? `[${key.map((keyPart) => model[keyPart]).toString()}]` : model[key];
|
121
121
|
}
|
122
122
|
}
|
123
123
|
|
@@ -2181,7 +2181,7 @@ class HasOne extends Relation {
|
|
2181
2181
|
match(relation, models, query) {
|
2182
2182
|
const dictionary = this.buildDictionary(query.get(false));
|
2183
2183
|
models.forEach((model) => {
|
2184
|
-
const key =
|
2184
|
+
const key = this.getResolvedKey(model, this.localKey);
|
2185
2185
|
dictionary[key] ? model.$setRelation(relation, dictionary[key][0]) : model.$setRelation(relation, null);
|
2186
2186
|
});
|
2187
2187
|
}
|
@@ -2190,7 +2190,7 @@ class HasOne extends Relation {
|
|
2190
2190
|
*/
|
2191
2191
|
buildDictionary(results) {
|
2192
2192
|
return this.mapToDictionary(results, (result) => {
|
2193
|
-
return [
|
2193
|
+
return [this.getResolvedKey(result, this.foreignKey), result];
|
2194
2194
|
});
|
2195
2195
|
}
|
2196
2196
|
/**
|
@@ -2280,7 +2280,7 @@ class BelongsTo extends Relation {
|
|
2280
2280
|
match(relation, models, query) {
|
2281
2281
|
const dictionary = this.buildDictionary(query.get(false));
|
2282
2282
|
models.forEach((model) => {
|
2283
|
-
const key =
|
2283
|
+
const key = this.getResolvedKey(model, this.foreignKey);
|
2284
2284
|
dictionary[key] ? model.$setRelation(relation, dictionary[key]) : model.$setRelation(relation, null);
|
2285
2285
|
});
|
2286
2286
|
}
|
@@ -2289,7 +2289,7 @@ class BelongsTo extends Relation {
|
|
2289
2289
|
*/
|
2290
2290
|
buildDictionary(models) {
|
2291
2291
|
return models.reduce((dictionary, model) => {
|
2292
|
-
dictionary[
|
2292
|
+
dictionary[this.getResolvedKey(model, this.ownerKey)] = model;
|
2293
2293
|
return dictionary;
|
2294
2294
|
}, {});
|
2295
2295
|
}
|
@@ -2364,9 +2364,7 @@ class HasMany extends Relation {
|
|
2364
2364
|
match(relation, models, query) {
|
2365
2365
|
const dictionary = this.buildDictionary(query.get(false));
|
2366
2366
|
models.forEach((model) => {
|
2367
|
-
const key = this.
|
2368
|
-
Utils.isArray(this.localKey) ? this.localKey.map((key2) => model[key2]) : model[this.localKey]
|
2369
|
-
);
|
2367
|
+
const key = this.getResolvedKey(model, this.localKey);
|
2370
2368
|
dictionary[key] ? model.$setRelation(relation, dictionary[key]) : model.$setRelation(relation, []);
|
2371
2369
|
});
|
2372
2370
|
}
|
@@ -2375,9 +2373,7 @@ class HasMany extends Relation {
|
|
2375
2373
|
*/
|
2376
2374
|
buildDictionary(results) {
|
2377
2375
|
return this.mapToDictionary(results, (result) => {
|
2378
|
-
const key = this.
|
2379
|
-
Utils.isArray(this.foreignKey) ? this.foreignKey.map((key2) => result[key2]) : result[this.foreignKey]
|
2380
|
-
);
|
2376
|
+
const key = this.getResolvedKey(result, this.foreignKey);
|
2381
2377
|
return [key, result];
|
2382
2378
|
});
|
2383
2379
|
}
|
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.
|
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.e4d337f9.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.e4d337f9.cjs';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import '@/composables';
|
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, 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.e4d337f9.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.e4d337f9.mjs';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import '@/composables';
|
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, 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.e4d337f9.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.e4d337f9.js';
|
3
3
|
import { Pinia } from 'pinia';
|
4
4
|
import '@/composables';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/dist/index.mjs
CHANGED
@@ -114,8 +114,8 @@ class Relation extends Attribute {
|
|
114
114
|
/**
|
115
115
|
* Get the index key defined by the primary key or keys (composite)
|
116
116
|
*/
|
117
|
-
|
118
|
-
return isArray(key) ? `[${key.
|
117
|
+
getResolvedKey(model, key) {
|
118
|
+
return isArray(key) ? `[${key.map((keyPart) => model[keyPart]).toString()}]` : model[key];
|
119
119
|
}
|
120
120
|
}
|
121
121
|
|
@@ -2179,7 +2179,7 @@ class HasOne extends Relation {
|
|
2179
2179
|
match(relation, models, query) {
|
2180
2180
|
const dictionary = this.buildDictionary(query.get(false));
|
2181
2181
|
models.forEach((model) => {
|
2182
|
-
const key =
|
2182
|
+
const key = this.getResolvedKey(model, this.localKey);
|
2183
2183
|
dictionary[key] ? model.$setRelation(relation, dictionary[key][0]) : model.$setRelation(relation, null);
|
2184
2184
|
});
|
2185
2185
|
}
|
@@ -2188,7 +2188,7 @@ class HasOne extends Relation {
|
|
2188
2188
|
*/
|
2189
2189
|
buildDictionary(results) {
|
2190
2190
|
return this.mapToDictionary(results, (result) => {
|
2191
|
-
return [
|
2191
|
+
return [this.getResolvedKey(result, this.foreignKey), result];
|
2192
2192
|
});
|
2193
2193
|
}
|
2194
2194
|
/**
|
@@ -2278,7 +2278,7 @@ class BelongsTo extends Relation {
|
|
2278
2278
|
match(relation, models, query) {
|
2279
2279
|
const dictionary = this.buildDictionary(query.get(false));
|
2280
2280
|
models.forEach((model) => {
|
2281
|
-
const key =
|
2281
|
+
const key = this.getResolvedKey(model, this.foreignKey);
|
2282
2282
|
dictionary[key] ? model.$setRelation(relation, dictionary[key]) : model.$setRelation(relation, null);
|
2283
2283
|
});
|
2284
2284
|
}
|
@@ -2287,7 +2287,7 @@ class BelongsTo extends Relation {
|
|
2287
2287
|
*/
|
2288
2288
|
buildDictionary(models) {
|
2289
2289
|
return models.reduce((dictionary, model) => {
|
2290
|
-
dictionary[
|
2290
|
+
dictionary[this.getResolvedKey(model, this.ownerKey)] = model;
|
2291
2291
|
return dictionary;
|
2292
2292
|
}, {});
|
2293
2293
|
}
|
@@ -2362,9 +2362,7 @@ class HasMany extends Relation {
|
|
2362
2362
|
match(relation, models, query) {
|
2363
2363
|
const dictionary = this.buildDictionary(query.get(false));
|
2364
2364
|
models.forEach((model) => {
|
2365
|
-
const key = this.
|
2366
|
-
isArray(this.localKey) ? this.localKey.map((key2) => model[key2]) : model[this.localKey]
|
2367
|
-
);
|
2365
|
+
const key = this.getResolvedKey(model, this.localKey);
|
2368
2366
|
dictionary[key] ? model.$setRelation(relation, dictionary[key]) : model.$setRelation(relation, []);
|
2369
2367
|
});
|
2370
2368
|
}
|
@@ -2373,9 +2371,7 @@ class HasMany extends Relation {
|
|
2373
2371
|
*/
|
2374
2372
|
buildDictionary(results) {
|
2375
2373
|
return this.mapToDictionary(results, (result) => {
|
2376
|
-
const key = this.
|
2377
|
-
isArray(this.foreignKey) ? this.foreignKey.map((key2) => result[key2]) : result[this.foreignKey]
|
2378
|
-
);
|
2374
|
+
const key = this.getResolvedKey(result, this.foreignKey);
|
2379
2375
|
return [key, result];
|
2380
2376
|
});
|
2381
2377
|
}
|
package/dist/nanoid/async.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/async.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/async.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/index.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/index.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
package/dist/nanoid/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.cjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.mjs';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -1,4 +1,4 @@
|
|
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.e4d337f9.js';
|
2
2
|
import 'pinia';
|
3
3
|
import '@/composables';
|
4
4
|
import '@pinia-orm/normalizr';
|
@@ -738,7 +738,7 @@ declare abstract class Relation extends Attribute {
|
|
738
738
|
/**
|
739
739
|
* Get the index key defined by the primary key or keys (composite)
|
740
740
|
*/
|
741
|
-
protected
|
741
|
+
protected getResolvedKey(model: Model, key: PrimaryKey): string;
|
742
742
|
}
|
743
743
|
|
744
744
|
declare class HasOne extends Relation {
|
@@ -738,7 +738,7 @@ declare abstract class Relation extends Attribute {
|
|
738
738
|
/**
|
739
739
|
* Get the index key defined by the primary key or keys (composite)
|
740
740
|
*/
|
741
|
-
protected
|
741
|
+
protected getResolvedKey(model: Model, key: PrimaryKey): string;
|
742
742
|
}
|
743
743
|
|
744
744
|
declare class HasOne extends Relation {
|
@@ -738,7 +738,7 @@ declare abstract class Relation extends Attribute {
|
|
738
738
|
/**
|
739
739
|
* Get the index key defined by the primary key or keys (composite)
|
740
740
|
*/
|
741
|
-
protected
|
741
|
+
protected getResolvedKey(model: Model, key: PrimaryKey): string;
|
742
742
|
}
|
743
743
|
|
744
744
|
declare class HasOne extends Relation {
|
package/dist/uuid/v1.d.cts
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.
|
2
|
+
import { a0 as CastAttribute, m as ModelFields, an as PropertyDecorator } from '../shared/pinia-orm.e4d337f9.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
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 { 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.e4d337f9.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
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 { 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.e4d337f9.js';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
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 { 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.e4d337f9.cjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
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 { 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.e4d337f9.mjs';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
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 { 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.e4d337f9.js';
|
3
3
|
import 'pinia';
|
4
4
|
import '@/composables';
|
5
5
|
import '@pinia-orm/normalizr';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pinia-orm-edge",
|
3
|
-
"version": "1.10.0-
|
3
|
+
"version": "1.10.0-28692277.ad91ce6",
|
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.10.0-
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.10.0-28692277.ad91ce6"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nuxt/eslint-config": "^0.3.13",
|