Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import cosUtil from 'cos-nodejs-sdk-v5/sdk/util';
cosUtil.isBrowser = false;
import tencent from 'cos-nodejs-sdk-v5';
import TencentBucket from "@/cos/tencentBucket";
import qiniu from "qiniu";
let cos = null;
//独立于各COS的配置
const PROTOCOL = 'http://';
const methods = {
//空间对应的域名列表(授权空间域名返回为空)
domains: 'https://api.qiniu.com/v6/domain/list',
//获取目录(是通过公共前缀模拟出的效果)
resources: 'https://rsf.qbox.me/list',
};