@cocreate/lazy-loader 1.22.0 → 1.23.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.23.0](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.22.1...v1.23.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * pretier.config.js and file formating ([ff182c2](https://github.com/CoCreate-app/CoCreate-lazy-loader/commit/ff182c259bd60ede33496ce69ab55ac821ef9657))
7
+
8
+
9
+ ### Features
10
+
11
+ * add prettier.config.js and format files ([038200e](https://github.com/CoCreate-app/CoCreate-lazy-loader/commit/038200efbcd94bbc3c5dc318325cf271488c8bbb))
12
+
13
+ ## [1.22.1](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.22.0...v1.22.1) (2024-11-02)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * observer taget has been renamed to selector ([259e5b6](https://github.com/CoCreate-app/CoCreate-lazy-loader/commit/259e5b6a161d32d7dd1194adf3b4b956958ebc4f))
19
+
1
20
  # [1.22.0](https://github.com/CoCreate-app/CoCreate-lazy-loader/compare/v1.21.0...v1.22.0) (2024-09-21)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/lazy-loader",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "A simple lazy-loader component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "lazy-loader",
@@ -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/client.js CHANGED
@@ -21,7 +21,7 @@ function listen(name, callback, selector) {
21
21
  observer.init({
22
22
  name: 'lazyloadObserver',
23
23
  observe: ['childList'],
24
- target: selector,
24
+ selector,
25
25
  callback: observerCallback
26
26
  })
27
27
 
@@ -47,7 +47,7 @@ function listen(name, callback, selector) {
47
47
  name: 'lazyloadAttributeObserver',
48
48
  observe: ['attributes'],
49
49
  attributeName: selectorAttributes,
50
- target: selector,
50
+ selector,
51
51
  callback: observerCallback
52
52
  });
53
53