pinia-orm-edge 2.0.0-29071784.ee571de → 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 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][0]) : model.$setRelation(relation, []);
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][0]) : model.$setRelation(relation, []);
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-29071784.ee571de",
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-29071784.ee571de"
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",