New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/sitemap

Package Overview
Dependencies
Maintainers
6
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/sitemap - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

14

CHANGELOG.md

@@ -5,2 +5,16 @@ # Change Log

# [1.1.0](https://github.com/nuxt-community/sitemap-module/compare/v1.0.0...v1.1.0) (2019-05-01)
### Bug Fixes
* hostname initialization ([56fdddd](https://github.com/nuxt-community/sitemap-module/commit/56fdddd)), closes [#60](https://github.com/nuxt-community/sitemap-module/issues/60)
### Features
* add "xslUrl" option to set a custom XSL file to style the sitemap ([de1b706](https://github.com/nuxt-community/sitemap-module/commit/de1b706)), closes [#58](https://github.com/nuxt-community/sitemap-module/issues/58)
# [1.0.0](https://github.com/nuxt-community/sitemap-module/compare/v0.2.2...v1.0.0) (2019-04-15)

@@ -7,0 +21,0 @@

8

lib/module.js

@@ -12,6 +12,8 @@ const { Minimatch } = require('minimatch')

const defaultPublicPath = '/_nuxt/'
module.exports = function module (moduleOptions) {
const defaults = {
path: 'sitemap.xml',
hostname: this.options.build.publicPath || undefined,
hostname: this.options.build.publicPath !== defaultPublicPath ? this.options.build.publicPath : undefined,
exclude: [],

@@ -22,2 +24,3 @@ routes: this.options.generate.routes || [],

gzip: false,
xslUrl: undefined,
defaults: {}

@@ -169,2 +172,5 @@ }

// Set XSL url
sitemapConfig.xslUrl = options.xslUrl
// Create promisified instance and return

@@ -171,0 +177,0 @@ const sitemap = sm.createSitemap(sitemapConfig)

{
"name": "@nuxtjs/sitemap",
"version": "1.0.0",
"version": "1.1.0",
"description": "Automatically generate or serve dynamic sitemap.xml for Nuxt.js projects",
"keywords": [
"nuxt",
"nuxtjs",
"sitemap",
"sitemap.xml",
"seo"
],
"repository": "https://github.com/nuxt-community/sitemap-module",

@@ -32,2 +39,3 @@ "license": "MIT",

"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint",

@@ -51,2 +59,4 @@ "pre-push": "npm test"

"devDependencies": {
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"codecov": "latest",

@@ -53,0 +63,0 @@ "eslint": "latest",

@@ -130,2 +130,7 @@ # Sitemap Module

### `xslUrl` (optional)
- Default: `undefined`
The URL path of the XSL file to style the sitemap.
### `defaults` (optional)

@@ -132,0 +137,0 @@ - Default: `{}`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc