{"version":3,"sources":["jsdelivr-header.js","/npm/lasso-typescript@1.1.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,MAAQ,QAAQ,SAChB,GAAK,QAAQ,MACb,KAAO,QAAQ,QAErB,OAAO,QAAU,CAAC,EAAO,KAEL,EAAO,WACvB,EAAM,aAAa,oBAAoB,KAAM,CAEzC,WAAY,CAAE,KAAQ,UAEtB,KAAM,SAAU,GACZ,MAAM,EAAa,KAAK,YAAY,KAAK,MACnC,EAAO,QAAQ,iBAAiB,KACtC,OAAO,IAAI,SAAQ,SAAU,EAAS,GAClC,IAAI,EAAe,EAAK,OAAO,KAC/B,EAAa,OAAO,GAAG,QAAQ,SAAU,GAAK,QAAQ,IAAI,EAAI,IAC9D,EAAa,OAAO,GAAG,QAAQ,SAAU,GAAK,QAAQ,IAAI,EAAI,IAE9D,EAAa,GAAG,QAAQ,SAAU,GACjB,IAAT,GACA,IAEJ,GACJ,GACJ,GACJ,EAEA,gBAAiB,SAAU,GACvB,OAAO,IAAI,SAAQ,CAAC,EAAS,KACzB,GAAS,GAEjB,EACA,KAAM,SAAU,GAEZ,OAAQ,KAAK,WAAa,KAAK,UAAU,MAAS,IACtD,EACA,gBAAiB,SAAU,GACvB,MAAO,EACX,GACF","file":"/npm/lasso-typescript@1.1.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/lasso-typescript@1.1.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const lasso = require('lasso');\nconst fs = require('fs');\nconst path = require('path');\n\nmodule.exports = (lasso, config) => {\n\n    let extension = config.extensions || ['ts']\n    lasso.dependencies.registerRequireType('ts', {\n\n        properties: { 'path': 'string' },\n\n        init: function (lassoContext) {\n            const modulePath = this.resolvePath(this.path);\n            const exec = require('child_process').exec;\n            return new Promise(function (resolve, reject) {\n                let childProcess = exec(`tsc ${modulePath}`);\n                childProcess.stdout.on('data', function (d) { console.log(d); });\n                childProcess.stderr.on('data', function (d) { console.log(d); });\n\n                childProcess.on('exit', function (code) {\n                    if (code !== 0) {\n                        reject();\n                    }\n                    resolve();\n                });\n            });\n        },\n\n        getLastModified: function (lassoContext) {\n            return new Promise((resolve, reject) => {\n                resolve();\n            });\n        },\n        read: function (lassoContext) {\n\n            return (this._compiled && this._compiled.code) || null;\n        },\n        getDependencies: function (lassoContext) {\n            return [];\n        }\n    });\n};"]}