xast-util-feed
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -13,3 +13,3 @@ /** | ||
import {x} from 'xastscript' | ||
import bcp47 from 'bcp-47-normalize' | ||
import {bcp47Normalize as normalize} from 'bcp-47-normalize' | ||
import {toAuthor, toDate} from './util.js' | ||
@@ -187,3 +187,3 @@ | ||
xmlns: 'http://www.w3.org/2005/Atom', | ||
'xml:lang': meta.lang ? bcp47(meta.lang) : undefined | ||
'xml:lang': meta.lang ? normalize(meta.lang) : undefined | ||
}, | ||
@@ -190,0 +190,0 @@ items |
@@ -13,3 +13,3 @@ /** | ||
import {x} from 'xastscript' | ||
import bcp47 from 'bcp-47-normalize' | ||
import {bcp47Normalize as normalize} from 'bcp-47-normalize' | ||
import {toAuthor, toDate} from './util.js' | ||
@@ -75,3 +75,3 @@ | ||
if (meta.lang) { | ||
lang = bcp47(meta.lang) | ||
lang = normalize(meta.lang) | ||
items.push(x('language', lang), x('dc:language', lang)) | ||
@@ -78,0 +78,0 @@ } |
{ | ||
"name": "xast-util-feed", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "xast utility to build feeds (rss, atom)", | ||
@@ -39,3 +39,3 @@ "license": "MIT", | ||
"@types/xast": "^1.0.0", | ||
"bcp-47-normalize": "^1.0.0", | ||
"bcp-47-normalize": "^2.0.0", | ||
"unist-builder": "^3.0.0", | ||
@@ -57,3 +57,3 @@ "xastscript": "^3.0.0" | ||
"xast-util-to-xml": "^3.0.0", | ||
"xo": "^0.39.0" | ||
"xo": "^0.40.0" | ||
}, | ||
@@ -89,3 +89,6 @@ "scripts": { | ||
"no-var": "off", | ||
"prefer-arrow-callback": "off" | ||
"prefer-arrow-callback": "off", | ||
"unicorn/explicit-length-check": "off", | ||
"unicorn/numeric-separators-style": "off", | ||
"unicorn/prefer-node-protocol": "off" | ||
} | ||
@@ -92,0 +95,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33075
0
+ Addedbcp-47@2.1.0(transitive)
+ Addedbcp-47-match@2.0.3(transitive)
+ Addedbcp-47-normalize@2.3.0(transitive)
+ Addedis-alphabetical@2.0.1(transitive)
+ Addedis-alphanumerical@2.0.1(transitive)
+ Addedis-decimal@2.0.1(transitive)
- Removedbcp-47@1.0.8(transitive)
- Removedbcp-47-match@1.0.3(transitive)
- Removedbcp-47-normalize@1.1.1(transitive)
- Removedis-alphabetical@1.0.4(transitive)
- Removedis-alphanumerical@1.0.4(transitive)
- Removedis-decimal@1.0.4(transitive)
Updatedbcp-47-normalize@^2.0.0