@cocreate/indexeddb 1.10.1 → 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 +8 -0
- package/package.json +5 -5
- package/src/index.js +4 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
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
|
+
|
|
1
9
|
## [1.10.1](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.0...v1.10.1) (2023-05-21)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/indexeddb",
|
|
3
|
-
"version": "1.10.
|
|
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.
|
|
63
|
-
"@cocreate/hosting": "^1.10.
|
|
64
|
-
"@cocreate/utils": "^1.20.
|
|
65
|
-
"@cocreate/uuid": "^1.4.
|
|
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
|
};
|