javascript-obfuscator 5.0.0 → 5.0.1

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.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "JavaScript obfuscator",
5
5
  "keywords": [
6
6
  "obfuscator",
@@ -29,6 +29,7 @@
29
29
  "chance": "1.1.13",
30
30
  "class-validator": "0.14.3",
31
31
  "commander": "12.1.0",
32
+ "conf": "15.0.2",
32
33
  "eslint-scope": "8.4.0",
33
34
  "eslint-visitor-keys": "4.2.1",
34
35
  "fast-deep-equal": "3.1.3",
@@ -37,7 +38,6 @@
37
38
  "md5": "2.3.0",
38
39
  "mkdirp": "3.0.1",
39
40
  "multimatch": "5.0.0",
40
- "opencollective-postinstall": "2.0.3",
41
41
  "process": "0.11.10",
42
42
  "reflect-metadata": "0.2.2",
43
43
  "source-map-support": "0.5.21",
@@ -124,7 +124,6 @@
124
124
  "prettier:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
125
125
  "format": "yarn run prettier && yarn run eslint --fix",
126
126
  "git:addFiles": "git add .",
127
- "postinstall": "opencollective-postinstall",
128
127
  "precommit": "yarn run eslint",
129
128
  "prepublishOnly": "yarn run build && yarn run build:typings",
130
129
  "prepare": "husky install"
@@ -137,12 +136,5 @@
137
136
  "Dmitry Zamotkin (https://github.com/zamotkin)"
138
137
  ],
139
138
  "license": "BSD-2-Clause",
140
- "funding": {
141
- "type": "opencollective",
142
- "url": "https://opencollective.com/javascript-obfuscator"
143
- },
144
- "collective": {
145
- "url": "https://opencollective.com/javascript-obfuscator"
146
- },
147
139
  "packageManager": "yarn@1.22.21+sha512.ca75da26c00327d26267ce33536e5790f18ebd53266796fbb664d2a4a5116308042dd8ee7003b276a20eace7d3c5561c3577bdd71bcb67071187af124779620a"
148
140
  }
@@ -5,5 +5,7 @@ export declare enum LoggingMessage {
5
5
  RandomGeneratorSeed = "Random generator seed: %s...",
6
6
  CodeTransformationStage = "Code transformation stage: %s...",
7
7
  NodeTransformationStage = "AST transformation stage: %s...",
8
- Version = "Version: %s"
8
+ Version = "Version: %s",
9
+ JavaScriptObfuscatorProAdFirstPart = "\uD83D\uDEE1\uFE0F JavaScript Obfuscator Pro is now available \u2014 with powerful Virtual Machine-based obfuscation\n(bytecode virtualization, anti-decompilation, unique opcode and VM structure each compilation, and more).",
10
+ JavaScriptObfuscatorProAdSecondPart = "\uD83D\uDC49\uFE0F Get your API key at https://obfuscator.io and start using Virtual Machine obfuscation with javascript-obfuscator package."
9
11
  }
@@ -3,4 +3,5 @@ export interface ILogger {
3
3
  info(loggingMessage: LoggingMessage, value?: string | number): void;
4
4
  success(loggingMessage: LoggingMessage, value?: string | number): void;
5
5
  warn(loggingMessage: LoggingMessage, value?: string | number): void;
6
+ advertise(loggingMessage: LoggingMessage): void;
6
7
  }
@@ -13,4 +13,5 @@ export declare class Logger implements ILogger {
13
13
  info(loggingMessage: LoggingMessage, value?: string | number): void;
14
14
  success(loggingMessage: LoggingMessage, value?: string | number): void;
15
15
  warn(loggingMessage: LoggingMessage, value?: string | number): void;
16
+ advertise(loggingMessage: LoggingMessage): void;
16
17
  }
@@ -0,0 +1,2 @@
1
+ export declare const proAdvertiseMessageFirstPart = "\uD83D\uDEE1\uFE0F JavaScript Obfuscator Pro is now available \u2014 with powerful Virtual Machine-based obfuscation\n(bytecode virtualization, anti-decompilation, unique opcode and VM structure each compilation, and more).";
2
+ export declare const proAdvertiseMessageSecondPart = "\uD83D\uDC49\uFE0F Get your API key at https://obfuscator.io and start using Virtual Machine obfuscation with javascript-obfuscator package.";
@@ -0,0 +1,17 @@
1
+ export declare class AdvertisementUtils {
2
+ private static readonly maxDisplayCount;
3
+ private static readonly storageKey;
4
+ private static readonly timestampKey;
5
+ private static readonly resetPeriodMs;
6
+ private static readonly ciEnvVars;
7
+ private static config;
8
+ static isCI(): boolean;
9
+ static shouldShowAdvertisement(): boolean;
10
+ private static isNodeEnvironment;
11
+ private static getConfig;
12
+ private static getDisplayCount;
13
+ private static setDisplayCount;
14
+ private static getFirstDisplayTime;
15
+ private static setFirstDisplayTime;
16
+ private static resetDisplayData;
17
+ }