javascript-obfuscator 5.6.0 → 5.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-obfuscator",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "JavaScript obfuscator",
5
5
  "keywords": [
6
6
  "obfuscator",
@@ -10,6 +10,7 @@ import { ObfuscationTarget } from '../../enums/ObfuscationTarget';
10
10
  import { SourceMapMode } from '../../enums/source-map/SourceMapMode';
11
11
  import { SourceMapSourcesMode } from '../../enums/source-map/SourceMapSourcesMode';
12
12
  export interface IOptions {
13
+ readonly advertisement: boolean;
13
14
  readonly compact: boolean;
14
15
  readonly controlFlowFlattening: boolean;
15
16
  readonly controlFlowFlatteningThreshold: number;
@@ -15,6 +15,7 @@ import { SourceMapSourcesMode } from '../enums/source-map/SourceMapSourcesMode';
15
15
  export declare class Options implements IOptions {
16
16
  private static readonly optionPresetsMap;
17
17
  private static readonly validatorOptions;
18
+ readonly advertisement: boolean;
18
19
  readonly compact: boolean;
19
20
  readonly controlFlowFlattening: boolean;
20
21
  readonly controlFlowFlatteningThreshold: number;
@@ -5,7 +5,7 @@ export declare class AdvertisementUtils {
5
5
  private static readonly projectName;
6
6
  private static configPath;
7
7
  static isCI(): boolean;
8
- static shouldShowAdvertisement(): boolean;
8
+ static shouldShowAdvertisement(advertisement: boolean): boolean;
9
9
  private static isNodeEnvironment;
10
10
  private static getConfigPath;
11
11
  private static readConfig;