easy-sitemap-generator 0.1.8 → 0.1.10

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/index.d.ts +9 -15
  3. package/package.json +4 -4
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Sefinek
3
+ Copyright (c) 2024-2025 Sefinek
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/index.d.ts CHANGED
@@ -1,16 +1,10 @@
1
- declare module 'easy-sitemap-generator' {
2
- /**
3
- * Generates a sitemap for the specified webpage and saves it to the given destination.
4
- *
5
- * @param url - The URL of the webpage for which the sitemap is to be generated.
6
- * @param destination - Optional. The path to the file where the generated sitemap will be saved.
7
- * If not specified, the sitemap will be saved in the same folder where the script is run (default: './sitemap.xml').
8
- * @returns A promise that resolves to a string containing the contents of the generated sitemap.xml file.
9
- */
10
- export function generate(url: string, destination?: string): Promise<string>;
1
+ /**
2
+ * Generates a sitemap for the given URL and saves it to a file.
3
+ *
4
+ * @param url - The base URL to generate the sitemap for.
5
+ * @param destination - Optional path to save the sitemap file. Defaults to: `./sitemap.xml`
6
+ * @returns A promise that resolves with the contents of the generated sitemap.
7
+ */
8
+ export function generate(url: string, destination?: string): Promise<string>;
11
9
 
12
- /**
13
- * The current version of the `easy-sitemap-generator` module.
14
- */
15
- export const version: string;
16
- }
10
+ export const version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-sitemap-generator",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Easy and free sitemap.xml file generator without any restrictions for your website.",
5
5
  "keywords": [
6
6
  "sitemap",
@@ -34,12 +34,12 @@
34
34
  "up": "ncu -u && npm install && npm update && npm audit fix"
35
35
  },
36
36
  "dependencies": {
37
- "axios": "^1.9.0",
37
+ "axios": "^1.10.0",
38
38
  "jsdom": "^26.1.0",
39
39
  "kleur": "^4.1.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@eslint/js": "^9.25.1",
43
- "globals": "^16.0.0"
42
+ "@eslint/js": "^9.29.0",
43
+ "globals": "^16.2.0"
44
44
  }
45
45
  }