@acot/html-pickup
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.0.16](https://github.com/acot-a11y/acot/compare/v0.0.15...v0.0.16) (2022-05-01) | ||
### Bug Fixes | ||
- fix a bug when Node not found on report ([4e65658](https://github.com/acot-a11y/acot/commit/4e656585b3aa63b17a63d71949326bdb4445af39)) | ||
## [0.0.15](https://github.com/acot-a11y/acot/compare/v0.0.14...v0.0.15) (2022-03-27) | ||
@@ -8,0 +14,0 @@ |
@@ -5,2 +5,2 @@ export declare type PickupOptions = { | ||
}; | ||
export declare const pickup: (html: string, selector: string, options?: Partial<PickupOptions>) => string; | ||
export declare const pickup: (html: string, selector: string, options?: Partial<PickupOptions>) => string | null; |
@@ -90,8 +90,11 @@ "use strict"; | ||
}); | ||
const [node] = css_select_1.default(selector, parse5_1.parse(html), { | ||
const [node] = (0, css_select_1.default)(selector, (0, parse5_1.parse)(html), { | ||
adapter: css_select_parse5_adapter_1.parse5Adapter, | ||
}); | ||
if (node == null) { | ||
return null; | ||
} | ||
const output = stringify(node, chk); | ||
return cli_truncate_1.default(output, opts.truncate); | ||
return (0, cli_truncate_1.default)(output, opts.truncate); | ||
}; | ||
exports.pickup = pickup; |
{ | ||
"name": "@acot/html-pickup", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Use the CSS Selector to pick up the elements from the HTML string.", | ||
@@ -46,3 +46,3 @@ "homepage": "https://github.com/acot-a11y/acot/tree/main/packages/html-pickup", | ||
}, | ||
"gitHead": "4d9ea6c5bb5cf7f6611c349f82d464df5abe8596" | ||
"gitHead": "7535e01cafd25fc1d6c32c31a1ae9fce5326b3d8" | ||
} |
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
9835
104