drab 4.1.3 → 4.1.4

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.
@@ -100,10 +100,12 @@ const onClick = async () => {
100
100
  console.error(error);
101
101
  }
102
102
  } else if (shareData.files) {
103
- const file = shareData.files[0];
104
- downloadAnchor.download = file.name;
105
- downloadAnchor.href = URL.createObjectURL(file);
106
- downloadAnchor.click();
103
+ const file = shareData.files.at(0);
104
+ if (file) {
105
+ downloadAnchor.download = file.name;
106
+ downloadAnchor.href = URL.createObjectURL(file);
107
+ downloadAnchor.click();
108
+ }
107
109
  }
108
110
  };
109
111
  onMount(() => clientJs = true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drab",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "An Unstyled Svelte Component Library",
5
5
  "keywords": [
6
6
  "components",
@@ -59,20 +59,20 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@sveltejs/adapter-vercel": "^3.0.3",
62
- "@sveltejs/kit": "^1.25.1",
62
+ "@sveltejs/kit": "^1.25.2",
63
63
  "@sveltejs/package": "^2.2.2",
64
64
  "@tailwindcss/typography": "^0.5.10",
65
- "@types/node": "^20.8.2",
66
- "@typescript-eslint/eslint-plugin": "^6.7.4",
67
- "@typescript-eslint/parser": "^6.7.4",
65
+ "@types/node": "^20.8.6",
66
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
67
+ "@typescript-eslint/parser": "^6.8.0",
68
68
  "autoprefixer": "^10.4.16",
69
- "eslint": "^8.50.0",
69
+ "eslint": "^8.51.0",
70
70
  "eslint-config-prettier": "^9.0.0",
71
71
  "eslint-plugin-svelte": "^2.34.0",
72
72
  "prettier": "^3.0.3",
73
73
  "prettier-plugin-svelte": "^3.0.3",
74
- "prettier-plugin-tailwindcss": "^0.5.5",
75
- "publint": "^0.2.3",
74
+ "prettier-plugin-tailwindcss": "^0.5.6",
75
+ "publint": "^0.2.4",
76
76
  "robino": "^0.0.39",
77
77
  "svelte-check": "^3.5.2",
78
78
  "tailwindcss": "^3.3.3",