From 78c4592b28876f781a1a3a938178c1cbb5046e78 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Wed, 22 Jun 2022 12:24:52 +1000 Subject: [PATCH] Formatting --- nodejs/index.d.ts | 55 +++++++++++++++++++++------------------ nodejs/package.json | 10 ++++++- nodejs/postinstall.js | 10 +++++-- python/onepass/src/lib.rs | 26 ++++++++++++------ version | 6 +---- 5 files changed, 65 insertions(+), 42 deletions(-) diff --git a/nodejs/index.d.ts b/nodejs/index.d.ts index cd615fe..10e64ea 100644 --- a/nodejs/index.d.ts +++ b/nodejs/index.d.ts @@ -5,29 +5,32 @@ * @param cfg - Configurable minifier settings to use * @returns Minified HTML code */ -export function minify (src: Buffer, cfg: { - /** Do not minify DOCTYPEs. Minified DOCTYPEs may not be spec compliant. */ - do_not_minify_doctype?: boolean, - /** Ensure all unquoted attribute values in the output do not contain any characters prohibited by the WHATWG specification. */ - ensure_spec_compliant_unquoted_attribute_values?: boolean; - /** Do not omit closing tags when possible. */ - keep_closing_tags?: boolean; - /** Do not omit `` and `` opening tags when they don't have attributes. */ - keep_html_and_head_opening_tags?: boolean; - /** Keep spaces between attributes when possible to conform to HTML standards. */ - keep_spaces_between_attributes?: boolean; - /** Keep all comments. */ - keep_comments?: boolean; - /** - * If enabled, content in `