asajs 4.1.9 → 4.1.10

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.
@@ -56,9 +56,9 @@ export const unLinked = options["unlink"] ?? !(config.compiler?.autoImport ?? tr
56
56
  export const buildFolder = config.compiler?.buildFolder || "build";
57
57
  export const uiBuildFolder = config.compiler?.uiBuildFolder || "asajs";
58
58
  export const isNotObfuscate = debugMode || !(config.compiler?.obfuscateStringName ?? false);
59
- export const allowRandomStringName = !debugMode || (config.compiler?.allowRandomStringName ?? true);
59
+ export const allowRandomStringName = !(debugMode || !(config.compiler?.allowRandomStringName ?? true));
60
60
  export const namespaceCount = debugMode ? 5 : (config.compiler?.namespaceCount ?? 15);
61
- export const forceRandomStringLength = debugMode ? 10 : config.compiler?.forceRandomStringLength;
61
+ export const forceRandomStringLength = debugMode ? 5 : config.compiler?.forceRandomStringLength;
62
62
  export const bindingFuntions = config.binding_functions;
63
63
  if (!fs.existsSync(".gitignore")) {
64
64
  fs.writeFileSync(".gitignore", "node_modules\ncustom", "utf-8");
@@ -171,7 +171,7 @@ export function RandomVariableBinding(length = 16, base = 32, force) {
171
171
  if (force || allowRandomStringName)
172
172
  return `$${GenRandomString(length, base)}`;
173
173
  else
174
- return `$${StringID}_binding_${rndVarBind++}`;
174
+ return `$${StringID}_variable_${rndVarBind++}`;
175
175
  }
176
176
  const rndMap = new Map();
177
177
  export function s(input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asajs",
3
- "version": "4.1.9",
3
+ "version": "4.1.10",
4
4
  "description": "Create your Minecraft JSON-UI resource packs using JavaScript",
5
5
  "keywords": [
6
6
  "Minecraft",