@travetto/model-firestore 4.1.2 → 4.1.3
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/LICENSE +1 -1
- package/package.json +6 -6
- package/src/service.ts +1 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-firestore",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Firestore backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"directory": "module/model-firestore"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@google-cloud/firestore": "^7.
|
|
29
|
-
"@travetto/base": "^4.1.
|
|
30
|
-
"@travetto/config": "^4.1.
|
|
31
|
-
"@travetto/model": "^4.1.
|
|
28
|
+
"@google-cloud/firestore": "^7.8.0",
|
|
29
|
+
"@travetto/base": "^4.1.1",
|
|
30
|
+
"@travetto/config": "^4.1.1",
|
|
31
|
+
"@travetto/model": "^4.1.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/command": "^4.1.
|
|
34
|
+
"@travetto/command": "^4.1.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/command": {
|
package/src/service.ts
CHANGED
|
@@ -77,7 +77,7 @@ export class FirestoreModelService implements ModelCrudSupport, ModelStorageSupp
|
|
|
77
77
|
const prepped = await ModelCrudUtil.preStore(cls, item, this);
|
|
78
78
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
79
79
|
await this.#getCollection(cls).doc(item.id).update(clone(prepped) as unknown as UpdateData<DocumentData>);
|
|
80
|
-
return
|
|
80
|
+
return prepped;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
async upsert<T extends ModelType>(cls: Class<T>, item: OptionalId<T>): Promise<T> {
|