@cocreate/unique 1.15.6 → 1.15.7

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,12 @@
1
+ ## [1.15.7](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.15.6...v1.15.7) (2023-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * favicon.ico path ([7220c5b](https://github.com/CoCreate-app/CoCreate-unique/commit/7220c5b96048126c2865554bebafbf247abb5909))
7
+ * update dependencies to the lates versions ([96c5d80](https://github.com/CoCreate-app/CoCreate-unique/commit/96c5d804801b0d1c9cca6fea72954a7e46caa07f))
8
+ * update method to use object.update etc ([32b7da0](https://github.com/CoCreate-app/CoCreate-unique/commit/32b7da01f3be2b4b9921b748ec8e30ac73764b36))
9
+
1
10
  ## [1.15.6](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.15.5...v1.15.6) (2023-10-25)
2
11
 
3
12
 
package/demo/index.html CHANGED
@@ -6,9 +6,9 @@
6
6
  <!-- CoCreate Favicon -->
7
7
  <link
8
8
  rel="icon"
9
- href="https://cdn.cocreate.app/favicon.ico"
10
- type="image/ico"
11
- sizes="16x16" />
9
+ type="image/png"
10
+ sizes="32x32"
11
+ href="../assets/favicon.ico" />
12
12
  <link rel="manifest" href="/manifest.webmanifest" />
13
13
  </head>
14
14
  <style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/unique",
3
- "version": "1.15.6",
3
+ "version": "1.15.7",
4
4
  "description": "A simple unique component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "unique",
@@ -58,7 +58,7 @@
58
58
  "webpack-log": "^3.0.1"
59
59
  },
60
60
  "dependencies": {
61
- "@cocreate/crud-client": "^1.28.10",
61
+ "@cocreate/crud-client": "^1.28.12",
62
62
  "@cocreate/uuid": "^1.7.2"
63
63
  }
64
64
  }
package/src/client.js CHANGED
@@ -44,7 +44,7 @@ async function isUnique(element) {
44
44
  let key = element.getAttribute('key');
45
45
  let value = await element.getValue();
46
46
  let request = {
47
- method: 'read.object',
47
+ method: 'object.read',
48
48
  db: 'indexeddb',
49
49
  array: element.getAttribute('array'),
50
50
  $filter: {
package/src/server.js CHANGED
@@ -26,7 +26,7 @@ class CoCreateUnique {
26
26
  async isUnique(data) {
27
27
  const self = this
28
28
  try {
29
- data.method = 'read.object'
29
+ data.method = 'object.read'
30
30
  this.crud.send(data).then((data) => {
31
31
  let response = {
32
32
  method: 'isUnique',