teamplay 0.4.0-alpha.42 → 0.4.0-alpha.43
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/orm/SignalBase.js +7 -0
- package/package.json +2 -2
package/orm/SignalBase.js
CHANGED
|
@@ -193,6 +193,13 @@ export class Signal extends Function {
|
|
|
193
193
|
if (this[SEGMENTS][0] === AGGREGATIONS) {
|
|
194
194
|
return getAggregationCollectionName(this[SEGMENTS])
|
|
195
195
|
}
|
|
196
|
+
// Racer compatibility:
|
|
197
|
+
// prefer static model collection (when model is mounted on alternative paths,
|
|
198
|
+
// e.g. `_virtualFields.*` -> model with `static collection = 'fields'`).
|
|
199
|
+
const collectionFromModel = this.constructor?.collection
|
|
200
|
+
if (typeof collectionFromModel === 'string' && collectionFromModel) {
|
|
201
|
+
return collectionFromModel
|
|
202
|
+
}
|
|
196
203
|
return this[SEGMENTS][0]
|
|
197
204
|
}
|
|
198
205
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teamplay",
|
|
3
|
-
"version": "0.4.0-alpha.
|
|
3
|
+
"version": "0.4.0-alpha.43",
|
|
4
4
|
"description": "Full-stack signals ORM with multiplayer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
84
|
"license": "MIT",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "208471a71d46bdf902a09884c533ff1b538ab203"
|
|
86
86
|
}
|