hackmud-script-manager 0.19.1-98e81f8 → 0.19.1-a81047f
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/bin/hsm.d.ts +0 -0
- package/bin/hsm.js +145 -299
- package/generateTypeDeclaration.d.ts +1 -2
- package/generateTypeDeclaration.js +19 -19
- package/index.js +2 -1
- package/package.json +6 -7
- package/processScript/index.d.ts +15 -25
- package/processScript/index.js +258 -241
- package/processScript/minify.d.ts +13 -19
- package/processScript/minify.js +381 -395
- package/processScript/postprocess.d.ts +0 -1
- package/processScript/postprocess.js +1 -1
- package/processScript/preprocess.d.ts +4 -8
- package/processScript/preprocess.js +94 -94
- package/processScript/shared.d.ts +1 -1
- package/processScript/shared.js +11 -11
- package/processScript/transform.d.ts +10 -17
- package/processScript/transform.js +570 -551
- package/pull.d.ts +5 -9
- package/pull.js +2 -2
- package/push.d.ts +22 -31
- package/push.js +46 -40
- package/syncMacros.d.ts +1 -2
- package/syncMacros.js +6 -5
- package/watch.d.ts +8 -14
- package/watch.js +22 -23
- package/tsconfig.tsbuildinfo +0 -1
@@ -1,24 +1,18 @@
|
|
1
1
|
import type { File } from "@babel/types";
|
2
2
|
import type { LaxPartial } from "@samual/lib";
|
3
3
|
type MinifyOptions = {
|
4
|
-
/** 11 a-z 0-9 characters */
|
5
|
-
|
6
|
-
/**
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
*
|
13
|
-
* when left unset or set to `undefined`, automatically uses or doesn't use quine cheats based on character count
|
14
|
-
*/
|
4
|
+
/** 11 a-z 0-9 characters */ uniqueID: string;
|
5
|
+
/** whether to mangle function and class names (defaults to `false`) */ mangleNames: boolean;
|
6
|
+
/** when set to `true` forces use of quine cheats
|
7
|
+
*
|
8
|
+
* when set to `false` forces quine cheats not to be used
|
9
|
+
*
|
10
|
+
* when left unset or set to `undefined`, automatically uses or doesn't use quine cheats based on character count
|
11
|
+
*/
|
15
12
|
forceQuineCheats: boolean;
|
16
|
-
/** the comment inserted after the function signature */
|
17
|
-
autocomplete: string;
|
13
|
+
/** the comment inserted after the function signature */ autocomplete: string;
|
18
14
|
};
|
19
|
-
/**
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
export declare const minify: (file: File, { uniqueID, mangleNames, forceQuineCheats, autocomplete }?: LaxPartial<MinifyOptions>) => Promise<string>;
|
24
|
-
export default minify;
|
15
|
+
/** @param file babel ast node representing a file containing transformed code
|
16
|
+
* @param options {@link MinifyOptions details} */
|
17
|
+
export declare function minify(file: File, { uniqueID, mangleNames, forceQuineCheats, autocomplete }?: LaxPartial<MinifyOptions>): Promise<string>;
|
18
|
+
export {};
|