hackmud-script-manager 0.21.0 → 0.21.1-f88f20e

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/README.md CHANGED
@@ -60,6 +60,8 @@ You can read about how HSM works [in my blog post](https://samual.uk/blog/js-cod
60
60
  - Subscript and `#db` methods names are verified.
61
61
  - All references to preprocessor syntax functions not being called are turned into arrow function wrappers e.g. `let debug = #D;` -> `let debug = v => #D(v);`.
62
62
  - `_SECLEVEL` is replaced with a number (`0` to `4`) representing the seclevel of the script.
63
+ - When `export`s are present in the script, it becomes a script that returns an object of the `export`ed values.
64
+ - `_EXPORTS` becomes an array of the names of the exported values.
63
65
  - And Neat Weird Fixes
64
66
  - Like `.__proto__` and `.prototype` being converted to `["__proto__"]` and `["prototype"]`.
65
67
  - Illegal and unsafe strings.
package/bin/hsm.js CHANGED
@@ -62,7 +62,7 @@ process.version.startsWith("v21.") &&
62
62
  )
63
63
  )
64
64
  if ("v" == commands[0] || "version" == commands[0] || popOption("version", "v")?.value) {
65
- console.log("0.21.0")
65
+ console.log("0.21.1-f88f20e")
66
66
  process.exit()
67
67
  }
68
68
  let warnedDeprecatedEmitDtsAlias = !1
@@ -403,7 +403,7 @@ function logHelp() {
403
403
  default:
404
404
  console.log(
405
405
  colourS(
406
- `${colourJ("Hackmud Script Manager")}\n${colourN("Version") + colourS(": ") + colourV("0.21.0")}\n\n${colourA("Commands:")}\n${colourL("push")}\n ${pushCommandDescription}\n${colourL("minify")}\n Minify a script file on the spot\n${colourL("emit-dts")}\n Generate a type declaration file for a directory of scripts\n${colourL("sync-macros")}\n Sync macros across all hackmud users\n${colourL("pull")}\n Pull a script a from a hackmud user's script directory\n\n${colourA("Options:")}\n${colourN("--help")}\n Can be used on any command e.g. ${colourC("hsm")} ${colourL("push")} ${colourN("--help")} to show helpful information`
406
+ `${colourJ("Hackmud Script Manager")}\n${colourN("Version") + colourS(": ") + colourV("0.21.1-f88f20e")}\n\n${colourA("Commands:")}\n${colourL("push")}\n ${pushCommandDescription}\n${colourL("minify")}\n Minify a script file on the spot\n${colourL("emit-dts")}\n Generate a type declaration file for a directory of scripts\n${colourL("sync-macros")}\n Sync macros across all hackmud users\n${colourL("pull")}\n Pull a script a from a hackmud user's script directory\n\n${colourA("Options:")}\n${colourN("--help")}\n Can be used on any command e.g. ${colourC("hsm")} ${colourL("push")} ${colourN("--help")} to show helpful information`
407
407
  )
408
408
  )
409
409
  }
package/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type Replace<A, B> = Omit<A, keyof B> & B
1
+ type Replace<A, B> = Omit<A, keyof B> & BigInt
2
2
  type ErrorScripts = Record<string, () => ScriptFailure>
3
3
 
4
4
  type Subscripts = Record<string, Record<string, (...args: any) => any>> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hackmud-script-manager",
3
- "version": "0.21.0",
3
+ "version": "0.21.1-f88f20e",
4
4
  "description": "Script manager for game hackmud, with minification, TypeScript support, and player script type definition generation.",
5
5
  "keywords": [
6
6
  "api",