@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.
@@ -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
- id: docSnap.id,
125
- ...docSnap.data()
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
- id: docRef.id,
152
- ...data
151
+ ...data,
152
+ id: docRef.id
153
153
  };
154
154
  }
155
155
  async setDoc(path, data, options = {}) {