pinia-orm-edge 2.0.0-29071787.b1b8c27 → 2.0.0-29146664.16950b0
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
@@ -2610,7 +2610,7 @@ class HasManyThrough extends Relation {
|
|
2610
2610
|
const dictionary = this.buildDictionary(throughModels, relatedModels);
|
2611
2611
|
models.forEach((model) => {
|
2612
2612
|
const key = model[this.localKey];
|
2613
|
-
dictionary[key] ? model.$setRelation(relation, dictionary[key]
|
2613
|
+
dictionary[key] ? model.$setRelation(relation, dictionary[key].flat().filter((item) => item !== void 0)) : model.$setRelation(relation, []);
|
2614
2614
|
});
|
2615
2615
|
}
|
2616
2616
|
/**
|
package/dist/index.mjs
CHANGED
@@ -2608,7 +2608,7 @@ class HasManyThrough extends Relation {
|
|
2608
2608
|
const dictionary = this.buildDictionary(throughModels, relatedModels);
|
2609
2609
|
models.forEach((model) => {
|
2610
2610
|
const key = model[this.localKey];
|
2611
|
-
dictionary[key] ? model.$setRelation(relation, dictionary[key]
|
2611
|
+
dictionary[key] ? model.$setRelation(relation, dictionary[key].flat().filter((item) => item !== void 0)) : model.$setRelation(relation, []);
|
2612
2612
|
});
|
2613
2613
|
}
|
2614
2614
|
/**
|
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-29146664.16950b0",
|
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": ">=3.0.0"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@2.0.0-
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@2.0.0-29146664.16950b0"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nuxt/eslint-config": "^1.1.0",
|