@feathersjs/koa 5.0.0-pre.31 → 5.0.0-pre.33
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/CHANGELOG.md +10 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +19 -17
- package/src/index.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-pre.33](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.32...v5.0.0-pre.33) (2022-11-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @feathersjs/koa
|
|
9
|
+
|
|
10
|
+
# [5.0.0-pre.32](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.31...v5.0.0-pre.32) (2022-10-26)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **transports:** Add remaining middleware for generated apps to Koa and Express ([#2796](https://github.com/feathersjs/feathers/issues/2796)) ([0d5781a](https://github.com/feathersjs/feathers/commit/0d5781a5c72a0cbb2ec8211bfa099f0aefe115a2))
|
|
15
|
+
|
|
6
16
|
# [5.0.0-pre.31](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.30...v5.0.0-pre.31) (2022-10-12)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import Koa from 'koa';
|
|
|
2
2
|
import { Application as FeathersApplication } from '@feathersjs/feathers';
|
|
3
3
|
import bodyParser from 'koa-bodyparser';
|
|
4
4
|
import cors from '@koa/cors';
|
|
5
|
+
import serveStatic from 'koa-static';
|
|
5
6
|
import { Application } from './declarations';
|
|
6
|
-
export { Koa, bodyParser, cors };
|
|
7
|
+
export { Koa, bodyParser, cors, serveStatic };
|
|
7
8
|
export * from './authentication';
|
|
8
9
|
export * from './declarations';
|
|
9
10
|
export * from './handlers';
|
package/lib/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.koa = exports.cors = exports.bodyParser = exports.Koa = void 0;
|
|
20
|
+
exports.koa = exports.serveStatic = exports.cors = exports.bodyParser = exports.Koa = void 0;
|
|
21
21
|
const koa_1 = __importDefault(require("koa"));
|
|
22
22
|
exports.Koa = koa_1.default;
|
|
23
23
|
const koa_qs_1 = __importDefault(require("koa-qs"));
|
|
@@ -27,6 +27,8 @@ const koa_bodyparser_1 = __importDefault(require("koa-bodyparser"));
|
|
|
27
27
|
exports.bodyParser = koa_bodyparser_1.default;
|
|
28
28
|
const cors_1 = __importDefault(require("@koa/cors"));
|
|
29
29
|
exports.cors = cors_1.default;
|
|
30
|
+
const koa_static_1 = __importDefault(require("koa-static"));
|
|
31
|
+
exports.serveStatic = koa_static_1.default;
|
|
30
32
|
__exportStar(require("./authentication"), exports);
|
|
31
33
|
__exportStar(require("./declarations"), exports);
|
|
32
34
|
__exportStar(require("./handlers"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8CAAqB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8CAAqB;AAWZ,cAXF,aAAG,CAWE;AAVZ,oDAA0B;AAE1B,qEAAuD;AACvD,iDAAiD;AACjD,oEAAuC;AAMzB,qBANP,wBAAU,CAMO;AALxB,qDAA4B;AAKF,eALnB,cAA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,CAAC,KAAK,GAAG,WAAW,CAAC,KAAY,CAAA;IACpC,GAAG,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAe,CAAA;IAE1C,GAAG,CAAC,SAAS,CAAC,IAAA,2BAAO,GAAS,CAAC,CAAA;IAC/B,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACpB,GAAG,CAAC,QAAQ,GAAG,EAAE,GAAG,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;QACpD,OAAO,IAAI,EAAE,CAAA;IACf,CAAC,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACZ,CAAC;AA7ED,kBA6EC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/koa",
|
|
3
3
|
"description": "Feathers KoaJS framework bindings and REST provider",
|
|
4
|
-
"version": "5.0.0-pre.
|
|
4
|
+
"version": "5.0.0-pre.33",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"types": "lib/",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/feathersjs/feathers/issues"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">= 14"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"CHANGELOG.md",
|
|
@@ -49,33 +49,35 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@feathersjs/authentication": "^5.0.0-pre.
|
|
53
|
-
"@feathersjs/commons": "^5.0.0-pre.
|
|
54
|
-
"@feathersjs/errors": "^5.0.0-pre.
|
|
55
|
-
"@feathersjs/transport-commons": "^5.0.0-pre.
|
|
56
|
-
"@koa/cors": "^
|
|
52
|
+
"@feathersjs/authentication": "^5.0.0-pre.33",
|
|
53
|
+
"@feathersjs/commons": "^5.0.0-pre.33",
|
|
54
|
+
"@feathersjs/errors": "^5.0.0-pre.33",
|
|
55
|
+
"@feathersjs/transport-commons": "^5.0.0-pre.33",
|
|
56
|
+
"@koa/cors": "^4.0.0",
|
|
57
57
|
"@types/koa": "^2.13.5",
|
|
58
|
-
"@types/koa-bodyparser": "^4.3.
|
|
58
|
+
"@types/koa-bodyparser": "^4.3.9",
|
|
59
59
|
"@types/koa-qs": "^2.0.0",
|
|
60
|
+
"@types/koa-static": "^4.0.2",
|
|
60
61
|
"@types/koa__cors": "^3.3.0",
|
|
61
62
|
"koa": "^2.13.4",
|
|
62
63
|
"koa-bodyparser": "^4.3.0",
|
|
63
64
|
"koa-compose": "^4.1.0",
|
|
64
|
-
"koa-qs": "^3.0.0"
|
|
65
|
+
"koa-qs": "^3.0.0",
|
|
66
|
+
"koa-static": "^5.0.0"
|
|
65
67
|
},
|
|
66
68
|
"devDependencies": {
|
|
67
|
-
"@feathersjs/authentication-local": "^5.0.0-pre.
|
|
68
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
69
|
-
"@feathersjs/memory": "^5.0.0-pre.
|
|
70
|
-
"@feathersjs/tests": "^5.0.0-pre.
|
|
69
|
+
"@feathersjs/authentication-local": "^5.0.0-pre.33",
|
|
70
|
+
"@feathersjs/feathers": "^5.0.0-pre.33",
|
|
71
|
+
"@feathersjs/memory": "^5.0.0-pre.33",
|
|
72
|
+
"@feathersjs/tests": "^5.0.0-pre.33",
|
|
71
73
|
"@types/koa-compose": "^3.2.5",
|
|
72
74
|
"@types/mocha": "^10.0.0",
|
|
73
|
-
"@types/node": "^18.
|
|
74
|
-
"axios": "^
|
|
75
|
-
"mocha": "^10.
|
|
75
|
+
"@types/node": "^18.11.9",
|
|
76
|
+
"axios": "^1.1.3",
|
|
77
|
+
"mocha": "^10.1.0",
|
|
76
78
|
"shx": "^0.3.4",
|
|
77
79
|
"ts-node": "^10.9.1",
|
|
78
80
|
"typescript": "^4.8.4"
|
|
79
81
|
},
|
|
80
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "89f516bcb1457e23a02c6212e9cd8bacc4d267d4"
|
|
81
83
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,10 +5,11 @@ import { routing } from '@feathersjs/transport-commons'
|
|
|
5
5
|
import { createDebug } from '@feathersjs/commons'
|
|
6
6
|
import bodyParser from 'koa-bodyparser'
|
|
7
7
|
import cors from '@koa/cors'
|
|
8
|
+
import serveStatic from 'koa-static'
|
|
8
9
|
|
|
9
10
|
import { Application } from './declarations'
|
|
10
11
|
|
|
11
|
-
export { Koa, bodyParser, cors }
|
|
12
|
+
export { Koa, bodyParser, cors, serveStatic }
|
|
12
13
|
export * from './authentication'
|
|
13
14
|
export * from './declarations'
|
|
14
15
|
export * from './handlers'
|