@cocreate/authenticate 1.9.3 → 1.10.0

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,22 @@
1
+ # [1.10.0](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.9.4...v1.10.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * prettier.config options ([35deb04](https://github.com/CoCreate-app/CoCreate-authenticate/commit/35deb0404cd9bf16d58fc2b8da9418cdd9fb28ca))
7
+
8
+
9
+ ### Features
10
+
11
+ * add prettier.config.js and format files ([1edb5cc](https://github.com/CoCreate-app/CoCreate-authenticate/commit/1edb5cc404b277a9e8237f93a31e319770746b80))
12
+
13
+ ## [1.9.4](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.9.3...v1.9.4) (2024-10-31)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * read return only if session ([32dc8b8](https://github.com/CoCreate-app/CoCreate-authenticate/commit/32dc8b874532435003acbee3f432aedd925b9bdb))
19
+
1
20
  ## [1.9.3](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.9.2...v1.9.3) (2024-06-23)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/authenticate",
3
- "version": "1.9.3",
3
+ "version": "1.10.0",
4
4
  "description": "A simple authenticate component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "authenticate",
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ tabWidth: 4,
3
+ semi: true,
4
+ trailingComma: "none",
5
+ bracketSameLine: true,
6
+ useTabs: true,
7
+ overrides: [
8
+ {
9
+ files: ["*.json", "*.yml", "*.yaml"],
10
+ options: {
11
+ tabWidth: 2,
12
+ useTabs: false
13
+ },
14
+ }
15
+ ],
16
+ };
package/src/index.js CHANGED
@@ -138,9 +138,9 @@ class CoCreateAuthenticate {
138
138
 
139
139
  if (client.object && client.object.length) {
140
140
  sessions.set(clientId, client.object[0].session)
141
+ return client.object[0].session
141
142
  }
142
143
 
143
- return client.object[0].session
144
144
  }
145
145
 
146
146
  }