@cocreate/indexeddb 1.10.0 → 1.10.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.10.2](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.1...v1.10.2) (2023-06-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Remove redundant "hosts" field from key and role objects in generateDB() ([e19a119](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/e19a119a773b3de54c6cea00db33b6bf3512bf8b))
7
+ * Update generateDB function to use Boolean values for signIn and signUp keys ([22f89b4](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/22f89b4abecfdf8bcd2571bb0e6aac65e90fd98d))
8
+
9
+ ## [1.10.1](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.0...v1.10.1) (2023-05-21)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([7b42dd5](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/7b42dd5af1970d4049243691a989d8258d0a7d15))
15
+
1
16
  # [1.10.0](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.9.5...v1.10.0) (2023-05-21)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "indexeddb",
@@ -59,9 +59,9 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/docs": "^1.7.11",
63
- "@cocreate/hosting": "^1.10.3",
64
- "@cocreate/utils": "^1.20.9",
65
- "@cocreate/uuid": "^1.4.10"
62
+ "@cocreate/docs": "^1.7.13",
63
+ "@cocreate/hosting": "^1.10.5",
64
+ "@cocreate/utils": "^1.20.10",
65
+ "@cocreate/uuid": "^1.4.11"
66
66
  }
67
67
  }
package/src/index.js CHANGED
@@ -1054,12 +1054,9 @@ async function generateDB(organization = { document: {} }, user = { document: {}
1054
1054
  _id: ObjectId(),
1055
1055
  type: "key",
1056
1056
  key: defaultKey,
1057
- hosts: [
1058
- "*"
1059
- ],
1060
1057
  actions: {
1061
- signIn: "",
1062
- signUp: ""
1058
+ signIn: true,
1059
+ signUp: true
1063
1060
  },
1064
1061
  default: true
1065
1062
  },
@@ -1076,7 +1073,6 @@ async function generateDB(organization = { document: {} }, user = { document: {}
1076
1073
  _id: role_id,
1077
1074
  type: "role",
1078
1075
  name: "admin",
1079
- hosts: ["*"],
1080
1076
  admin: "true"
1081
1077
  },
1082
1078
  organization_id
@@ -1091,12 +1087,10 @@ async function generateDB(organization = { document: {} }, user = { document: {}
1091
1087
  _id: ObjectId(),
1092
1088
  type: "user",
1093
1089
  key: user_id,
1090
+ collection: 'users', // could be any collection
1094
1091
  roles: [role_id],
1095
1092
  email: user.document.email,
1096
- password: user.document.password || btoa('0000'),
1097
- user: {
1098
- collection: 'users' // could be any collection
1099
- }
1093
+ password: user.document.password || btoa('0000')
1100
1094
  },
1101
1095
  organization_id
1102
1096
  };