How to use the cos-nodejs-sdk-v5/sdk/util.isBrowser function in cos-nodejs-sdk-v5

To help you get started, we’ve selected a few cos-nodejs-sdk-v5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github willnewii / qiniuClient / src / renderer / cos / tencent.js View on Github external
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',
};

cos-nodejs-sdk-v5

cos nodejs sdk v5

MIT
Latest version published 4 months ago

Package Health Score

70 / 100
Full package analysis