@aarongustafson/pull-to-refresh 1.1.0 → 1.1.1

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/define.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function definePullToRefresh(tagName?: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aarongustafson/pull-to-refresh",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Web component that enables pull-to-refresh functionality.",
5
5
  "keywords": [
6
6
  "html",
@@ -24,14 +24,15 @@
24
24
  "customElements": "custom-elements.json",
25
25
  "exports": {
26
26
  ".": {
27
- "import": "./index.js",
28
- "types": "./pull-to-refresh.d.ts"
27
+ "types": "./pull-to-refresh.d.ts",
28
+ "import": "./index.js"
29
29
  },
30
30
  "./pull-to-refresh.js": {
31
- "import": "./pull-to-refresh.js",
32
- "types": "./pull-to-refresh.d.ts"
31
+ "types": "./pull-to-refresh.d.ts",
32
+ "import": "./pull-to-refresh.js"
33
33
  },
34
34
  "./define.js": {
35
+ "types": "./define.d.ts",
35
36
  "import": "./define.js"
36
37
  },
37
38
  "./custom-elements.json": "./custom-elements.json"
@@ -40,6 +41,7 @@
40
41
  "pull-to-refresh.js",
41
42
  "pull-to-refresh.d.ts",
42
43
  "define.js",
44
+ "define.d.ts",
43
45
  "index.js",
44
46
  "translations.json",
45
47
  "custom-elements.json",
@@ -47,10 +49,9 @@
47
49
  "LICENSE"
48
50
  ],
49
51
  "engines": {
50
- "node": ">=20.0.0"
52
+ "node": ">=22.0.0"
51
53
  },
52
54
  "scripts": {
53
- "setup": "node scripts/setup.js",
54
55
  "test": "vitest",
55
56
  "test:ui": "vitest --ui",
56
57
  "test:run": "vitest run",
@@ -65,16 +66,16 @@
65
66
  "postversion": "git push --follow-tags"
66
67
  },
67
68
  "devDependencies": {
68
- "@open-wc/eslint-config": "^13.0.0",
69
- "@testing-library/dom": "^10.4.1",
70
- "@testing-library/user-event": "^14.6.1",
71
- "@vitest/coverage-v8": "^4.0.10",
72
- "@vitest/ui": "^4.0.10",
73
- "eslint": "^9.39.1",
69
+ "@open-wc/eslint-config": "^13.1.0",
70
+ "@testing-library/dom": "^10.4.2",
71
+ "@testing-library/user-event": "^14.6.7",
72
+ "@vitest/coverage-v8": "^5.0.5",
73
+ "@vitest/ui": "^5.0.5",
74
+ "eslint": "^10.12.0",
74
75
  "eslint-config-prettier": "^10.1.8",
75
- "happy-dom": "^20.0.10",
76
- "prettier": "^3.6.2",
77
- "vitest": "^4.0.10"
76
+ "happy-dom": "^21.0.4",
77
+ "prettier": "^3.9.9",
78
+ "vitest": "^5.0.5"
78
79
  },
79
80
  "publishConfig": {
80
81
  "access": "public"
@@ -27,8 +27,6 @@ export declare class PullToRefreshElement extends HTMLElement {
27
27
  completeRefresh(): void;
28
28
  }
29
29
 
30
- export declare function definePullToRefresh(tagName?: string): boolean;
31
-
32
30
  declare global {
33
31
  interface HTMLElementTagNameMap {
34
32
  'pull-to-refresh': PullToRefreshElement;