hackmud-script-manager 0.20.3-d3fbb44 → 0.20.4-12b9eb8

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hackmud Script Manager
2
2
  Command made for [hackmud-environment](https://github.com/samualtnorman/hackmud-environment), which is a scripting environment for hackmud with minification, autocompletes / intellisense, and TypeScript support.
3
3
 
4
+ [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R0XN5CX)
5
+
4
6
  ## Install
5
7
  1. [Install Node.js](https://nodejs.org/en/download)
6
8
  2. Run `npm install -g hackmud-script-manager`
@@ -10,6 +12,12 @@ Command made for [hackmud-environment](https://github.com/samualtnorman/hackmud-
10
12
  2. Name your source script file to `<name>.src.js`
11
13
  3. Run `hsm golf <name>.src.js` and it will create a minified script file called `<name>.js`
12
14
 
15
+ > **NOTE:** If you get an error message that looks like this:
16
+ > ```
17
+ > [...]\AppData\Local\pnpm\hsm.ps1 cannot be loaded because running scripts is disabled on this system. [...]
18
+ > ```
19
+ > You will need to run `Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser` in PowerShell as an administrator. For more information, see [Microsoft's page about Execution Policies](https://learn.microsoft.com/en-gb/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4).
20
+
13
21
  ## Features
14
22
  - Minification
15
23
  - This includes auto quine cheating.
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.20.3-d3fbb44",
15
+ const version = "0.20.4-12b9eb8",
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.20.3-d3fbb44",
3
+ "version": "0.20.4-12b9eb8",
4
4
  "description": "Script manager for game hackmud, with minification, TypeScript support, and player script type definition generation.",
5
5
  "keywords": [
6
6
  "api",
@@ -409,7 +409,7 @@ function parseArrayExpression(node, o) {
409
409
  if (!element) return !1
410
410
  if ("ArrayExpression" == element.type) {
411
411
  const childArray = []
412
- if (!element.elements.length && parseArrayExpression(element, childArray)) return !1
412
+ if (element.elements.length && !parseArrayExpression(element, childArray)) return !1
413
413
  o.push(childArray)
414
414
  } else if ("ObjectExpression" == element.type) {
415
415
  const childObject = {}