File tree 6 files changed +11
-5
lines changed 6 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 20
20
"prebuildRelease" : " npm run tslint" ,
21
21
"buildRelease" : " npm run clean && tsc && node ./dist/build/make.js release" ,
22
22
"debug" : " npm run test -- --debug-brk --inspect" ,
23
-
24
23
"coverage" : " tsc --sourceMap --outDir dist_map && istanbul cover node_modules/.bin/_mocha -- dist_map/test/*.spec.js" ,
25
24
"browserify" : " mkdir umd; browserify dist/index.js -s array-diff -o umd/array-diff.js"
26
25
},
32
31
"devDependencies" : {
33
32
"@types/mocha" : " ^2.2.40" ,
34
33
"@types/shelljs" : " ^0.7.0" ,
34
+ "browserify" : " ^17.0.0" ,
35
35
"mocha" : " ^3.2.0" ,
36
36
"shelljs" : " ^0.7.7" ,
37
37
"tslint" : " ^5.0.0" ,
38
- "typescript" : " ^2.2.2 "
38
+ "typescript" : " ^3.5.1 "
39
39
}
40
40
}
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ shjs.exec([
76
76
"-std=c++14" ,
77
77
"-s ALLOW_MEMORY_GROWTH=1" ,
78
78
"-s DISABLE_EXCEPTION_CATCHING=0" ,
79
+ "-s MODULARIZE=1" ,
79
80
"--memory-init-file 0" ,
80
81
release ? "-O3" : "-g4" ,
81
82
"--js-library ./src/cpp/bridge/bridge.js" ,
Original file line number Diff line number Diff line change 1
1
import { DataFile } from "./dataFile" ;
2
2
import { Extractor , SeekMethod } from "./extractor" ;
3
- import * as unrar from "./unrar " ;
3
+ import unrar from "./unrarSingleton " ;
4
4
5
5
export class DataExtractor extends Extractor {
6
6
protected _filePath : string ;
Original file line number Diff line number Diff line change 1
1
2
2
import { Ext as extIns } from "./extractorCurrent" ;
3
- import * as unrar from "./unrar " ;
3
+ import unrar from "./unrarSingleton " ;
4
4
5
5
export type SeekMethod = "CUR" | "SET" | "END" ;
6
6
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as fs from "fs";
2
2
import * as path from "path" ;
3
3
4
4
import { Extractor , SeekMethod } from "./extractor" ;
5
- import * as unrar from "./unrar " ;
5
+ import unrar from "./unrarSingleton " ;
6
6
7
7
export class FileExtractor extends Extractor {
8
8
protected _filePath : string ;
Original file line number Diff line number Diff line change
1
+ import * as unrarCls from "./unrar" ;
2
+
3
+ const unrar = new ( < any > unrarCls ) ;
4
+
5
+ export default unrar ;
You can’t perform that action at this time.
0 commit comments