@edgedev/firebase 1.0.11 → 1.0.12

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.
Files changed (2) hide show
  1. package/index.ts +3 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -52,9 +52,11 @@ export const storeDoc = (collectionPath: string, item: object): void => {
52
52
  const cloneItem = JSON.parse(JSON.stringify(item));
53
53
  const current_time = new Date().getTime();
54
54
  cloneItem.last_updated = current_time;
55
- if (Object.keys(user).length > 0) {
55
+ if (Object.prototype.hasOwnProperty.call(user, "uid")) {
56
+ console.log(user);
56
57
  cloneItem.uid = user["uid"];
57
58
  }
59
+ console.log(cloneItem);
58
60
  if (!Object.prototype.hasOwnProperty.call(cloneItem, "doc_created_at")) {
59
61
  cloneItem.doc_created_at = current_time;
60
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Composables and stores for firebase",
5
5
  "main": "index.ts",
6
6
  "author": "Seth Fischer",