@infrab4a/connect 4.9.4-beta.4 → 4.9.4-beta.5
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/index.cjs.js +2 -1
- package/index.esm.js +2 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -3081,9 +3081,10 @@ const withCreateFirestore = (MixinBase) => {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
}
|
|
3083
3083
|
async save(data) {
|
|
3084
|
+
var _a, _b, _c;
|
|
3084
3085
|
const collectionPath = this.buildCollectionPathForAdd(data);
|
|
3085
3086
|
const collection = this.collection(collectionPath);
|
|
3086
|
-
return collection.add(data);
|
|
3087
|
+
return collection.add((_a = data === null || data === void 0 ? void 0 : data.toPlain) === null || _a === void 0 ? void 0 : _a.call(data), (_c = (_b = Object.values(data.identifier).shift()) === null || _b === void 0 ? void 0 : _b.toString) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
3087
3088
|
}
|
|
3088
3089
|
buildCollectionPathForAdd(identifiers) {
|
|
3089
3090
|
return this.isSubCollection(this)
|
package/index.esm.js
CHANGED
|
@@ -3057,9 +3057,10 @@ const withCreateFirestore = (MixinBase) => {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
}
|
|
3059
3059
|
async save(data) {
|
|
3060
|
+
var _a, _b, _c;
|
|
3060
3061
|
const collectionPath = this.buildCollectionPathForAdd(data);
|
|
3061
3062
|
const collection = this.collection(collectionPath);
|
|
3062
|
-
return collection.add(data);
|
|
3063
|
+
return collection.add((_a = data === null || data === void 0 ? void 0 : data.toPlain) === null || _a === void 0 ? void 0 : _a.call(data), (_c = (_b = Object.values(data.identifier).shift()) === null || _b === void 0 ? void 0 : _b.toString) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
3063
3064
|
}
|
|
3064
3065
|
buildCollectionPathForAdd(identifiers) {
|
|
3065
3066
|
return this.isSubCollection(this)
|