{"version":3,"sources":["jsdelivr-header.js","/npm/node-rsync@1.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACDA,OAAO,QAAU,CACf,QAAS,SAAS,EAAQ,EAAU,GAClC,IAAI,EAAO,QAAQ,iBAAiB,KAChC,EAAM,aAEU,IAAjB,EAAO,QACR,GAAO,KAAO,EAAO,YAGD,IAAnB,EAAO,UACR,GAAO,IAAM,EAAO,cAGD,IAAlB,EAAO,SACR,GAAO,IAAM,EAAO,aAGI,IAAvB,EAAO,YACR,GAAO,IAAM,EAAO,YAEpB,QAAQ,IAAI,+CAGd,EAAK,GAAK,SAAS,EAAO,EAAQ,GACnB,OAAV,EACD,EAAM,GAEN,EAAS,EAEb,GACF","file":"/npm/node-rsync@1.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/node-rsync@1.0.3/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 * Execute Rsync command with options and flags\n *\n */\n\nmodule.exports = {\n  execute: function(params, callback, error) {\n    var exec = require('child_process').exec;\n    var cmd = 'rsync';\n\n    if(params.flags !== undefined) {\n      cmd += ' -' + params.flags;\n    }\n\n    if(params.options !== undefined) {\n      cmd += ' ' + params.options;\n    }\n\n    if(params.source !== undefined) {\n      cmd += ' ' + params.source;\n    }\n\n    if(params.destination !== undefined) {\n      cmd += ' ' + params.destination;\n    } else {\n      console.log('Err: You should provide destination option.');\n    }\n\n    exec(cmd, function(error, stdout, stderr) {\n      if(error !== null) {\n        error(error);\n      } else {\n        callback(stdout);\n      }\n    });\n  }\n};"]}