Comparing version 6.3.3 to 6.3.4
# Changelog | ||
## 6.3.4 | ||
- bump dependencies | ||
- correct return type of xmllint. Was `Promise<null>` but actually returned `Promise<void>` | ||
- add alternate option for lang, hreflang as that is the actual name of the printed attribute | ||
## 6.3.3 | ||
@@ -4,0 +10,0 @@ |
@@ -130,3 +130,3 @@ "use strict"; | ||
rel: 'alternate', | ||
hreflang: link.lang, | ||
hreflang: link.lang || link.hreflang, | ||
href: link.url, | ||
@@ -133,0 +133,0 @@ })); |
@@ -12,3 +12,3 @@ "use strict"; | ||
const pipeline = util_1.promisify(stream_1.pipeline); | ||
exports.simpleSitemapAndIndex = async ({ hostname, sitemapHostname = hostname, // if different | ||
const simpleSitemapAndIndex = async ({ hostname, sitemapHostname = hostname, // if different | ||
/** | ||
@@ -64,2 +64,3 @@ * Pass a line separated list of sitemap items or a stream or an array | ||
}; | ||
exports.simpleSitemapAndIndex = simpleSitemapAndIndex; | ||
exports.default = exports.simpleSitemapAndIndex; |
@@ -11,3 +11,3 @@ "use strict"; | ||
const xmlDec = '<?xml version="1.0" encoding="UTF-8"?>'; | ||
exports.stylesheetInclude = (url) => { | ||
const stylesheetInclude = (url) => { | ||
// Throws if url is invalid | ||
@@ -17,2 +17,3 @@ new url_1.URL(url); | ||
}; | ||
exports.stylesheetInclude = stylesheetInclude; | ||
const urlsetTagStart = '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"'; | ||
@@ -19,0 +20,0 @@ const getURLSetNs = ({ news, video, image, xhtml, custom }, xslURL) => { |
@@ -274,2 +274,6 @@ /// <reference types="node" /> | ||
lang: string; | ||
/** | ||
* @example 'en-us' | ||
*/ | ||
hreflang?: string; | ||
url: string; | ||
@@ -276,0 +280,0 @@ } |
@@ -6,4 +6,4 @@ /// <reference types="node" /> | ||
* @param xml what you want validated | ||
* @return {Promise<null>} resolves on valid rejects [error stderr] | ||
* @return {Promise<void>} resolves on valid rejects [error stderr] | ||
*/ | ||
export declare function xmlLint(xml: string | Readable): Promise<null>; | ||
export declare function xmlLint(xml: string | Readable): Promise<void>; |
@@ -10,3 +10,3 @@ "use strict"; | ||
* @param xml what you want validated | ||
* @return {Promise<null>} resolves on valid rejects [error stderr] | ||
* @return {Promise<void>} resolves on valid rejects [error stderr] | ||
*/ | ||
@@ -13,0 +13,0 @@ function xmlLint(xml) { |
{ | ||
"name": "sitemap", | ||
"version": "6.3.3", | ||
"version": "6.3.4", | ||
"description": "Sitemap-generating lib/cli", | ||
@@ -158,31 +158,31 @@ "keywords": [ | ||
"dependencies": { | ||
"@types/node": "^14.14.6", | ||
"@types/node": "^14.14.14", | ||
"@types/sax": "^1.2.1", | ||
"arg": "^4.1.3", | ||
"arg": "^5.0.0", | ||
"sax": "^1.2.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.3", | ||
"@babel/core": "^7.12.10", | ||
"@babel/plugin-proposal-class-properties": "^7.12.1", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1", | ||
"@babel/plugin-proposal-optional-chaining": "^7.12.1", | ||
"@babel/plugin-proposal-optional-chaining": "^7.12.7", | ||
"@babel/plugin-transform-typescript": "^7.12.1", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/preset-typescript": "^7.12.1", | ||
"@types/jest": "^26.0.15", | ||
"@typescript-eslint/eslint-plugin": "^4.6.0", | ||
"@typescript-eslint/parser": "^4.6.0", | ||
"@babel/preset-env": "^7.12.11", | ||
"@babel/preset-typescript": "^7.12.7", | ||
"@types/jest": "^26.0.19", | ||
"@typescript-eslint/eslint-plugin": "^4.11.0", | ||
"@typescript-eslint/parser": "^4.11.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-polyfill": "^6.26.0", | ||
"concurrently": "^5.3.0", | ||
"eslint": "^7.12.1", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-jest": "^24.1.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint": "^7.16.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"express": "^4.17.1", | ||
"husky": "^4.3.0", | ||
"jest": "^26.6.1", | ||
"lint-staged": "^10.5.1", | ||
"prettier": "^2.1.2", | ||
"sort-package-json": "^1.46.1", | ||
"husky": "^4.3.6", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^10.5.3", | ||
"prettier": "^2.2.1", | ||
"sort-package-json": "^1.48.0", | ||
"source-map": "~0.7.3", | ||
@@ -192,3 +192,3 @@ "stats-lite": "^2.2.0", | ||
"through2-map": "^3.0.0", | ||
"typescript": "^4.0.5" | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -195,0 +195,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157423
2791
+ Addedarg@5.0.2(transitive)
- Removedarg@4.1.3(transitive)
Updated@types/node@^14.14.14
Updatedarg@^5.0.0