@liascript/exporter 2.5.7--0.10.30 → 2.5.8--0.10.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/assets/scorm1.2/SCORM1.2.0da8e8ee.js +1 -0
- package/dist/assets/scorm1.2/SCORM1.2.e32438b5.js +1 -0
- package/dist/assets/scorm1.2/index.3f87aa11.js +1 -0
- package/dist/assets/scorm1.2/index.4a92e335.js +1 -0
- package/dist/assets/scorm1.2/index.607bde0c.js +1 -0
- package/dist/assets/scorm1.2/index.c71d23fb.js +1 -0
- package/dist/assets/scorm1.2/index.html +1 -1
- package/dist/assets/scorm2004/SCORM2004.0f5b6db9.js +1 -0
- package/dist/assets/scorm2004/SCORM2004.d623c532.js +1 -0
- package/dist/assets/scorm2004/index.250ec73b.js +1 -0
- package/dist/assets/scorm2004/index.2ed9b743.js +1 -0
- package/dist/assets/scorm2004/index.3f87aa11.js +1 -0
- package/dist/assets/scorm2004/index.c71d23fb.js +1 -0
- package/dist/assets/scorm2004/index.html +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/export/helper.ts +1 -1
- package/src/index.ts +1 -1
- package/dist/assets/scorm1.2/SCORM1.2.24fa74ce.js +0 -1
- package/dist/assets/scorm1.2/SCORM1.2.a747c359.js +0 -1
- package/dist/assets/scorm1.2/index.2cc4646a.js +0 -1
- package/dist/assets/scorm1.2/index.37afd3c6.js +0 -1
- package/dist/assets/scorm1.2/index.4890a134.js +0 -1
- package/dist/assets/scorm1.2/index.f7bddd51.js +0 -1
- package/dist/assets/scorm2004/SCORM2004.1d75baac.js +0 -1
- package/dist/assets/scorm2004/SCORM2004.ed1a5e57.js +0 -1
- package/dist/assets/scorm2004/index.4890a134.js +0 -1
- package/dist/assets/scorm2004/index.7f715788.js +0 -1
- package/dist/assets/scorm2004/index.9afd38f6.js +0 -1
- package/dist/assets/scorm2004/index.f7bddd51.js +0 -1
package/package.json
CHANGED
package/src/export/helper.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ const argv = require('minimist')(process.argv.slice(2))
|
|
|
20
20
|
|
|
21
21
|
// -------------------------------Main Execution-------------------------------
|
|
22
22
|
if (argv.v || argv.version) {
|
|
23
|
-
console.log('version: 2.5.
|
|
23
|
+
console.log('version: 2.5.8--0.10.30')
|
|
24
24
|
} else if (argv.h || argv.help) {
|
|
25
25
|
help()
|
|
26
26
|
} else if (argv.i || argv.input) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,e,o,n){Object.defineProperty(t,e,{get:o,set:n,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("9I2Jm",(function(o,n){t(o.exports,"Connector",(()=>i));var s=e("e32Bb");class i extends s.Connector{open(t,e,o){null!==this.location&&window.LIA.goto(this.location)}slide(t){this.location=t,this.scorm&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}countInteractions(){if(!this.scorm)return;let t=parseInt(this.scorm.LMSGetValue("cmi.interactions._count"));return t||null}setInteraction(t,e){if(this.scorm)return e.length<=256?(this.scorm.LMSSetValue(`cmi.interactions.${t}.id`,e),!0):(this.scorm.LMSSetValue(`cmi.interactions.${t}.id`,"Objective could not be stored, content exceeds 256Bytes!"),!1)}constructor(){super(),console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter, since this one cannot be used to store states or any kind of progress. The only thing that is stores, is currently the user location...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHava fun ;-)"),window.top&&window.top.API&&(this.scorm=window.top.API,console.log("LMSInitialize",this.scorm.LMSInitialize("")),this.location=function(t){try{return JSON.parse(t)}catch(t){}return null}(this.scorm.LMSGetValue("cmi.core.lesson_location")),null===this.location&&this.slide(0))}}})),e.register("e32Bb",(function(o,n){t(o.exports,"Connector",(()=>r));var s=e("4ssuu"),i=e("XOp0e");class r{hasIndex(){return!1}storage(){return new s.LiaStorage}initSettings(t,e=!1){return i.Settings.init(t,e)}setSettings(t){try{localStorage.setItem(i.Settings.PORT,JSON.stringify(t))}catch(t){console.warn("cannot write to localStorage")}}getSettings(){let t="";try{t=localStorage.getItem(i.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}let e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=i.Settings.default),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}open(t,e,o){}load(t){}store(t){}update(t,e){}slide(t){}getIndex(){}deleteFromIndex(t){}storeToIndex(t){}restoreFromIndex(t,e){}reset(t,e){this.initSettings(null,!0)}async getFromIndex(t){return null}constructor(){}}})),e.register("4ssuu",(function(e,o){t(e.exports,"LiaStorage",(()=>n));class n{getItems(t=[]){"string"==typeof t&&(t=[t]);let e={};for(let o=0;o<t.length;o++){let n=localStorage.getItem(t[o]);e[t[o]]=n?JSON.parse(n):n}return e}setItems(t){this._setLocal(t)}_setLocal(t){if("object"==typeof t)for(const[e,o]of Object.entries(t))localStorage.setItem(e,JSON.stringify(o))}constructor(){}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){function t(t,e,n,o){Object.defineProperty(t,e,{get:n,set:o,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("gyRZo",(function(n,o){t(n.exports,"Connector",(function(){return c}));var i=e("kxanC"),r=e("hWDD9"),a=e("cksMj"),u=e("giCK6");var c=function(t){"use strict";(0,a.default)(n,t);var e=(0,u.default)(n);function n(){var t;return(0,i.default)(this,n),t=e.call(this),console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter, since this one cannot be used to store states or any kind of progress. The only thing that is stores, is currently the user location...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHava fun ;-)"),window.top&&window.top.API&&(t.scorm=window.top.API,console.log("LMSInitialize",t.scorm.LMSInitialize("")),t.location=function(t){try{return JSON.parse(t)}catch(t){}return null}(t.scorm.LMSGetValue("cmi.core.lesson_location")),null===t.location&&t.slide(0)),t}return(0,r.default)(n,[{key:"open",value:function(t,e,n){null!==this.location&&window.LIA.goto(this.location)}},{key:"slide",value:function(t){this.location=t,this.scorm&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}},{key:"countInteractions",value:function(){if(this.scorm){var t=parseInt(this.scorm.LMSGetValue("cmi.interactions._count"));return t||null}}},{key:"setInteraction",value:function(t,e){if(this.scorm)return e.length<=256?(this.scorm.LMSSetValue("cmi.interactions.".concat(t,".id"),e),!0):(this.scorm.LMSSetValue("cmi.interactions.".concat(t,".id"),"Objective could not be stored, content exceeds 256Bytes!"),!1)}}]),n}(e("irPpa").Connector)})),e.register("irPpa",(function(n,o){t(n.exports,"Connector",(function(){return s}));var i=e("2swew"),r=e("kxanC"),a=e("hWDD9"),u=e("eQNFO"),c=e("2QbWq"),l=e("aOvOw"),s=function(){"use strict";function t(){(0,r.default)(this,t)}return(0,a.default)(t,[{key:"hasIndex",value:function(){return!1}},{key:"storage",value:function(){return new c.LiaStorage}},{key:"initSettings",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return l.Settings.init(t,e)}},{key:"setSettings",value:function(t){try{localStorage.setItem(l.Settings.PORT,JSON.stringify(t))}catch(t){console.warn("cannot write to localStorage")}}},{key:"getSettings",value:function(){var t="";try{t=localStorage.getItem(l.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}var e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=l.Settings.default),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}},{key:"open",value:function(t,e,n){}},{key:"load",value:function(t){}},{key:"store",value:function(t){}},{key:"update",value:function(t,e){}},{key:"slide",value:function(t){}},{key:"getIndex",value:function(){}},{key:"deleteFromIndex",value:function(t){}},{key:"storeToIndex",value:function(t){}},{key:"restoreFromIndex",value:function(t,e){}},{key:"reset",value:function(t,e){this.initSettings(null,!0)}},{key:"getFromIndex",value:function(t){return(0,i.default)((function(){return(0,u.__generator)(this,(function(t){return[2,null]}))}))()}}]),t}()})),e.register("2QbWq",(function(n,o){t(n.exports,"LiaStorage",(function(){return u}));var i=e("kxanC"),r=e("hWDD9"),a=e("mBz5n"),u=function(){"use strict";function t(){(0,i.default)(this,t)}return(0,r.default)(t,[{key:"getItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof t&&(t=[t]);for(var e={},n=0;n<t.length;n++){var o=localStorage.getItem(t[n]);e[t[n]]=o?JSON.parse(o):o}return e}},{key:"setItems",value:function(t){this._setLocal(t)}},{key:"_setLocal",value:function(t){var e=!0,n=!1,o=void 0;if("object"==typeof t)try{for(var i,r=Object.entries(t)[Symbol.iterator]();!(e=(i=r.next()).done);e=!0){var u=(0,a.default)(i.value,2),c=u[0],l=u[1];localStorage.setItem(c,JSON.stringify(l))}}catch(t){n=!0,o=t}finally{try{e||null==r.return||r.return()}finally{if(n)throw o}}}}]),t}()}))}();
|