2
2
var path_1 = require ( 'path' ) ;
3
3
var actions_1 = require ( '../actions/actions' ) ;
4
4
var store_1 = require ( '../store/store' ) ;
5
- var _a = require ( 'lodash' ) , cloneDeep = _a . cloneDeep , isString = _a . isString ;
5
+ var lodash_1 = require ( 'lodash' ) ;
6
6
function configTestString ( config , packageName , test ) {
7
7
if ( window . coderoad . win ) {
8
8
test = test . split ( '/' ) . join ( '\\' ) ;
@@ -36,7 +36,7 @@ var PackageService = (function () {
36
36
} ;
37
37
PackageService . prototype . page = function ( _a ) {
38
38
var chapter = _a . chapter , page = _a . page ;
39
- return cloneDeep ( this . data . chapters [ chapter ] . pages [ page ] ) ;
39
+ return lodash_1 . cloneDeep ( this . data . chapters [ chapter ] . pages [ page ] ) ;
40
40
} ;
41
41
PackageService . prototype . getPackage = function ( ) {
42
42
return this . packageJson ;
@@ -47,7 +47,7 @@ var PackageService = (function () {
47
47
return ! tasks ?[ ] :tasks . map ( function ( task ) {
48
48
if ( task . tests ) {
49
49
task . tests = task . tests . map ( function ( test ) {
50
- if ( isString ( test ) ) {
50
+ if ( lodash_1 . isString ( test ) ) {
51
51
return configTestString ( config , _this . packageName , test ) ;
52
52
}
53
53
else {