You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parttimejob/node_modules/ali-oss/dist/aliyun-oss-sdk.min.js

5 lines
665 KiB

1 month ago
// Aliyun OSS SDK for JavaScript v6.21.0
// Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved.
// License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE
(function(global){!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).OSS=e()}(function(){return function n(i,o,s){function a(t,e){if(!o[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=o[t]={exports:{}},i[t][0].call(r.exports,function(e){return a(i[t][1][e]||e)},r,r.exports,n,i,o,s)}return o[t].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,r){"use strict";var n=e("./browser/client");n.Buffer=e("buffer").Buffer,n.urllib=e("../shims/xhr"),n.version=e("./browser/version").version,t.exports=n},{"../shims/xhr":548,"./browser/client":3,"./browser/version":6,buffer:103}],2:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),d=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),h=(e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.slice.js"),e("assert")),i=e("../common/utils/checkBucketName").checkBucketName,n=r;function s(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function y(e){return e?s(e)?e:[e]:[]}n.useBucket=function(e){return i(e),this.options.bucket=e,this},n.setBucket=function(e){return i(e),this.options.bucket=e,this},n.getBucket=function(){return this.options.bucket},n.deleteBucket=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n,i;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("DELETE",t,"",r),e.next=3,this.request(n);case 3:if(200===(i=e.sent).status||204===i.status)return e.abrupt("return",{res:i.res});e.next=6;break;case 6:return e.next=8,this.requestError(i);case 8:throw e.sent;case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketACL=function(){var n=(0,o.default)(d.default.mark(function e(t,r,n){var i;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=this._bucketRequestParams("PUT",t,"acl",n)).headers={"x-oss-acl":r},i.successStatuses=[200],e.next=5,this.request(i);case 5:return i=e.sent,e.abrupt("return",{bucket:i.headers.location&&i.headers.location.substring(1)||null,res:i.res});case 7:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketACL=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"acl",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,e.abrupt("return",{acl:n.data.AccessControlList.Grant,owner:{id:n.data.Owner.ID,displayName:n.data.Owner.DisplayName},res:n.res});case 7:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketLogging=function(){var n=(0,o.default)(d.default.mark(function e(t,r,n){var i,o;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._bucketRequestParams("PUT",t,"logging",n),o='<?xml version="1.0" encoding="UTF-8"?>\n<BucketLoggingStatus>\n<LoggingEnabled>\n<TargetBucket>'.concat(t,"</TargetBucket>\n"),r&&(o+="<TargetPrefix>".concat(r,"</TargetPrefix>\n")),o+="</LoggingEnabled>\n</BucketLoggingStatus>",i.content=o,i.mime="xml",i.successStatuses=[200],e.next=9,this.request(i);case 9:return o=e.sent,e.abrupt("return",{res:o.res});case 11:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketLogging=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n,i;return d.default.wrap(function(e){for(;;)switch(e.pre