Socket
Socket
Sign inDemoInstall

@acot/html-pickup

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acot/html-pickup - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

6

CHANGELOG.md

@@ -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 @@

2

lib/index.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc