@cocreate/pwa 1.19.4 → 1.20.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,16 @@
1
+ # [1.20.0](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.4...v1.20.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * observer taget has been renamed to selector ([9f13f9d](https://github.com/CoCreate-app/CoCreate-pwa/commit/9f13f9d8e259c790a5b37ba9cc2d1f563cc14484))
7
+ * pretier.config.js and file formating ([77421cc](https://github.com/CoCreate-app/CoCreate-pwa/commit/77421cc3636d3ddb56afc764443c596aaf26e5d9))
8
+
9
+
10
+ ### Features
11
+
12
+ * add prettier.config.js and format files ([2cb51a6](https://github.com/CoCreate-app/CoCreate-pwa/commit/2cb51a69aed9023c80102bc586f67916aec06ce3))
13
+
1
14
  ## [1.19.4](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.19.3...v1.19.4) (2024-06-12)
2
15
 
3
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/pwa",
3
- "version": "1.19.4",
3
+ "version": "1.20.0",
4
4
  "description": "A simple pwa component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "pwa",
@@ -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
@@ -134,7 +134,7 @@ async function persistData() {
134
134
  observer.init({
135
135
  name: 'initPwa',
136
136
  observe: ['addedNodes'],
137
- target: '[actions="install"]',
137
+ selector: '[actions="install"]',
138
138
  callback: (mutation) => {
139
139
  init()
140
140
  }
package/src/web-share.js CHANGED
@@ -63,7 +63,7 @@ function share(element) {
63
63
  Observer.init({
64
64
  name: 'webshare',
65
65
  observe: ['addedNodes'],
66
- target: '[share]',
66
+ selector: '[share]',
67
67
  callback: (mutation) => {
68
68
  init(mutation.target)
69
69
  }