@caspingus/lt
Version:
A utility library of helpers and extensions useful when working with Learnosity APIs.
18 lines (17 loc) • 608 B
JavaScript
import { t as e } from "../extensionsRegistry-Cf-XVCyU.js";
import { t } from "../core-CFD21JdB.js";
//#region src/authoring/bundle.js
var n = Object.freeze(Object.keys(e.authoring || {}).sort()), r = {
...t,
async init(e, r = {}) {
if (typeof e != "object" || !e) throw TypeError("LT.init(authorApp, options): the first argument must be the Learnosity Author API instance object.");
let { extensions: i, security: a, request: o } = r || {}, s = Array.isArray(i) && i.length > 0 ? i : n;
return t.init(e, {
extensions: s,
security: a,
request: o
});
}
};
//#endregion
export { r as LT };