@gokiteam/goki-dev-client 0.2.3 → 0.2.4
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/client.js +3 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -325,6 +325,9 @@ class FirestoreClient {
|
|
|
325
325
|
documentId: params.documentId,
|
|
326
326
|
traceId: params.traceId
|
|
327
327
|
});
|
|
328
|
+
if (result.data.status === 'error') {
|
|
329
|
+
throw new Error(result.data.message || 'Firestore error');
|
|
330
|
+
}
|
|
328
331
|
const rawDocument = result.data.document;
|
|
329
332
|
return { document: this.parseRawDocument(rawDocument) };
|
|
330
333
|
}
|
package/dist/types.d.ts
CHANGED