hackmud-script-manager 0.19.1-29fcf72 → 0.19.1-3712be4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/hsm.js +1 -1
- package/{src/generateTypeDeclaration.d.ts → generateTypeDeclaration.d.ts} +0 -1
- package/generateTypeDeclaration.js +1 -1
- package/package.json +2 -1
- package/{src/processScript → processScript}/index.d.ts +0 -1
- package/processScript/index.js +1 -1
- package/{src/processScript → processScript}/minify.d.ts +1 -1
- package/processScript/minify.js +2 -2
- package/{src/processScript → processScript}/postprocess.d.ts +0 -1
- package/processScript/postprocess.js +1 -1
- package/{src/processScript → processScript}/preprocess.d.ts +0 -1
- package/processScript/preprocess.js +1 -1
- package/{src/processScript → processScript}/transform.d.ts +0 -1
- package/processScript/transform.js +1 -1
- package/{src/pull.d.ts → pull.d.ts} +0 -1
- package/pull.js +1 -1
- package/{src/push.d.ts → push.d.ts} +0 -1
- package/push.js +1 -1
- package/{src/syncMacros.d.ts → syncMacros.d.ts} +0 -1
- package/syncMacros.js +1 -1
- package/{src/watch.d.ts → watch.d.ts} +0 -1
- package/watch.js +1 -1
- /package/{src/bin → bin}/hsm.d.ts +0 -0
- /package/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/{src/index.d.ts → index.d.ts} +0 -0
- /package/{src/processScript → processScript}/shared.d.ts +0 -0
package/bin/hsm.js
CHANGED
@@ -12,7 +12,7 @@ import { pull } from "../pull.js"
|
|
12
12
|
import { syncMacros } from "../syncMacros.js"
|
13
13
|
import "@samual/lib/readDirectoryWithStats"
|
14
14
|
import "@samual/lib/copyFilePersistent"
|
15
|
-
const version = "0.19.1-
|
15
|
+
const version = "0.19.1-3712be4",
|
16
16
|
options = new Map(),
|
17
17
|
commands = [],
|
18
18
|
userColours = new Cache(user => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hackmud-script-manager",
|
3
|
-
"version": "0.19.1-
|
3
|
+
"version": "0.19.1-3712be4",
|
4
4
|
"description": "Script manager for game hackmud, with minification, TypeScript support, and player script type definition generation.",
|
5
5
|
"keywords": [
|
6
6
|
"api",
|
@@ -71,6 +71,7 @@
|
|
71
71
|
},
|
72
72
|
"type": "module",
|
73
73
|
"exports": {
|
74
|
+
".": "./index.js",
|
74
75
|
"./*": "./*.js",
|
75
76
|
"./*.js": "./*.js"
|
76
77
|
},
|
package/processScript/index.js
CHANGED
@@ -15,4 +15,4 @@ type MinifyOptions = {
|
|
15
15
|
/** @param file babel ast node representing a file containing transformed code
|
16
16
|
* @param options {@link MinifyOptions details} */
|
17
17
|
export declare function minify(file: File, { uniqueID, mangleNames, forceQuineCheats, autocomplete }?: LaxPartial<MinifyOptions>): Promise<string>;
|
18
|
-
export
|
18
|
+
export {};
|
package/processScript/minify.js
CHANGED
@@ -377,7 +377,7 @@ function parseObjectExpression(node, o) {
|
|
377
377
|
"Identifier" == property.key.type ||
|
378
378
|
"NumericLiteral" == property.key.type ||
|
379
379
|
"StringLiteral" == property.key.type,
|
380
|
-
"src/processScript/minify.ts:
|
380
|
+
"src/processScript/minify.ts:516:4"
|
381
381
|
)
|
382
382
|
if ("ArrayExpression" == property.value.type) {
|
383
383
|
const childArray = []
|
@@ -441,4 +441,4 @@ function getFunctionBodyStart(code) {
|
|
441
441
|
}
|
442
442
|
return tokens.getToken().start
|
443
443
|
}
|
444
|
-
export { minify
|
444
|
+
export { minify }
|
@@ -17,4 +17,4 @@ const postprocess = (code, seclevel, uniqueID) =>
|
|
17
17
|
.replace(RegExp(`\\$${uniqueID}\\$NOT_A_DEBUG_CALL\\$`, "g"), "#D\\(")
|
18
18
|
.replace(RegExp(`\\$${uniqueID}\\$NOT_FMCL\\$`, "g"), "#\\FMCL")
|
19
19
|
.replace(RegExp(`\\$${uniqueID}\\$NOT_G\\$`, "g"), "#\\G")
|
20
|
-
export { postprocess
|
20
|
+
export { postprocess }
|
package/pull.js
CHANGED
@@ -26,4 +26,3 @@ export type PushOptions = {
|
|
26
26
|
* @param options {@link PushOptions details}
|
27
27
|
* @returns array of info on pushed scripts */
|
28
28
|
export declare function push(sourceDirectory: string, hackmudDirectory: string, { scripts, onPush, minify, mangleNames, forceQuineCheats }?: LaxPartial<PushOptions>): Promise<Info[]>;
|
29
|
-
export default push;
|
package/push.js
CHANGED
package/syncMacros.js
CHANGED
@@ -12,4 +12,3 @@ export type WatchOptions = PushOptions & {
|
|
12
12
|
* @param hackmudDirectory path to hackmud directory
|
13
13
|
* @param options {@link WatchOptions details} and {@link PushOptions more details} */
|
14
14
|
export declare function watch(sourceDirectory: string, hackmudDirectory: string, { scripts, onPush, minify, mangleNames, typeDeclarationPath: typeDeclarationPath_, onReady, forceQuineCheats }?: LaxPartial<WatchOptions>): Promise<void>;
|
15
|
-
export default watch;
|
package/watch.js
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|