You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-cli-plugin-ali-oss

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli-plugin-ali-oss - npm Package Compare versions

Comparing version

to
1.0.2

packages/getPrefix.js

2

package.json
{
"name": "vue-cli-plugin-ali-oss",
"version": "1.0.1",
"version": "1.0.2",
"private": false,

@@ -5,0 +5,0 @@ "description": "upload ali oss for webpack or vue",

@@ -8,3 +8,3 @@ /*

* @LastEditors: lax
* @LastEditTime: 2021-01-03 17:53:26
* @LastEditTime: 2021-01-03 18:59:39
*/

@@ -136,16 +136,2 @@ const path = require("path");

}
function getPrefix(op, pro) {
const http = "http" + (op.secure && op.secure == false ? "" : "s") + "://";
const bucket = op.bucket;
const region = op.region ? op.region : "oss-cn-hangzhou";
const prefix = op.prefix && op.prefix !== "" ? op.prefix + "/" : "";
const proName = op.projectName ? pro : "";
const diy = http + bucket + "." + region + ".aliyuncs.com/";
const path = op.endpoint ? op.endpoint : diy;
const fullPath = path + prefix + proName;
return fullPath;
}
AliOss.getPrefix = getPrefix;
module.exports = AliOss;