Comparing version 23.5.0 to 23.5.1
{ | ||
"name": "webidl2", | ||
"description": "A WebIDL Parser", | ||
"version": "23.5.0", | ||
"version": "23.5.1", | ||
"contributors": [ | ||
@@ -34,4 +34,5 @@ "Robin Berjon <robin@berjon.com> (https://berjon.com)", | ||
"dist/*", | ||
"lib/*" | ||
"lib/*", | ||
"index.js" | ||
] | ||
} |
@@ -150,2 +150,15 @@ | ||
The validator function may provide an autofix function that modifies AST. You can | ||
optionally call it to skip manual fixes, but make sure you review the result. | ||
```js | ||
const validations = validate(tree); | ||
for (const validation of validations) { | ||
if (validation.autofix) { | ||
validation.autofix(); | ||
} | ||
} | ||
write(tree); // magic! | ||
``` | ||
### Errors | ||
@@ -152,0 +165,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
281659
37
2197
727