sanex3339 9 سال پیش
والد
کامیت
d5ca09cfd5

+ 2 - 2
dist/src/preset-options/DefaultPreset.js

@@ -1,5 +1,5 @@
 "use strict";
-exports.DEFAULT_PRESET = {
+exports.DEFAULT_PRESET = Object.freeze({
     compact: true,
     debugProtection: false,
     debugProtectionInterval: false,
@@ -7,4 +7,4 @@ exports.DEFAULT_PRESET = {
     encodeUnicodeArray: false,
     rotateUnicodeArray: true,
     wrapUnicodeArrayCalls: true
-};
+});

+ 2 - 2
dist/src/preset-options/NoCustomNodesPreset.js

@@ -1,5 +1,5 @@
 "use strict";
-exports.NO_CUSTOM_NODES_PRESET = {
+exports.NO_CUSTOM_NODES_PRESET = Object.freeze({
     compact: true,
     debugProtection: false,
     debugProtectionInterval: false,
@@ -7,4 +7,4 @@ exports.NO_CUSTOM_NODES_PRESET = {
     encodeUnicodeArray: false,
     rotateUnicodeArray: false,
     wrapUnicodeArrayCalls: false
-};
+});

+ 2 - 2
src/preset-options/DefaultPreset.ts

@@ -1,6 +1,6 @@
 import { IOptions } from "../interfaces/IOptions";
 
-export const DEFAULT_PRESET: IOptions = {
+export const DEFAULT_PRESET: IOptions = Object.freeze({
     compact: true,
     debugProtection: false,
     debugProtectionInterval: false,
@@ -8,4 +8,4 @@ export const DEFAULT_PRESET: IOptions = {
     encodeUnicodeArray: false,
     rotateUnicodeArray: true,
     wrapUnicodeArrayCalls: true
-};
+});

+ 2 - 2
src/preset-options/NoCustomNodesPreset.ts

@@ -1,6 +1,6 @@
 import { IOptions } from "../interfaces/IOptions";
 
-export const NO_CUSTOM_NODES_PRESET: IOptions = {
+export const NO_CUSTOM_NODES_PRESET: IOptions = Object.freeze({
     compact: true,
     debugProtection: false,
     debugProtectionInterval: false,
@@ -8,4 +8,4 @@ export const NO_CUSTOM_NODES_PRESET: IOptions = {
     encodeUnicodeArray: false,
     rotateUnicodeArray: false,
     wrapUnicodeArrayCalls: false
-};
+});