posthtml-rename-attrs
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -7,2 +7,5 @@ module.exports = function (renamer) { | ||
tree.walk(function(node) { | ||
if (!node.attrs) { | ||
return node; | ||
} | ||
const attrs = Object.keys(node.attrs); | ||
@@ -9,0 +12,0 @@ node.attrs = attrs.reduce((acc, key) => ( |
{ | ||
"name": "posthtml-rename-attrs", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Rename HTML tags", | ||
@@ -9,7 +9,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"camelcase": "^4.1.0", | ||
"chai": "^4.1.2", | ||
"mocha": "^4.0.1", | ||
"posthtml": "^0.9.2" | ||
"camelcase": "^5.3.1", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.1.4", | ||
"posthtml": "^0.11.4" | ||
}, | ||
"author": { | ||
"name": "Andrey Zhupik" | ||
}, | ||
"main": "index.js", | ||
@@ -22,9 +25,9 @@ "scripts": { | ||
"type": "git", | ||
"url": "git@github.com:madzhup/posthtml-rename-attrs.git" | ||
"url": "git@github.com:posthtml/posthtml-rename-attrs.git" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/madzhup/posthtml-rename-attrs/issues" | ||
"url": "https://github.com/posthtml/posthtml-rename-attrs/issues" | ||
}, | ||
"homepage": "https://github.com/madzhup/posthtml-rename-attrs" | ||
"homepage": "https://github.com/posthtml/posthtml-rename-attrs" | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
2738
48
1