js-confuser-vm 0.0.2 → 0.0.3

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/src/index.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { compileAndSerialize } from "./compiler.ts";
2
2
  import type { Options } from "./options.ts";
3
+ import { DEFAULT_OPTIONS } from "./options.ts";
3
4
 
4
- async function obfuscate(source, options: Options = {}) {
5
+ async function obfuscate(source, options: Options = DEFAULT_OPTIONS) {
5
6
  const result = compileAndSerialize(source, options);
6
7
 
7
8
  return result;
package/src/options.ts CHANGED
@@ -8,3 +8,5 @@ export interface Options {
8
8
  timingChecks?: boolean; // add timing checks to detect debuggers?
9
9
  minify?: boolean; // pass final output through Google Closure Compiler? (Renames VM class properties)
10
10
  }
11
+
12
+ export const DEFAULT_OPTIONS = {};