You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sitemapy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemapy - npm Package Compare versions

Comparing version

to
2.4.0

2

package.json
{
"name": "sitemapy",
"version": "1.4.0",
"version": "2.4.0",
"description": "Simple utility to generate sitemaps in xml, with zero dependencies",

@@ -5,0 +5,0 @@ "main": "dist/sitemapy.js",

@@ -24,3 +24,3 @@ # Sitemapy

changefreq: "daily",
lastmod: 10-04-22
lastmod: "10-04-22"
}

@@ -47,3 +47,3 @@ ]

changefreq: "daily",
lastmod: 10-04-22
lastmod: "10-04-22"
}

@@ -77,2 +77,24 @@ ]

```
```
## Breaking changes on sitemapy versions >=2.4.0
In versions prior to 2.4.0, urls would already have the starting slash prefixed.
Now that is left for the user to define themselves, it makes more sense.
Prior to 2.4.0
```js
const url = "about";
```
Would result in "https://example.com/about"
After and including version 2.4.0
```js
const url = "/about";
```
Would result in "https://example.com/about"