hackmud-script-manager 0.20.3-d3fbb44 → 0.20.4-0e584dd
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 +10 -0
- package/bin/hsm.js +2 -2
- package/env.d.ts +620 -1285
- package/package.json +1 -1
- package/processScript/minify.js +1 -1
- package/syncMacros.js +1 -1
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 = {}
|
package/syncMacros.js
CHANGED
@@ -37,7 +37,7 @@ async function syncMacros(hackmudPath) {
|
|
37
37
|
macroFile += `${name}\n${macro}\n`
|
38
38
|
macrosSynced++
|
39
39
|
}
|
40
|
-
|
40
|
+
await Promise.all(users.map(async user => writeFile(resolve(hackmudPath, user + ".macros"), macroFile)))
|
41
41
|
return { macrosSynced, usersSynced: users.length }
|
42
42
|
}
|
43
43
|
export { syncMacros }
|