{"version":3,"sources":["jsdelivr-header.js","/npm/pino-cloudwatch@0.7.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,aAAe,QAAQ,iBACvB,aAAe,QAAQ,uBACvB,eAAiB,QAAQ,yBACzB,iBAAmB,QAAQ,2BAE/B,OAAO,QAAU,SAAU,EAAS,IAClC,EAAU,GAAW,CAAC,GACd,aAAc,EAEtB,IAAI,EAAM,IAAI,iBAAiB,GAC3B,EAAQ,IAAI,aAAa,GACzB,EAAW,IAAI,eACf,EAAS,IAAI,aAAa,GAe9B,OAbA,EAAM,IAAI,QAAQ,qBAClB,EAAM,IAAI,QAAQ,mBAEU,mBAAjB,GACT,EAAI,GAAG,QAAS,GAGlB,EAAI,GAAG,WAAW,WAChB,EAAO,KAAK,UACd,IAEA,EAAO,KAAK,GAAO,KAAK,GAAU,KAAK,GAEhC,CACT","file":"/npm/pino-cloudwatch@0.7.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/pino-cloudwatch@0.7.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","var ChunkyStream = require('chunky-stream');\nvar StdoutStream = require('./lib/stdout-stream');\nvar ThrottleStream = require('./lib/throttle-stream');\nvar CloudWatchStream = require('./lib/cloudwatch-stream');\n\nmodule.exports = function (options, errorHandler) {\n  options = options || {};\n  options.ignoreEmpty = true;\n\n  var log = new CloudWatchStream(options);\n  var chunk = new ChunkyStream(options);\n  var throttle = new ThrottleStream();\n  var stdout = new StdoutStream(options);\n\n  chunk.use(require('./lib/max-length'));\n  chunk.use(require('./lib/max-size'));\n\n  if (typeof errorHandler === 'function') {\n    log.on('error', errorHandler);\n  }\n\n  log.on('flushed', function () {\n    stdout.emit('flushed')\n  });\n\n  stdout.pipe(chunk).pipe(throttle).pipe(log);\n\n  return stdout;\n};\n"]}