@midwayjs/oss 3.0.13 → 3.1.0

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.
Files changed (2) hide show
  1. package/dist/manager.js +2 -2
  2. package/package.json +4 -4
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, "[@midwayjs/oss] Must set `endpoint` or `region` in oss's config");
19
- assert(config.accessKeySecret && config.accessKeyId, "[@midwayjs/oss] Must set `accessKeyId` and `accessKeySecret` in oss's config");
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.0.13",
4
+ "version": "3.1.0",
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.0.13",
13
+ "@midwayjs/core": "^3.1.0",
14
14
  "@midwayjs/decorator": "^3.0.10",
15
- "@midwayjs/mock": "^3.0.13",
15
+ "@midwayjs/mock": "^3.1.0",
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": "8c8338f4488ec65765c342dd5238ed3e61872b37"
42
+ "gitHead": "2074c838e454a9673a044dbe065631dd9f944005"
43
43
  }