{"version":3,"sources":["jsdelivr-header.js","/npm/blue-prod-hook-sockets@0.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACFA,OAAO,QAAU,SAAU,GACzB,MAAO,CAEL,SAAU,QAAQ,kBAElB,UAAW,QAAQ,kBAAR,CAA2B,GAEtC,WAAY,QAAQ,mBAAR,CAA4B,GAExC,OAAQ,CAGN,OAAQ,CAER,EAGA,MAAO,CAIL,mBAAoB,SAAU,EAAK,EAAK,GACtC,IAAK,EAAI,OAAO,QAAQ,oBACtB,OAAO,IAKT,EAAI,IAAI,eAAgB,0BACxB,EAAI,KAAK,uBACX,IAMJ,sBAAuB,WAAY,EACnC,kBAAmB,WAAY,EAGnC","file":"/npm/blue-prod-hook-sockets@0.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/blue-prod-hook-sockets@0.0.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","/**\n * `sockets` hook\n */\n\nmodule.exports = function (app){\n  return {\n\n    defaults: require('./lib/defaults'),\n\n    configure: require('./lib/configure')(app),\n\n    initialize: require('./lib/initialize')(app),\n\n    routes: {\n\n      // Before the app's routes...\n      before: {\n\n      },\n\n      // After the app's routes (i.e. if none matched)...\n      after: {\n\n        // This \"shadow\" route can be disabled by setting:\n        // `sails.config.sockets.grant3rdPartyCookie: false`\n        'GET /__getcookie': function (req, res, next) {\n          if (!app.config.sockets.grant3rdPartyCookie) {\n            return next();\n          }\n          // We explicitly set Content-Type to javascript, because some servers\n          // require this when the header X-Content-Type-Options is set to\n          // 'nosniff'\n          res.set('Content-Type', 'application/javascript');\n          res.send('_sailsIoJSConnect();');\n        }\n\n      }\n    },\n\n    // Default no-op admin bus\n    broadcastAdminMessage: function() {},\n    blastAdminMessage: function() {}\n\n  };\n};\n"]}