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 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-29fcf72",
15
+ const version = "0.19.1-3712be4",
16
16
  options = new Map(),
17
17
  commands = [],
18
18
  userColours = new Cache(user => {
@@ -1,2 +1 @@
1
1
  export declare function generateTypeDeclaration(sourceDirectory: string, hackmudPath?: string): Promise<string>;
2
- export default generateTypeDeclaration;
@@ -65,4 +65,4 @@ async function generateTypeDeclaration(sourceDirectory, hackmudPath) {
65
65
  o += "}\n"
66
66
  return o
67
67
  }
68
- export { generateTypeDeclaration as default, generateTypeDeclaration }
68
+ export { generateTypeDeclaration }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hackmud-script-manager",
3
- "version": "0.19.1-29fcf72",
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
  },
@@ -28,4 +28,3 @@ export declare function processScript(code: string, { minify: shouldMinify, uniq
28
28
  line: number;
29
29
  }[];
30
30
  }>;
31
- export default processScript;
@@ -330,4 +330,4 @@ async function processScript(
330
330
  )
331
331
  return { script: code, warnings: [] }
332
332
  }
333
- export { processScript as default, minify, postprocess, preprocess, processScript, transform }
333
+ export { minify, postprocess, preprocess, processScript, transform }
@@ -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 default minify;
18
+ export {};
@@ -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:518:4"
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 as default, minify }
444
+ export { minify }
@@ -1,2 +1 @@
1
1
  export declare const postprocess: (code: string, seclevel: number, uniqueID: string) => string;
2
- export default postprocess;
@@ -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 as default, postprocess }
20
+ export { postprocess }
@@ -6,4 +6,3 @@ export type PreprocessOptions = {
6
6
  export declare function preprocess(code: string, { uniqueID }?: Partial<PreprocessOptions>): Promise<{
7
7
  code: string;
8
8
  }>;
9
- export default preprocess;
@@ -102,4 +102,4 @@ async function preprocess(code, { uniqueID = "00000000000" } = {}) {
102
102
  { code: "export default " + generate(file).code }
103
103
  : { code: generate(file).code }
104
104
  }
105
- export { preprocess as default, preprocess }
105
+ export { preprocess }
@@ -15,4 +15,3 @@ export declare function transform(file: File, sourceCode: string, { uniqueID, sc
15
15
  file: File;
16
16
  seclevel: number;
17
17
  };
18
- export default transform;
@@ -665,4 +665,4 @@ function transform(
665
665
  }
666
666
  }
667
667
  }
668
- export { transform as default, transform }
668
+ export { transform }
@@ -3,4 +3,3 @@
3
3
  * @param hackmudPath path to hackmud directory
4
4
  * @param script to pull in `user.name` format */
5
5
  export declare function pull(sourceFolderPath: string, hackmudPath: string, script: string): Promise<void>;
6
- export default pull;
package/pull.js CHANGED
@@ -8,4 +8,4 @@ async function pull(sourceFolderPath, hackmudPath, script) {
8
8
  resolve(sourceFolderPath, user, name + ".js")
9
9
  )
10
10
  }
11
- export { pull as default, pull }
11
+ export { pull }
@@ -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
@@ -266,4 +266,4 @@ async function push(
266
266
  ))
267
267
  return allInfo
268
268
  }
269
- export { push as default, push }
269
+ export { push }
@@ -2,4 +2,3 @@ export declare function syncMacros(hackmudPath: string): Promise<{
2
2
  macrosSynced: number;
3
3
  usersSynced: number;
4
4
  }>;
5
- export default syncMacros;
package/syncMacros.js CHANGED
@@ -40,4 +40,4 @@ async function syncMacros(hackmudPath) {
40
40
  for (const user of users) writeFile(resolve(hackmudPath, user + ".macros"), macroFile)
41
41
  return { macrosSynced, usersSynced: users.length }
42
42
  }
43
- export { syncMacros as default, syncMacros }
43
+ export { syncMacros }
@@ -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
@@ -205,4 +205,4 @@ async function watch(
205
205
  watcher.on("add", writeTypeDeclaration)
206
206
  watcher.on("unlink", writeTypeDeclaration)
207
207
  }
208
- export { watch as default, watch }
208
+ export { watch }
File without changes
File without changes
File without changes