@midwayjs/static-file 4.0.0-beta.1 → 4.0.0-beta.10

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/README.md CHANGED
@@ -82,4 +82,4 @@ export const staticFile = {
82
82
 
83
83
  ## License
84
84
 
85
- [MIT]((https://github.com/midwayjs/midway/blob/master/LICENSE))
85
+ [MIT](https://github.com/midwayjs/midway/blob/master/LICENSE)
@@ -14,6 +14,7 @@ const core_1 = require("@midwayjs/core");
14
14
  const static_middleware_1 = require("./middleware/static.middleware");
15
15
  const DefaultConfig = require("./config/config.default");
16
16
  let StaticFileConfiguration = class StaticFileConfiguration {
17
+ applicationManager;
17
18
  async onConfigLoad() {
18
19
  if (this.applicationManager.getApplication('faas')) {
19
20
  return {
@@ -18,6 +18,10 @@ const range = require("koa-range");
18
18
  const error_1 = require("../error");
19
19
  const fs = require("fs");
20
20
  let StaticMiddleware = class StaticMiddleware {
21
+ staticFileConfig;
22
+ middlewareService;
23
+ environmentService;
24
+ logger;
21
25
  async resolve(app) {
22
26
  const dirs = Object.values(this.staticFileConfig.dirs);
23
27
  if (this.staticFileConfig.dir) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/static-file",
3
3
  "description": "midway static file component",
4
- "version": "4.0.0-beta.1",
4
+ "version": "4.0.0-beta.10",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -15,10 +15,10 @@
15
15
  "ylru": "1.4.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@midwayjs/core": "^4.0.0-beta.1",
19
- "@midwayjs/faas": "^4.0.0-beta.1",
20
- "@midwayjs/koa": "^4.0.0-beta.1",
21
- "@midwayjs/mock": "^4.0.0-beta.1"
18
+ "@midwayjs/core": "^4.0.0-beta.10",
19
+ "@midwayjs/faas": "^4.0.0-beta.10",
20
+ "@midwayjs/koa": "^4.0.0-beta.10",
21
+ "@midwayjs/mock": "^4.0.0-beta.10"
22
22
  },
23
23
  "keywords": [
24
24
  "midway",
@@ -35,11 +35,11 @@
35
35
  "ci": "npm run test"
36
36
  },
37
37
  "engines": {
38
- "node": ">=12"
38
+ "node": ">=20"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",
42
42
  "url": "https://github.com/midwayjs/midway.git"
43
43
  },
44
- "gitHead": "832961ec3aff123c033197d8c00cb2bc9bad7ff8"
44
+ "gitHead": "1b1856629913703f67304155aaf611ec936a81ac"
45
45
  }