@arms/rum-bundler-plugin-core
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -496,3 +496,3 @@ (function (global, factory) { | ||
accessKeySecret: accessKeySecret, | ||
bucket: 'arms-rum-sourcemap-hz' | ||
bucket: getBucketByRegion(region) | ||
}); | ||
@@ -541,2 +541,12 @@ return { | ||
}; | ||
var getBucketByRegion = function getBucketByRegion(region) { | ||
switch (region) { | ||
case 'ap-southeast-1': | ||
return 'arms-rum-sourcemap-sg'; | ||
case 'us-west-1': | ||
return 'arms-rum-sourcemap-usw'; | ||
default: | ||
return 'arms-rum-sourcemap-hz'; | ||
} | ||
}; | ||
@@ -543,0 +553,0 @@ var generateUUID = function generateUUID() { |
import type { IAliyunOSSOptions, IContext, IUploader } from '../types'; | ||
export declare const createAliyunOSSUploader: (options: IAliyunOSSOptions, context: IContext) => IUploader; | ||
export declare const getBucketByRegion: (region: string) => "arms-rum-sourcemap-sg" | "arms-rum-sourcemap-usw" | "arms-rum-sourcemap-hz"; |
{ | ||
"name": "@arms/rum-bundler-plugin-core", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "rum bundler plugin core", | ||
@@ -5,0 +5,0 @@ "author": "ly403664 <ly403664@alibaba-inc.com>", |
43142
1053
13
7
9
1
13