Skip to content

Commit

Permalink
0.21.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sanex3339 committed Jan 6, 2020
1 parent 5434986 commit 17e058e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Compiler } from 'webpack';
import { TInputOptions as JavascriptObfuscatorOptions } from 'javascript-obfuscator/src/types/options/TInputOptions';
import { ObfuscatorOptions } from 'javascript-obfuscator';
declare class WebpackObfuscator {
options: JavascriptObfuscatorOptions;
options: ObfuscatorOptions;
excludes: string[];
constructor(options?: JavascriptObfuscatorOptions, excludes?: string | string[]);
constructor(options?: ObfuscatorOptions, excludes?: string | string[]);
apply(compiler: Compiler): void;
private shouldExclude;
private extractSourceAndSourceMap;
Expand Down
5 changes: 2 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
"use strict";

import { Compiler, compilation } from 'webpack';
import JavaScriptObfuscator from 'javascript-obfuscator';
import JavaScriptObfuscator, { ObfuscatorOptions } from 'javascript-obfuscator';
import { RawSource, SourceMapSource } from 'webpack-sources';
import multimatch from 'multimatch';
import { RawSourceMap } from 'source-map';
import { TInputOptions as JavascriptObfuscatorOptions } from 'javascript-obfuscator/src/types/options/TInputOptions';
const transferSourceMap = require("multi-stage-sourcemap").transfer;

class WebpackObfuscator {

public excludes: string[] = [];

constructor(
public options: JavascriptObfuscatorOptions = {},
public options: ObfuscatorOptions = {},
excludes?: string | string[]
) {
this.excludes = this.excludes.concat(excludes || []);
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-obfuscator",
"version": "0.20.4",
"version": "0.21.0",
"description": "javascript-obfuscator plugin for Webpack",
"keywords": [
"obfuscator",
Expand All @@ -15,7 +15,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"javascript-obfuscator": "^0.20.4",
"javascript-obfuscator": "^0.21.0",
"multi-stage-sourcemap": "^0.2.1",
"multimatch": "^2.1.0",
"webpack-sources": "^1.3.0"
Expand Down

0 comments on commit 17e058e

Please sign in to comment.