@fastcar/koa 0.1.15 → 0.1.16
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/package.json
CHANGED
|
@@ -16,8 +16,8 @@ export default function KoaStatic(app: FastCarApplication): Koa.Middleware[] {
|
|
|
16
16
|
let koaConfig: KoaConfig = app.getSetting("koa");
|
|
17
17
|
|
|
18
18
|
if (!!koaConfig?.koaStatic) {
|
|
19
|
-
const KoaMount = require("koa-mount")
|
|
20
|
-
const koaStatic = require("koa-static")
|
|
19
|
+
const KoaMount = require("koa-mount");
|
|
20
|
+
const koaStatic = require("koa-static");
|
|
21
21
|
|
|
22
22
|
let keys = Object.keys(koaConfig?.koaStatic);
|
|
23
23
|
if (keys.length > 0) {
|
|
@@ -11,8 +11,8 @@ function KoaStatic(app) {
|
|
|
11
11
|
mlist.push(KoaRange);
|
|
12
12
|
let koaConfig = app.getSetting("koa");
|
|
13
13
|
if (!!koaConfig?.koaStatic) {
|
|
14
|
-
const KoaMount = require("koa-mount")
|
|
15
|
-
const koaStatic = require("koa-static")
|
|
14
|
+
const KoaMount = require("koa-mount");
|
|
15
|
+
const koaStatic = require("koa-static");
|
|
16
16
|
let keys = Object.keys(koaConfig?.koaStatic);
|
|
17
17
|
if (keys.length > 0) {
|
|
18
18
|
for (let key of keys) {
|