@cocreate/authorize 1.13.1 → 1.13.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,10 @@
1
+ ## [1.13.2](https://github.com/CoCreate-app/CoCreate-authorize/compare/v1.13.1...v1.13.2) (2024-01-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * replaced this.user with $user_id ([4b3c672](https://github.com/CoCreate-app/CoCreate-authorize/commit/4b3c672fce83d96729900e2be08c93d4c36c97f8))
7
+
1
8
  ## [1.13.1](https://github.com/CoCreate-app/CoCreate-authorize/compare/v1.13.0...v1.13.1) (2024-01-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/authorize",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "A simple authorize component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "authorize",
package/src/index.js CHANGED
@@ -232,7 +232,7 @@
232
232
  }
233
233
 
234
234
  async function checkMethodOperators(data, key, value) {
235
- if (value === 'this.userId' && data.socket)
235
+ if (value === '$user_Id' && data.socket)
236
236
  value = data.socket.user_id || data.user_id
237
237
 
238
238
  // TODO: support our standard query system