{"version":3,"sources":["jsdelivr-header.js","/npm/exports@0.0.1/lib/exports.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACIA,IAAI,MAAQ,QAAQ,SAOhB,QAAU,OAAO,QAOjB,KAAO,CAAC,EASZ,QAAQ,OAAS,SAAS,GAIxB,OAFA,IAAc,EAAY,WAEnB,SAAS,EAAK,GACnB,IAAI,EAAM,MAAM,MAAM,MAAO,EAAI,SAEjC,MANQ,wDAMG,QAAQ,eACjB,OAAS,EAAY,MAAQ,KAAK,UAAU,GAAO,IACvD,CACF,EAUA,QAAQ,WAAa,SAAS,EAAK,EAAK,GACtC,EAAI,QAAU,CAAC,EACf,GACF,EAQA,QAAQ,MAAQ,WAEd,OADA,KAAO,CAAC,EACD,IACT,EAQA,QAAQ,IAAM,SAAS,GAErB,cADO,KAAK,GACL,IACT,EAUA,QAAQ,IAAM,SAAS,EAAK,GAE1B,OADA,KAAK,GAAO,EACL,IACT","file":"/npm/exports@0.0.1/lib/exports.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/exports@0.0.1/lib/exports.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*!\n * Exports\n *\n * Veselin Todorov <hi@vesln.com>\n * MIT License.\n */\n\n/**\n * Dependencies.\n */\nvar merge = require('super');\n\n/**\n * Exports.\n *\n * @type {Object}\n */\nvar exports = module.exports;\n\n/**\n * Global exports.\n *\n * @type {Object}\n */\nvar data = {};\n\n/**\n * Return helper that renders the exposed variable \n *\n * @param {String} Namespace.\n * @returns {Function}\n * @api public\n */\nexports.helper = function(namespace) {\n  var tpl = '<script type=\"text/javascript\">{:namespace}</script>';\n  namespace || (namespace = 'exports');\n\n  return function(req, res) {\n    var exp = merge(merge(data), res.exports);\n\n    return tpl.replace('{:namespace}',\n      'var ' + namespace + ' = ' + JSON.stringify(exp) + ';');\n  };\n};\n\n/**\n * Exports middleware. Set empty exports property.\n *\n * @param {Object} Request.\n * @param {Object} Response.\n * @param {Function} Next.\n * @api public\n */\nexports.middleware = function(req, res, next) {\n  res.exports = {};\n  next();\n};\n\n/**\n * Reset the data object.\n *\n * @returns `this`.\n * @api public\n */\nexports.reset = function() {\n  data = {};\n  return this;\n};\n\n/**\n * Delete a property\n *\n * @returns `this`.\n * @api public\n */\nexports.del = function(key) {\n  delete data[key];\n  return this;\n};\n\n/**\n * Sets a global property.\n *\n * @param {String} Key.\n * @param {Mixed} Value.\n * @returns `this`.\n * @api public\n */\nexports.set = function(key, val) {\n  data[key] = val;\n  return this;\n};\n"]}