1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 04:10:04 +02:00

update packages to latest version

This commit is contained in:
s2
2022-08-20 18:51:33 +02:00
parent 09663a35a5
commit 806ebf9a57
4513 changed files with 366205 additions and 92512 deletions

View File

@@ -320,6 +320,7 @@ export var domprops = [
"COMMENT_NODE",
"COMPARE_REF_TO_TEXTURE",
"COMPILE_STATUS",
"COMPLETION_STATUS_KHR",
"COMPRESSED_RGBA_S3TC_DXT1_EXT",
"COMPRESSED_RGBA_S3TC_DXT3_EXT",
"COMPRESSED_RGBA_S3TC_DXT5_EXT",
@@ -2979,6 +2980,7 @@ export var domprops = [
"applyElement",
"arc",
"arcTo",
"architecture",
"archive",
"areas",
"arguments",
@@ -3153,6 +3155,7 @@ export var domprops = [
"bindTexture",
"bindTransformFeedback",
"bindVertexArray",
"bitness",
"blendColor",
"blendEquation",
"blendEquationSeparate",
@@ -3314,6 +3317,8 @@ export var domprops = [
"boxDecorationBreak",
"boxShadow",
"boxSizing",
"brand",
"brands",
"break-after",
"break-before",
"break-inside",
@@ -4312,6 +4317,7 @@ export var domprops = [
"fround",
"fullPath",
"fullScreen",
"fullVersionList",
"fullscreen",
"fullscreenElement",
"fullscreenEnabled",
@@ -4437,6 +4443,7 @@ export var domprops = [
"getFrequencyResponse",
"getFullYear",
"getGamepads",
"getHighEntropyValues",
"getHitTestResults",
"getHitTestResultsForTransientInput",
"getHours",
@@ -5277,7 +5284,9 @@ export var domprops = [
"mix-blend-mode",
"mixBlendMode",
"mm",
"mobile",
"mode",
"model",
"modify",
"mount",
"move",
@@ -6183,6 +6192,7 @@ export var domprops = [
"placeItems",
"placeSelf",
"placeholder",
"platformVersion",
"platform",
"platforms",
"play",
@@ -7421,6 +7431,7 @@ export var domprops = [
"user-select",
"userActivation",
"userAgent",
"userAgentData",
"userChoice",
"userHandle",
"userHint",
@@ -7734,6 +7745,7 @@ export var domprops = [
"wordSpacing",
"wordWrap",
"workerStart",
"wow64",
"wrap",
"wrapKey",
"writable",

View File

@@ -1,11 +1,12 @@
/// <reference lib="es2015" />
import { RawSourceMap } from 'source-map';
import { SectionedSourceMapInput, EncodedSourceMap, DecodedSourceMap } from '@jridgewell/source-map';
export type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020;
export interface ParseOptions {
bare_returns?: boolean;
/** @deprecated legacy option. Currently, all supported EcmaScript is valid to parse. */
ecma?: ECMA;
html5_comments?: boolean;
shebang?: boolean;
@@ -80,16 +81,52 @@ export interface MangleOptions {
keep_classnames?: boolean | RegExp;
keep_fnames?: boolean | RegExp;
module?: boolean;
nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler;
properties?: boolean | ManglePropertiesOptions;
reserved?: string[];
safari10?: boolean;
toplevel?: boolean;
}
/**
* An identifier mangler for which the output is invariant with respect to the source code.
*/
export interface SimpleIdentifierMangler {
/**
* Obtains the nth most favored (usually shortest) identifier to rename a variable to.
* The mangler will increment n and retry until the return value is not in use in scope, and is not a reserved word.
* This function is expected to be stable; Evaluating get(n) === get(n) should always return true.
* @param n The ordinal of the identifier.
*/
get(n: number): string;
}
/**
* An identifier mangler that leverages character frequency analysis to determine identifier precedence.
*/
export interface WeightedIdentifierMangler extends SimpleIdentifierMangler {
/**
* Modifies the internal weighting of the input characters by the specified delta.
* Will be invoked on the entire printed AST, and then deduct mangleable identifiers.
* @param chars The characters to modify the weighting of.
* @param delta The numeric weight to add to the characters.
*/
consider(chars: string, delta: number): number;
/**
* Resets character weights.
*/
reset(): void;
/**
* Sorts identifiers by character frequency, in preparation for calls to get(n).
*/
sort(): void;
}
export interface ManglePropertiesOptions {
builtins?: boolean;
debug?: boolean;
keep_quoted?: boolean | 'strict';
nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler;
regex?: RegExp | string;
reserved?: string[];
}
@@ -108,6 +145,7 @@ export interface FormatOptions {
}) => boolean );
ecma?: ECMA;
ie8?: boolean;
keep_numbers?: boolean;
indent_level?: number;
indent_start?: number;
inline_script?: boolean;
@@ -138,6 +176,7 @@ export enum OutputQuoteStyle {
export interface MinifyOptions {
compress?: boolean | CompressOptions;
ecma?: ECMA;
enclose?: boolean | string;
ie8?: boolean;
keep_classnames?: boolean | RegExp;
keep_fnames?: boolean | RegExp;
@@ -155,12 +194,13 @@ export interface MinifyOptions {
export interface MinifyOutput {
code?: string;
map?: RawSourceMap | string;
map?: EncodedSourceMap | string;
decoded_map?: DecodedSourceMap | null;
}
export interface SourceMapOptions {
/** Source map object, 'inline' or source map file content */
content?: RawSourceMap | string;
content?: SectionedSourceMapInput | string;
includeSources?: boolean;
filename?: string;
root?: string;