@feathersjs/koa 5.0.0-pre.28 → 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 +11 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +15 -13
- package/src/index.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
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)
|
|
7
18
|
|
|
8
19
|
|
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":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8CAAqB;AAUZ,cAVF,aAAG,CAUE;AATZ,oDAA0B;AAE1B,qEAAuD;AACvD,iDAAiD;AACjD,oEAAuC;AAKzB,qBALP,wBAAU,CAKO;AAJxB,qDAA4B;AAIF,eAJnB,cAAI,CAImB;AAC9B,mDAAgC;AAChC,iDAA8B;AAC9B,6CAA0B;AAC1B,yCAAsB;AAEtB,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,iBAAiB,CAAC,CAAA;AAE5C,SAAgB,GAAG,CACjB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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/",
|
|
@@ -49,31 +49,33 @@
|
|
|
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.
|
|
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",
|
|
56
57
|
"@types/koa": "^2.13.5",
|
|
57
|
-
"@types/koa-bodyparser": "^4.3.
|
|
58
|
+
"@types/koa-bodyparser": "^4.3.8",
|
|
58
59
|
"@types/koa-qs": "^2.0.0",
|
|
60
|
+
"@types/koa__cors": "^3.3.0",
|
|
59
61
|
"koa": "^2.13.4",
|
|
60
62
|
"koa-bodyparser": "^4.3.0",
|
|
61
63
|
"koa-compose": "^4.1.0",
|
|
62
64
|
"koa-qs": "^3.0.0"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
|
-
"@feathersjs/authentication-local": "^5.0.0-pre.
|
|
66
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
67
|
-
"@feathersjs/memory": "^5.0.0-pre.
|
|
68
|
-
"@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",
|
|
69
71
|
"@types/koa-compose": "^3.2.5",
|
|
70
72
|
"@types/mocha": "^9.1.1",
|
|
71
|
-
"@types/node": "^18.
|
|
73
|
+
"@types/node": "^18.7.17",
|
|
72
74
|
"axios": "^0.27.2",
|
|
73
75
|
"mocha": "^10.0.0",
|
|
74
76
|
"shx": "^0.3.4",
|
|
75
77
|
"ts-node": "^10.9.1",
|
|
76
|
-
"typescript": "^4.
|
|
78
|
+
"typescript": "^4.8.3"
|
|
77
79
|
},
|
|
78
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "4314dc89a41a8bbaabf00b47697bf7887861d17d"
|
|
79
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'
|