pinia-orm-edge 1.9.0-28583486.807fa36 → 1.9.0-28583537.6bbcf83

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
@@ -1091,8 +1091,9 @@ class Query {
1091
1091
  return queryResult;
1092
1092
  }
1093
1093
  internalGet(triggerHook) {
1094
- if (this.model.$entity() !== this.model.$baseEntity()) {
1095
- this.where(this.model.$typeKey(), this.model.$fields()[this.model.$typeKey()].make());
1094
+ if (this.model.$entity() !== this.model.$baseEntity() || this.model.$namespace() !== this.model.$baseNamespace()) {
1095
+ const typeKeyValue = this.model.$fields()[this.model.$typeKey()].make() ?? this.model.$entity();
1096
+ this.where(this.model.$typeKey(), typeKeyValue);
1096
1097
  }
1097
1098
  let models = this.select();
1098
1099
  if (this.orders.length === 0) {
package/dist/index.mjs CHANGED
@@ -1089,8 +1089,9 @@ class Query {
1089
1089
  return queryResult;
1090
1090
  }
1091
1091
  internalGet(triggerHook) {
1092
- if (this.model.$entity() !== this.model.$baseEntity()) {
1093
- this.where(this.model.$typeKey(), this.model.$fields()[this.model.$typeKey()].make());
1092
+ if (this.model.$entity() !== this.model.$baseEntity() || this.model.$namespace() !== this.model.$baseNamespace()) {
1093
+ const typeKeyValue = this.model.$fields()[this.model.$typeKey()].make() ?? this.model.$entity();
1094
+ this.where(this.model.$typeKey(), typeKeyValue);
1094
1095
  }
1095
1096
  let models = this.select();
1096
1097
  if (this.orders.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinia-orm-edge",
3
- "version": "1.9.0-28583486.807fa36",
3
+ "version": "1.9.0-28583537.6bbcf83",
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.0-28583486.807fa36"
49
+ "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.9.0-28583537.6bbcf83"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@nuxt/eslint-config": "^0.3.10",