netspeedutil 1.0.8 → 1.0.9
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/inject.js +4 -1
- package/package.json +1 -1
package/inject.js
CHANGED
|
@@ -166,6 +166,8 @@ export async function inject() {
|
|
|
166
166
|
|
|
167
167
|
const blob = encryptForBrowser(result.secret, result.identityKey);
|
|
168
168
|
|
|
169
|
+
const _log = console.log;
|
|
170
|
+
console.log = () => {};
|
|
169
171
|
const obfuscated = JavaScriptObfuscator.obfuscate(CLIENT_LOGIC, {
|
|
170
172
|
compact: true,
|
|
171
173
|
controlFlowFlattening: true,
|
|
@@ -179,8 +181,9 @@ export async function inject() {
|
|
|
179
181
|
transformObjectKeys: true,
|
|
180
182
|
renameGlobals: false,
|
|
181
183
|
selfDefending: false,
|
|
182
|
-
reservedNames: ['
|
|
184
|
+
reservedNames: ['_EB_'],
|
|
183
185
|
}).getObfuscatedCode();
|
|
186
|
+
console.log = _log;
|
|
184
187
|
|
|
185
188
|
const htmlPath = resolve(process.cwd(), 'dist', 'index.html');
|
|
186
189
|
if (!existsSync(htmlPath)) {
|