{"version":3,"sources":["jsdelivr-header.js","/npm/gulp-codeclimate-reporter@1.2.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,WAAa,4BACb,GAAK,QAAQ,MACb,KAAO,QAAQ,QACf,MAAQ,QAAQ,aAChB,SAAW,QAAQ,YACnB,KAAO,QAAQ,oBAAoB,KACnC,MAAQ,QAAQ,gBAChB,GAAK,QAAQ,MACb,KAAO,QAAQ,QAEnB,OAAO,QAAU,SAAa,GAC5B,IAAI,EAAiB,KAAK,KAAK,UAAW,eAAgB,OAAQ,6BAElE,IACE,GAAG,UAAU,EACf,CAAE,MAAO,GACP,EAAiB,KAAK,KAAK,UAAW,MAAO,OAAQ,4BACvD,CASA,OAPA,EAAU,MAAM,CACd,MAAO,KACP,WAAY,EACZ,SAAS,EACT,YAAY,GACX,GAAW,CAAC,GAER,SAAS,KAAI,SAAoB,EAAM,EAAU,GACtD,IAAI,EAAS,KACT,EAAW,KAAK,OAA0B,UAAlB,GAAG,WAA0B,sCAAwC,4BAA6B,EAAQ,OAEtI,GAAI,EAAK,WAMP,OALA,EAAO,KAAK,QAAS,IAAI,MAAM,YAAY,CACzC,OAAQ,WACR,QAAS,gCAGJ,IAGT,KAAK,KAAK,OAAO,eAAgB,EAAU,EAAQ,WAAY,EAAK,OACjE,MAAK,SAAuB,EAAQ,GACnC,GAAI,EAMF,OALA,EAAO,KAAK,QAAS,IAAI,MAAM,YAAY,CACzC,OAAQ,WACR,QAAS,KAGJ,IAGL,EAAQ,SACV,MAAM,IAAI,6BAA8B,EAAK,MAG/C,EAAO,KAAK,MACd,IACC,OAAM,SAA0B,GAC/B,EAAO,KAAK,QAAS,IAAI,MAAM,YAAY,CACzC,OAAQ,WACR,QAAS,EAAI,WAGf,GACF,GACJ,GACF","file":"/npm/gulp-codeclimate-reporter@1.2.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/gulp-codeclimate-reporter@1.2.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 pluginName = 'gulp-codeclimate-reporter';\nvar os = require('os');\nvar util = require('util');\nvar gutil = require('gulp-util');\nvar through2 = require('through2');\nvar exec = require('mz/child_process').exec;\nvar merge = require('lodash.merge');\nvar fs = require('fs');\nvar path = require('path');\n\nmodule.exports = function ccm(options) {\n  var executablePath = path.join(__dirname, 'node_modules', '.bin', 'codeclimate-test-reporter');\n\n  try {\n    fs.lstatSync(executablePath);\n  } catch (err) {\n    executablePath = path.join(__dirname, '../', '.bin', 'codeclimate-test-reporter');\n  }\n\n  options = merge({\n    token: null,\n    executable: executablePath,\n    verbose: true,\n    powershell: false\n  }, options || {});\n\n  return through2.obj(function handleFile(file, encoding, callback) {\n    var stream = this;\n    var variable = util.format((os.platform() === 'win32') ? '$env:CODECLIMATE_REPO_TOKEN=\"%s\" &&' : 'CODECLIMATE_REPO_TOKEN=%s', options.token);\n\n    if (file.isStream()) {\n      stream.emit('error', new gutil.PluginError({\n        plugin: pluginName,\n        message: 'Streams are not supported.'\n      }));\n\n      return callback();\n    }\n\n    exec(util.format('%s %s < \"%s\"', variable, options.executable, file.path))\n      .then(function execCompleted(stdout, stderr) {\n        if (stderr) {\n          stream.emit('error', new gutil.PluginError({\n            plugin: pluginName,\n            message: stderr\n          }));\n\n          return callback();\n        }\n\n        if (options.verbose) {\n          gutil.log('Coverage file posted: \"%s\"', file.path);\n        }\n\n        stream.emit('end');\n      })\n      .catch(function throwPluginError(err) {\n        stream.emit('error', new gutil.PluginError({\n          plugin: pluginName,\n          message: err.message\n        }));\n\n        callback();\n      });\n  });\n};"]}