@@ -26,7 +26,10 @@ var TutorialPackageService = (function () {
2626 } ;
2727 this . packageJson = null ;
2828 }
29- TutorialPackageService . prototype . selectPackage = function ( name ) {
29+ TutorialPackageService . prototype . get = function ( ) {
30+ return this . packageJson ;
31+ } ;
32+ TutorialPackageService . prototype . set = function ( name ) {
3033 var packagePath = path_1 . join ( window . coderoad . dir , 'node_modules' , name ) ;
3134 this . packageJson = require ( path_1 . join ( packagePath , 'package.json' ) ) ;
3235 store_1 . store . dispatch ( actions_1 . setGlobals ( this . packageJson ) ) ;
@@ -37,9 +40,6 @@ var TutorialPackageService = (function () {
3740 var chapter = _a . chapter , page = _a . page ;
3841 return this . data . chapters [ chapter ] . pages [ page ] ;
3942 } ;
40- TutorialPackageService . prototype . getPackage = function ( ) {
41- return this . packageJson ;
42- } ;
4343 TutorialPackageService . prototype . configTaskTests = function ( tasks ) {
4444 var _this = this ;
4545 var config = this . packageJson . config ;
@@ -68,12 +68,6 @@ var TutorialPackageService = (function () {
6868 title : title , description : description , onPageComplete : onPageComplete , completed : completed || false
6969 } ;
7070 } ;
71- TutorialPackageService . prototype . getSavedPosition = function ( ) {
72- return { chapter : 0 , page : 0 } ;
73- } ;
74- TutorialPackageService . prototype . getSavedRoute = function ( ) {
75- return 'progress' ;
76- } ;
7771 TutorialPackageService . prototype . getNextPosition = function ( _a ) {
7872 var chapter = _a . chapter , page = _a . page ;
7973 var chapters = this . data . chapters ;
0 commit comments