@cocreate/authenticate 1.4.1 → 1.4.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,11 @@
1
+ ## [1.4.2](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.4.1...v1.4.2) (2023-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update dependencies to the lates versions ([cf521c5](https://github.com/CoCreate-app/CoCreate-authenticate/commit/cf521c568da5a8d938285d303ba2fa843a928b78))
7
+ * update method to use object.update etc ([ab9bacb](https://github.com/CoCreate-app/CoCreate-authenticate/commit/ab9bacb163d67ab3d7947a49ae94b6d92fbe3dda))
8
+
1
9
  ## [1.4.1](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.4.0...v1.4.1) (2023-10-25)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/authenticate",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
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",
@@ -40,7 +40,7 @@
40
40
  "main": "./src/index.js",
41
41
  "homepage": "https://cocreate.app/docs/authenticate",
42
42
  "dependencies": {
43
- "@cocreate/utils": "^1.26.1",
43
+ "@cocreate/utils": "^1.26.2",
44
44
  "jsonwebtoken": "^9.0.0"
45
45
  }
46
46
  }
package/src/index.js CHANGED
@@ -41,7 +41,7 @@ function createKeyPair() {
41
41
  keyPairs.set(keyPair._id, keyPair);
42
42
 
43
43
  // crud.send({
44
- // method: 'create.object',
44
+ // method: 'object.create',
45
45
  // array: 'keys',
46
46
  // object: {
47
47
  // ...keyPair,
@@ -55,7 +55,7 @@ function createKeyPair() {
55
55
  // Function to retrieve keys from the database (example using CRUD operations)
56
56
  function readKeyPairs() {
57
57
  const keys = crud.send({
58
- method: 'read.object',
58
+ method: 'object.read',
59
59
  array: 'keys',
60
60
  object: {
61
61
  $filter: {
@@ -79,7 +79,7 @@ function readKeyPairs() {
79
79
  function deleteKeyPair(keyPair) {
80
80
  keyPairs.delete(keyPair._id)
81
81
  // crud.send({
82
- // method: 'delete.object',
82
+ // method: 'object.delete',
83
83
  // array: 'keys',
84
84
  // object: {
85
85
  // _id: keyPair._id,