hackmud-script-manager 0.20.3-048bd2b → 0.20.3-44450a5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -2
- package/bin/hsm.js +1 -1
- package/package.json +1 -1
- package/processScript/minify.js +1 -1
package/README.md
CHANGED
@@ -10,8 +10,7 @@ Command made for [hackmud-environment](https://github.com/samualtnorman/hackmud-
|
|
10
10
|
2. Name your source script file to `<name>.src.js`
|
11
11
|
3. Run `hsm golf <name>.src.js` and it will create a minified script file called `<name>.js`
|
12
12
|
|
13
|
-
>
|
14
|
-
> If you get an error message that looks like this:
|
13
|
+
> **NOTE:** If you get an error message that looks like this:
|
15
14
|
> ```
|
16
15
|
> [...]\AppData\Local\pnpm\hsm.ps1 cannot be loaded because running scripts is disabled on this system. [...]
|
17
16
|
> ```
|
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-
|
15
|
+
const version = "0.20.3-44450a5",
|
16
16
|
options = new Map(),
|
17
17
|
commands = [],
|
18
18
|
userColours = new Cache(user => {
|
package/package.json
CHANGED
package/processScript/minify.js
CHANGED
@@ -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 (
|
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 = {}
|