@@ -26,7 +26,10 @@ var TutorialPackageService = (function () {
2626} ;
2727this . 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 ) {
3033var packagePath = path_1 . join ( window . coderoad . dir , 'node_modules' , name ) ;
3134this . packageJson = require ( path_1 . join ( packagePath , 'package.json' ) ) ;
3235store_1 . store . dispatch ( actions_1 . setGlobals ( this . packageJson ) ) ;
@@ -37,9 +40,6 @@ var TutorialPackageService = (function () {
3740var chapter = _a . chapter , page = _a . page ;
3841return this . data . chapters [ chapter ] . pages [ page ] ;
3942} ;
40- TutorialPackageService . prototype . getPackage = function ( ) {
41- return this . packageJson ;
42- } ;
4343TutorialPackageService . prototype . configTaskTests = function ( tasks ) {
4444var _this = this ;
4545var config = this . packageJson . config ;
@@ -68,12 +68,6 @@ var TutorialPackageService = (function () {
6868title :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- } ;
7771TutorialPackageService . prototype . getNextPosition = function ( _a ) {
7872var chapter = _a . chapter , page = _a . page ;
7973var chapters = this . data . chapters ;