@speakableio/core 0.1.31 → 0.1.32
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.native.mjs +4 -4
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.js +4 -4
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -121,8 +121,8 @@ var FirebaseAPI = class _FirebaseAPI {
|
|
|
121
121
|
const docRef = doc2(this.db, path);
|
|
122
122
|
const docSnap = await getDoc2(docRef);
|
|
123
123
|
const data = docSnap.exists() ? {
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
...docSnap.data(),
|
|
125
|
+
id: docSnap.id
|
|
126
126
|
} : null;
|
|
127
127
|
return {
|
|
128
128
|
id: docSnap.id,
|
|
@@ -148,8 +148,8 @@ var FirebaseAPI = class _FirebaseAPI {
|
|
|
148
148
|
const collectionRef = collection2(this.db, path);
|
|
149
149
|
const docRef = await addDoc2(collectionRef, data);
|
|
150
150
|
return {
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
...data,
|
|
152
|
+
id: docRef.id
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
async setDoc(path, data, options = {}) {
|