@feathersjs/koa 5.0.0-pre.27 → 5.0.0-pre.29
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 +22 -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 -16
- package/src/index.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add CORS support to oAuth, Express, Koa and generated application ([#2744](https://github.com/feathersjs/feathers/issues/2744)) ([fd218f2](https://github.com/feathersjs/feathers/commit/fd218f289f8ca4c101e9938e8683e2efef6e8131))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [5.0.0-pre.28](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.27...v5.0.0-pre.28) (2022-08-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [5.0.0-pre.27](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.26...v5.0.0-pre.27) (2022-07-13)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @feathersjs/koa
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import Koa from 'koa';
|
|
2
2
|
import { Application as FeathersApplication } from '@feathersjs/feathers';
|
|
3
3
|
import bodyParser from 'koa-bodyparser';
|
|
4
|
+
import cors from '@koa/cors';
|
|
4
5
|
import { Application } from './declarations';
|
|
5
|
-
export { Koa, bodyParser };
|
|
6
|
+
export { Koa, bodyParser, cors };
|
|
6
7
|
export * from './authentication';
|
|
7
8
|
export * from './declarations';
|
|
8
9
|
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.bodyParser = exports.Koa = void 0;
|
|
20
|
+
exports.koa = 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"));
|
|
@@ -25,6 +25,8 @@ const transport_commons_1 = require("@feathersjs/transport-commons");
|
|
|
25
25
|
const commons_1 = require("@feathersjs/commons");
|
|
26
26
|
const koa_bodyparser_1 = __importDefault(require("koa-bodyparser"));
|
|
27
27
|
exports.bodyParser = koa_bodyparser_1.default;
|
|
28
|
+
const cors_1 = __importDefault(require("@koa/cors"));
|
|
29
|
+
exports.cors = cors_1.default;
|
|
28
30
|
__exportStar(require("./authentication"), exports);
|
|
29
31
|
__exportStar(require("./declarations"), exports);
|
|
30
32
|
__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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AC,cAAc,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;SAC1C;IACH,CAAC,CAAC,CAAA;IAEF,IAAA,gBAAK,EAAC,GAAU,CAAC,CAAA;IAEjB,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;AAzED,kBAyEC"}
|
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.29",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"types": "lib/",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
40
|
"prepublish": "npm run compile",
|
|
41
|
-
"
|
|
41
|
+
"pack": "npm pack --pack-destination ../cli/test",
|
|
42
|
+
"compile": "shx rm -rf lib/ && tsc && npm run pack",
|
|
42
43
|
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
|
|
43
44
|
},
|
|
44
45
|
"directories": {
|
|
@@ -48,31 +49,33 @@
|
|
|
48
49
|
"access": "public"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@feathersjs/authentication": "^5.0.0-pre.
|
|
52
|
-
"@feathersjs/commons": "^5.0.0-pre.
|
|
53
|
-
"@feathersjs/errors": "^5.0.0-pre.
|
|
54
|
-
"@feathersjs/transport-commons": "^5.0.0-pre.
|
|
55
|
-
"@
|
|
56
|
-
"@types/koa
|
|
52
|
+
"@feathersjs/authentication": "^5.0.0-pre.29",
|
|
53
|
+
"@feathersjs/commons": "^5.0.0-pre.29",
|
|
54
|
+
"@feathersjs/errors": "^5.0.0-pre.29",
|
|
55
|
+
"@feathersjs/transport-commons": "^5.0.0-pre.29",
|
|
56
|
+
"@koa/cors": "^3.4.1",
|
|
57
|
+
"@types/koa": "^2.13.5",
|
|
58
|
+
"@types/koa-bodyparser": "^4.3.8",
|
|
57
59
|
"@types/koa-qs": "^2.0.0",
|
|
60
|
+
"@types/koa__cors": "^3.3.0",
|
|
58
61
|
"koa": "^2.13.4",
|
|
59
62
|
"koa-bodyparser": "^4.3.0",
|
|
60
63
|
"koa-compose": "^4.1.0",
|
|
61
64
|
"koa-qs": "^3.0.0"
|
|
62
65
|
},
|
|
63
66
|
"devDependencies": {
|
|
64
|
-
"@feathersjs/authentication-local": "^5.0.0-pre.
|
|
65
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
66
|
-
"@feathersjs/memory": "^5.0.0-pre.
|
|
67
|
-
"@feathersjs/tests": "^5.0.0-pre.
|
|
67
|
+
"@feathersjs/authentication-local": "^5.0.0-pre.29",
|
|
68
|
+
"@feathersjs/feathers": "^5.0.0-pre.29",
|
|
69
|
+
"@feathersjs/memory": "^5.0.0-pre.29",
|
|
70
|
+
"@feathersjs/tests": "^5.0.0-pre.29",
|
|
68
71
|
"@types/koa-compose": "^3.2.5",
|
|
69
72
|
"@types/mocha": "^9.1.1",
|
|
70
|
-
"@types/node": "^18.
|
|
73
|
+
"@types/node": "^18.7.17",
|
|
71
74
|
"axios": "^0.27.2",
|
|
72
75
|
"mocha": "^10.0.0",
|
|
73
76
|
"shx": "^0.3.4",
|
|
74
|
-
"ts-node": "^10.
|
|
75
|
-
"typescript": "^4.
|
|
77
|
+
"ts-node": "^10.9.1",
|
|
78
|
+
"typescript": "^4.8.3"
|
|
76
79
|
},
|
|
77
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "4314dc89a41a8bbaabf00b47697bf7887861d17d"
|
|
78
81
|
}
|
package/src/index.ts
CHANGED
|
@@ -4,9 +4,11 @@ import { Application as FeathersApplication } from '@feathersjs/feathers'
|
|
|
4
4
|
import { routing } from '@feathersjs/transport-commons'
|
|
5
5
|
import { createDebug } from '@feathersjs/commons'
|
|
6
6
|
import bodyParser from 'koa-bodyparser'
|
|
7
|
+
import cors from '@koa/cors'
|
|
8
|
+
|
|
7
9
|
import { Application } from './declarations'
|
|
8
10
|
|
|
9
|
-
export { Koa, bodyParser }
|
|
11
|
+
export { Koa, bodyParser, cors }
|
|
10
12
|
export * from './authentication'
|
|
11
13
|
export * from './declarations'
|
|
12
14
|
export * from './handlers'
|