pinia-orm-edge 1.9.1-28593945.37e7354 → 1.9.1-28596540.e19175b
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
@@ -670,7 +670,7 @@ class BelongsToMany extends Relation {
|
|
670
670
|
if (!pivot) {
|
671
671
|
return;
|
672
672
|
}
|
673
|
-
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson());
|
673
|
+
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson(), { operation: void 0 });
|
674
674
|
relatedModelCopy.$setRelation("pivot", pivot);
|
675
675
|
relationResults.push(relatedModelCopy);
|
676
676
|
});
|
@@ -2836,7 +2836,7 @@ class MorphToMany extends Relation {
|
|
2836
2836
|
const relationResults = [];
|
2837
2837
|
relatedModels.forEach((relatedModel) => {
|
2838
2838
|
const pivot = pivotModels[`[${parentModel[this.parentKey]},${relatedModel[this.relatedKey]},${this.parent.$entity()}]`]?.[0] ?? null;
|
2839
|
-
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson());
|
2839
|
+
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson(), { operation: void 0 });
|
2840
2840
|
relatedModelCopy.$setRelation("pivot", pivot);
|
2841
2841
|
if (pivot) {
|
2842
2842
|
relationResults.push(relatedModelCopy);
|
package/dist/index.mjs
CHANGED
@@ -668,7 +668,7 @@ class BelongsToMany extends Relation {
|
|
668
668
|
if (!pivot) {
|
669
669
|
return;
|
670
670
|
}
|
671
|
-
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson());
|
671
|
+
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson(), { operation: void 0 });
|
672
672
|
relatedModelCopy.$setRelation("pivot", pivot);
|
673
673
|
relationResults.push(relatedModelCopy);
|
674
674
|
});
|
@@ -2834,7 +2834,7 @@ class MorphToMany extends Relation {
|
|
2834
2834
|
const relationResults = [];
|
2835
2835
|
relatedModels.forEach((relatedModel) => {
|
2836
2836
|
const pivot = pivotModels[`[${parentModel[this.parentKey]},${relatedModel[this.relatedKey]},${this.parent.$entity()}]`]?.[0] ?? null;
|
2837
|
-
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson());
|
2837
|
+
const relatedModelCopy = relatedModel.$newInstance(relatedModel.$toJson(), { operation: void 0 });
|
2838
2838
|
relatedModelCopy.$setRelation("pivot", pivot);
|
2839
2839
|
if (pivot) {
|
2840
2840
|
relationResults.push(relatedModelCopy);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pinia-orm-edge",
|
3
|
-
"version": "1.9.1-
|
3
|
+
"version": "1.9.1-28596540.e19175b",
|
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.9.1-
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.1-28596540.e19175b"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nuxt/eslint-config": "^0.3.10",
|