jscrambler 8.7.1 → 8.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # jscrambler
2
2
 
3
+ ## 8.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [477066b]: Added globalNamesPrefix config option to cli
8
+
3
9
  ## 8.7.1
4
10
 
5
11
  ### Patch Changes
@@ -149,6 +149,7 @@ config.skipSources = _commander.default.skipSources;
149
149
  config.debugMode = _commander.default.debugMode || config.debugMode;
150
150
  config.instrument = _commander.default.instrument || config.instrument;
151
151
  config.mode = _commander.default.mode || config.mode;
152
+ config.globalNamesPrefix = _commander.default.globalNamesPrefix || config.globalNamesPrefix;
152
153
 
153
154
  // handle codeHardening = 0
154
155
  if (typeof _commander.default.codeHardeningThreshold === 'undefined') {
@@ -283,7 +284,8 @@ const {
283
284
  beforeProtection,
284
285
  deleteProtectionOnSuccess,
285
286
  mode,
286
- saveSrc
287
+ saveSrc,
288
+ globalNamesPrefix
287
289
  } = config;
288
290
  const params = config.params;
289
291
  const incompatibleOptions = ['sourceMaps', 'instrument', 'startProfiling', 'stopProfiling'];
@@ -410,7 +412,8 @@ if (_commander.default.sourceMaps) {
410
412
  beforeProtection,
411
413
  deleteProtectionOnSuccess,
412
414
  mode,
413
- saveSrc
415
+ saveSrc,
416
+ globalNamesPrefix
414
417
  });
415
418
  try {
416
419
  if (typeof werror !== 'undefined') {
package/dist/index.js CHANGED
@@ -273,7 +273,8 @@ var _default = exports.default = {
273
273
  forceAppEnvironment,
274
274
  deleteProtectionOnSuccess,
275
275
  mode,
276
- saveSrc
276
+ saveSrc,
277
+ globalNamesPrefix
277
278
  } = finalConfig;
278
279
  const {
279
280
  accessKey,
@@ -394,7 +395,8 @@ var _default = exports.default = {
394
395
  tolerateMinification,
395
396
  numberOfProtections,
396
397
  forceAppEnvironment,
397
- mode
398
+ mode,
399
+ globalNamesPrefix
398
400
  });
399
401
  if (finalConfig.inputSymbolTable) {
400
402
  const inputSymbolTableContents = await _fs.default.promises.readFile(finalConfig.inputSymbolTable, 'utf-8');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscrambler",
3
3
  "description": "Jscrambler Code Integrity API client.",
4
- "version": "8.7.1",
4
+ "version": "8.8.0",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": "Jscrambler <support@jscrambler.com>",
7
7
  "repository": {