svelte-sitemap 3.2.0-next.0 → 3.2.0-next.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/README.md CHANGED
@@ -103,11 +103,14 @@ Add the plugin to your `vite.config.ts`:
103
103
  ```typescript
104
104
  // vite.config.ts
105
105
  import { sveltekit } from '@sveltejs/kit/vite';
106
- import { svelteKitSitemap } from 'svelte-sitemap/vite';
106
+ import { svelteSitemap } from 'svelte-sitemap/vite'; // <-- Add svelte-sitemap vite plugin
107
107
  import { defineConfig } from 'vite';
108
108
 
109
109
  export default defineConfig({
110
- plugins: [sveltekit(), svelteKitSitemap({ domain: 'https://example.com' })]
110
+ plugins: [
111
+ sveltekit(),
112
+ svelteSitemap({ domain: 'https://example.com' }) // <-- Configure the plugin with your options
113
+ ]
111
114
  });
112
115
  ```
113
116
 
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "3.2.0-next.0";
2
+ var version = "3.2.0-next.1";
3
3
  //#endregion
4
4
  export { version };
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-sitemap",
3
- "version": "3.2.0-next.0",
3
+ "version": "3.2.0-next.1",
4
4
  "type": "module",
5
5
  "description": "Small helper which scans your Svelte routes folder and generates static sitemap.xml",
6
6
  "author": "BART! <bart@bartweb.cz>",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "fast-glob": "^3.3.3",
18
- "jiti": "^2.6.1",
18
+ "jiti": "^2.7.0",
19
19
  "minimist": "^1.2.8",
20
20
  "xmlbuilder2": "^4.0.3"
21
21
  },
package/vite.d.ts CHANGED
@@ -2,7 +2,7 @@ import { OptionsSvelteSitemap } from "./dto/global.interface.js";
2
2
  import { Plugin } from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare function svelteKitSitemap(options: OptionsSvelteSitemap): Plugin;
5
+ declare function svelteSitemap(options: OptionsSvelteSitemap): Plugin;
6
6
  //#endregion
7
- export { svelteKitSitemap };
7
+ export { svelteSitemap };
8
8
  //# sourceMappingURL=vite.d.ts.map
package/vite.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createSitemap } from "./index.js";
2
2
  //#region src/vite.ts
3
- function svelteKitSitemap(options) {
3
+ function svelteSitemap(options) {
4
4
  return {
5
5
  name: "svelte-sitemap",
6
6
  apply: "build",
@@ -10,6 +10,6 @@ function svelteKitSitemap(options) {
10
10
  };
11
11
  }
12
12
  //#endregion
13
- export { svelteKitSitemap };
13
+ export { svelteSitemap };
14
14
 
15
15
  //# sourceMappingURL=vite.js.map
package/vite.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vite.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["import type { Plugin } from 'vite';\nimport type { OptionsSvelteSitemap } from './dto/index.js';\nimport { createSitemap } from './index.js';\n\nexport function svelteKitSitemap(options: OptionsSvelteSitemap): Plugin {\n return {\n name: 'svelte-sitemap',\n apply: 'build',\n closeBundle: async () => {\n await createSitemap(options);\n }\n };\n}\n"],"mappings":";;AAIA,SAAgB,iBAAiB,SAAuC;AACtE,QAAO;EACL,MAAM;EACN,OAAO;EACP,aAAa,YAAY;AACvB,SAAM,cAAc,QAAQ;;EAE/B"}
1
+ {"version":3,"file":"vite.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["import type { Plugin } from 'vite';\nimport type { OptionsSvelteSitemap } from './dto/index.js';\nimport { createSitemap } from './index.js';\n\nexport function svelteSitemap(options: OptionsSvelteSitemap): Plugin {\n return {\n name: 'svelte-sitemap',\n apply: 'build',\n closeBundle: async () => {\n await createSitemap(options);\n }\n };\n}\n"],"mappings":";;AAIA,SAAgB,cAAc,SAAuC;AACnE,QAAO;EACL,MAAM;EACN,OAAO;EACP,aAAa,YAAY;AACvB,SAAM,cAAc,QAAQ;;EAE/B"}