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 ?
|
|
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}
|
|
174
|
+
return `$${StringID}_variable_${rndVarBind++}`;
|
|
175
175
|
}
|
|
176
176
|
const rndMap = new Map();
|
|
177
177
|
export function s(input) {
|