{"version":3,"sources":["jsdelivr-header.js","/npm/uoss@1.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACCA,aACA,MAAM,GAAK,QAAQ,MACb,IAAM,QAAQ,WACd,KAAO,SAAU,GACrB,KAAK,SAAW,EAAO,UACvB,KAAK,YAAc,EAAO,cAC1B,KAAK,gBAAkB,EAAO,kBAC9B,KAAK,OAAS,EAAO,OACrB,KAAK,KAAO,EAAO,KACnB,KAAK,OAAS,IAAI,IAAI,CACpB,SAAU,KAAK,UACf,YAAa,KAAK,cAClB,gBAAiB,KAAK,kBACtB,OAAQ,KAAK,OACb,KAAM,KAAK,MAEf,EACA,KAAK,UAAU,OAAS,WACtB,MAAM,EAAS,KAAK,OACpB,IAAG,YACD,MAAM,QAAe,EAAO,KAAK,CAC/B,WAAY,IAEd,QAAQ,IAAI,EACd,IAAG,OAAM,SAAU,GACjB,QAAQ,IAAI,EACd,GACF,EACA,OAAO,QAAU","file":"/npm/uoss@1.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/uoss@1.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 * @Author: dctxf\n * @Date:   2017-05-15 16:17:24\n * @Last Modified by:   dctxf\n * @Last Modified time: 2017-05-16 16:52:19\n */\n\n'use strict';\nconst co = require('co');\nconst OSS = require('ali-oss');\nconst UOSS = function (config) {\n  this.endpoint = config.END_POINT;\n  this.accessKeyId = config.ACCESS_KEY_ID;\n  this.accessKeySecret = config.ACCESS_KEY_SECRET;\n  this.bucket = config.BUCKET;\n  this.path = config.path;\n  this.client = new OSS({\n    endpoint: this.END_POINT,\n    accessKeyId: this.ACCESS_KEY_ID,\n    accessKeySecret: this.ACCESS_KEY_SECRET,\n    bucket: this.BUCKET,\n    path: this.path\n  });\n};\nUOSS.prototype.upload = function () {\n  const client = this.client;\n  co(function* () {\n    const result = yield client.list({\n      'max-keys': 5\n    });\n    console.log(result);\n  }).catch(function (err) {\n    console.log(err);\n  });\n}\nmodule.exports = UOSS;\n\n"]}