@midwayjs/oss 3.0.13 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/dist/manager.js +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/manager.js
CHANGED
|
@@ -15,8 +15,8 @@ const OSS = require("ali-oss");
|
|
|
15
15
|
const assert = require("assert");
|
|
16
16
|
const core_1 = require("@midwayjs/core");
|
|
17
17
|
function checkBucketConfig(config) {
|
|
18
|
-
assert(config.endpoint || config.region, "[
|
|
19
|
-
assert(config.accessKeySecret && config.accessKeyId, "[
|
|
18
|
+
assert(config.endpoint || config.region, "[midway:oss] Must set `endpoint` or `region` in oss's config");
|
|
19
|
+
assert(config.accessKeySecret && config.accessKeyId, "[midway:oss] Must set `accessKeyId` and `accessKeySecret` in oss's config");
|
|
20
20
|
}
|
|
21
21
|
let OSSServiceFactory = class OSSServiceFactory extends core_1.ServiceFactory {
|
|
22
22
|
async init() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/oss",
|
|
3
3
|
"description": "midway oss component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.2",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.
|
|
13
|
+
"@midwayjs/core": "^3.1.2",
|
|
14
14
|
"@midwayjs/decorator": "^3.0.10",
|
|
15
|
-
"@midwayjs/mock": "^3.
|
|
15
|
+
"@midwayjs/mock": "^3.1.2",
|
|
16
16
|
"@types/ali-oss": "6.16.3",
|
|
17
17
|
"dotenv": "16.0.0"
|
|
18
18
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "git",
|
|
40
40
|
"url": "https://github.com/midwayjs/midway.git"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4ff3aa892b76d016f0ea123c7f9520d054d5c96b"
|
|
43
43
|
}
|