{"version":3,"sources":["jsdelivr-header.js","/npm/buggy@0.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAKC,OALG,KAAO,QAAQ,QAClB,GAAK,QAAQ,MACb,OAAS,QAAQ,gBACjB,SAAW,OAAO,IAAI,YACtB,IAAM,UAAY,OAGnB,GAAG,YAAY,KACb,QAAO,SAAS,GAChB,OAAO,GAAG,SAAS,IAAM,IAAM,GAAM,aACtC,IACC,SAAQ,SAAS,GACjB,SAAS,QAAQ,IAAM,IAAM,GAAQ,IACtC,IAED,KAAK,QAAQ,UAAU,SAAS,EAAO,GACtC,GAAI,EACH,MAAM,IAAI,MAAM,GAGjB,OAAS,EAEJ,OAAO,QACX,OAAO,OAAM,SAAS,GACrB,QAAQ,IAAI,6BAA+B,OAAO,KAAK,KACxD,GAEF,IAEA,OAAO,QAAU","file":"/npm/buggy@0.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/buggy@0.1.1/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","'use strict';\n\nvar Glue = require('glue'),\n\tfs = require('fs'),\n\tConfig = require('./lib/config'),\n\tmanifest = Config.get('manifest'),\n\tdir = __dirname + '/api',\n\tserver;\n\nfs.readdirSync(dir)\n\t.filter(function(item) {\n\t\treturn fs.statSync(dir + '/' + item).isDirectory();\n\t})\n\t.forEach(function(item) {\n\t\tmanifest.plugins[dir + '/' + item] = null;\n\t});\n\nGlue.compose(manifest, function(error, svr) {\n\tif (error) {\n\t\tthrow new Error(error);\n\t}\n\n\tserver = svr;\n\n\tif (!module.parent) {\n\t\tserver.start(function(error) {\n\t\t\tconsole.log(' - server started at port ' + server.info.port);\n\t\t});\n\t}\n});\n\nmodule.exports = server;\n"]}