better-svelte-email 0.3.3 → 0.3.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.
@@ -50,7 +50,7 @@ export const emailList = ({ path: emailPath = '/src/lib/emails', root } = {}) =>
50
50
  const getEmailComponent = async (emailPath, file) => {
51
51
  try {
52
52
  // Import the email component dynamically
53
- return (await import(/* @vite-ignore */ `${emailPath}/${file}.svelte`)).default;
53
+ return (await import(/* @vite-ignore */ `${emailPath}${path.sep}${file}.svelte`)).default;
54
54
  }
55
55
  catch {
56
56
  throw new Error(`Failed to import email component '${file}'. Make sure the file exists and includes the <Head /> component.`);
@@ -182,7 +182,7 @@ function getFiles(dir, files = []) {
182
182
  const fileList = fs.readdirSync(dir);
183
183
  // Create the full path of the file/directory by concatenating the passed directory and file/directory name
184
184
  for (const file of fileList) {
185
- const name = `${dir}/${file}`;
185
+ const name = `${dir}${path.sep}${file}`;
186
186
  // Check if the current file/directory is a directory using fs.statSync
187
187
  if (fs.statSync(name).isDirectory()) {
188
188
  // If it is a directory, recursively call the getFiles function with the directory path and the files array
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "better-svelte-email",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "author": "Konixy",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Konixy/better-svelte-email.git"
8
8
  },
9
+ "homepage": "https://better-svelte-email.konixy.fr",
9
10
  "peerDependencies": {
10
11
  "svelte": ">5.14.3",
11
12
  "@sveltejs/kit": ">=2"
@@ -46,7 +47,7 @@
46
47
  "publint": "^0.3.15",
47
48
  "rehype-autolink-headings": "^7.1.0",
48
49
  "rehype-slug": "^6.0.0",
49
- "svelte": "5.42.2",
50
+ "svelte": "5.43.2",
50
51
  "svelte-check": "^4.3.3",
51
52
  "tailwindcss": "^4.1.16",
52
53
  "typescript": "^5.9.3",