Jonathan Putney
e5987f5ff1
Working on an issue with async commits
2020-08-25 08:39:59 -04:00
Jonathan Putney
54005312fd
Checking commit response for result.result instead of errorCode
2020-08-19 09:27:17 -04:00
Jonathan Putney
7f1d9953e4
Bug fixes and sorting issue with loadFromFlattenedJson
...
Also added several new test cases, most significantly some cases that test the commit functionality
2020-08-17 14:46:33 -04:00
Jonathan Putney
ab1f3b061b
Minor code cleanup and additional test cases
2020-08-17 09:09:52 -04:00
Jonathan Putney
4582d733af
Adding setting to always commit total_time, listeners for commit requests
2020-08-14 15:40:29 -04:00
Jonathan Putney
e9fee3c258
SCORM 2004 cmi.interactions.n.learner_response was never being set
2020-08-14 15:22:01 -04:00
Jonathan Putney
fc9a56e4c4
Fixing boolean logic issue
2020-08-14 14:44:46 -04:00
Jonathan Putney
107069963c
Fixing build
2020-07-30 18:10:34 -04:00
Jonathan Putney
22408c2c0e
Finalizing changes to initial data load
2020-07-30 18:05:11 -04:00
Jonathan Putney
c341d3f70f
Not requiring fields to be previously set while loading existing data
2020-07-30 16:54:15 -04:00
Jonathan Putney
dcad088b25
Sort until we can't sort anymore
2020-07-30 15:53:50 -04:00
Jonathan Putney
0f9143be46
And again...
2020-07-30 14:34:21 -04:00
Jonathan Putney
6c96dadbce
Still trying to make sure that cmi is sorted properly
2020-07-30 12:13:15 -04:00
Jonathan Putney
a66712d3b4
Adding objectives sorting
2020-07-30 11:57:34 -04:00
Jonathan Putney
e4e9f87f18
Making sure to sort interactions properly
2020-07-30 11:48:56 -04:00
Jonathan Putney
9bb735bf59
Removing unnecessary log statements
2020-07-28 23:08:02 -04:00
Jonathan Putney
1b48c9ee4d
Fixing an issue with CMI interactions not being loaded in the proper order
...
Interaction ID and Type need to be loaded before most other interaction fields, so I added a built in sort when loading using the flattened JSON load.
2020-07-28 22:36:37 -04:00
Jonathan Putney
4a97c1c0a9
Dependency updates and fixing an issue with multiple final commits in SCORM 1.2
2020-07-14 10:33:05 -04:00
Jonathan Putney
97070184b8
Immediately commit if we're currently terminating
2020-06-29 21:12:27 -04:00
Jonathan Putney
2a3f9b61af
Switching to lodash's debounce
2020-06-29 17:45:34 -04:00
Jonathan Putney
5af069f2ef
Add getter for API error_codes
2020-06-29 17:21:09 -04:00
Jonathan Putney
2e09fde478
Missing error code for successful sendBeacon commit
2020-06-29 17:13:25 -04:00
Jonathan Putney
d1f22df4d7
Missing error codes on debounce
2020-06-29 17:11:38 -04:00
Jonathan Putney
063029e0ad
Debouncing the LMS API calls
2020-06-29 16:58:24 -04:00
Jonathan Putney
90d981b2a4
Fixing content type for sendBeacon
2020-06-29 15:58:40 -04:00
Jonathan Putney
075dff8eec
Adding async processing of commits
2020-06-29 15:43:10 -04:00
Jonathan Putney
ca94ee9fb5
Adding new selfReportSessionTime setting
2020-06-26 14:50:33 -04:00
Jonathan Putney
9847b0f1eb
Fixing an issue with double digit interaction counts
2020-06-26 12:07:06 -04:00
Jonathan Putney
4a62f930e2
Browsers don't like the XMLHttpRequest.responseType setting for synchronous requests
2020-06-01 13:12:34 -04:00
Jonathan Putney
c311b4dbc7
Fixing a write-only issue with SCORM 1.2 nav.event until I figure out what to do with it
...
Not sure if it's even necessary outside of Moodle, or if it is custom for their player.
2020-05-25 19:55:30 -04:00
Jonathan Putney
f791aeec7b
Adding the ability to use catch-all listeners
2020-05-25 17:06:51 -04:00
Jonathan Putney
3df4eee314
Fixing duration to seconds to ignore leap year/time zones
2020-03-17 17:18:26 -04:00
Jonathan Putney
3103707aec
cmi.core.suspend_data vs. cmi.suspend_data
...
It seems to be a common issue that some SCORM 1.2 modules are trying to store "suspend_data" in cmi.core.suspend_data instead of cmi.suspend_data, which is actually the correct field according to the spec. We're still only storing it once, but will allow getting and setting from cmi.core.suspend_data. Exported JSON will continue to only output spec compliant data.
2020-02-06 12:35:49 -05:00
Jonathan Putney
0357442e93
Fixing some regex issues and adding additional API tests
2020-02-04 15:14:42 -05:00
Jonathan Putney
81528274a4
Properly handling ISO 8601 durations that have milliseconds
2020-01-22 13:38:22 -05:00
Jonathan Putney
ccf1f7b4b7
Adding some additional AICC CMI parameters
2020-01-16 08:58:46 -05:00
Jonathan Putney
7882608fb6
Rework of constants and some additional tests
2020-01-15 12:21:57 -05:00
Jonathan Putney
1ecc14442b
Fixing padStart IE11 incompatibility
2020-01-09 10:10:53 -05:00
Jonathan Putney
5713a26b9b
Fixing a lint issue
2020-01-09 09:52:34 -05:00
Jonathan Putney
175dec5dc8
Fixing build
2020-01-09 09:40:37 -05:00
Jonathan Putney
7954e2a083
Merge branch 'master' of https://github.com/jcputney/scorm-again
2020-01-09 09:37:58 -05:00
Jonathan Putney
d460053cbb
Moving field values to test src
2020-01-09 09:36:08 -05:00
Jonathan Putney
9823220be7
Making sure seconds are padded when they add up to zero
2020-01-02 13:17:31 -05:00
Jonathan Putney
b2a7feee42
Checking for existence of value instead of null
2019-12-30 14:52:55 -05:00
Jonathan Putney
f2637f10b5
Blank string is valid for cmi.core.exit/cmi.exit
2019-12-30 13:19:06 -05:00
Jonathan Putney
a1d94eef97
Handling non-string values being passed to SetValue/LMSSetValue
2019-12-30 11:33:08 -05:00
Jonathan Putney
6e4f2e3663
Removing total_time from JSON export, unless it's for the final commit
2019-12-26 14:36:36 -05:00
Jonathan Putney
086f935d59
Checking if more than 2 decimal places, before using toFixed
2019-12-26 14:14:07 -05:00
Jonathan Putney
bbe30d4ab0
Moving term state changing to earlier in terminate call
2019-12-26 13:03:43 -05:00
Jonathan Putney
a084f35f0e
eslint fix
2019-12-23 20:42:33 -05:00