How to use the ali-oss/lib/client.initOptions function in ali-oss

To help you get started, we’ve selected a few ali-oss 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 / aliBucket.js View on Github external
this.cos.getBucketInfo(this.name).then((res) => {

            this.cos.options.region = res.bucket.Location;
            //未找到api获取状态
            this.cos.options.secure = false;
            delete this.cos.options.endpoint;
            this.cos.options = Client.initOptions(this.cos.options);

            this.setPermission(res.bucket.AccessControlList.Grant === 'private' ? 1 : 0);
            this.getResources();
        });
    }

ali-oss

aliyun oss(object storage service) node client

MIT
Latest version published 3 months ago

Package Health Score

82 / 100
Full package analysis