@@ -26,7 +26,10 @@ var TutorialPackageService = (function () {
26
26
} ;
27
27
this . packageJson = null ;
28
28
}
29
- TutorialPackageService . prototype . selectPackage = function ( name ) {
29
+ TutorialPackageService . prototype . get = function ( ) {
30
+ return this . packageJson ;
31
+ } ;
32
+ TutorialPackageService . prototype . set = function ( name ) {
30
33
var packagePath = path_1 . join ( window . coderoad . dir , 'node_modules' , name ) ;
31
34
this . packageJson = require ( path_1 . join ( packagePath , 'package.json' ) ) ;
32
35
store_1 . store . dispatch ( actions_1 . setGlobals ( this . packageJson ) ) ;
@@ -37,9 +40,6 @@ var TutorialPackageService = (function () {
37
40
var chapter = _a . chapter , page = _a . page ;
38
41
return this . data . chapters [ chapter ] . pages [ page ] ;
39
42
} ;
40
- TutorialPackageService . prototype . getPackage = function ( ) {
41
- return this . packageJson ;
42
- } ;
43
43
TutorialPackageService . prototype . configTaskTests = function ( tasks ) {
44
44
var _this = this ;
45
45
var config = this . packageJson . config ;
@@ -68,12 +68,6 @@ var TutorialPackageService = (function () {
68
68
title : title , description : description , onPageComplete : onPageComplete , completed : completed || false
69
69
} ;
70
70
} ;
71
- TutorialPackageService . prototype . getSavedPosition = function ( ) {
72
- return { chapter : 0 , page : 0 } ;
73
- } ;
74
- TutorialPackageService . prototype . getSavedRoute = function ( ) {
75
- return 'progress' ;
76
- } ;
77
71
TutorialPackageService . prototype . getNextPosition = function ( _a ) {
78
72
var chapter = _a . chapter , page = _a . page ;
79
73
var chapters = this . data . chapters ;
0 commit comments