@feathersjs/koa 5.0.0 → 5.0.3
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 +12 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +15 -16
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.3](https://github.com/feathersjs/feathers/compare/v5.0.2...v5.0.3) (2023-04-05)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **dependencies:** Update all dependencies ([#3139](https://github.com/feathersjs/feathers/issues/3139)) ([f24276e](https://github.com/feathersjs/feathers/commit/f24276e9a909e2e58a0730c730258ce1f70f4028))
|
|
11
|
+
|
|
12
|
+
## [5.0.1](https://github.com/feathersjs/feathers/compare/v5.0.0...v5.0.1) (2023-03-15)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **koa:** Replace koa-bodyparser with koa-body ([#3093](https://github.com/feathersjs/feathers/issues/3093)) ([2456bf8](https://github.com/feathersjs/feathers/commit/2456bf882c99ae2cddd1a39bffba7e61217fc055))
|
|
17
|
+
|
|
6
18
|
# [5.0.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.38...v5.0.0) (2023-02-24)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Koa from 'koa';
|
|
2
2
|
import { Application as FeathersApplication } from '@feathersjs/feathers';
|
|
3
|
-
import bodyParser from 'koa-
|
|
3
|
+
import { koaBody as bodyParser } from 'koa-body';
|
|
4
4
|
import cors from '@koa/cors';
|
|
5
5
|
import serveStatic from 'koa-static';
|
|
6
6
|
import { Application } from './declarations';
|
package/lib/index.js
CHANGED
|
@@ -23,8 +23,8 @@ exports.Koa = koa_1.default;
|
|
|
23
23
|
const koa_qs_1 = __importDefault(require("koa-qs"));
|
|
24
24
|
const transport_commons_1 = require("@feathersjs/transport-commons");
|
|
25
25
|
const commons_1 = require("@feathersjs/commons");
|
|
26
|
-
const
|
|
27
|
-
exports
|
|
26
|
+
const koa_body_1 = require("koa-body");
|
|
27
|
+
Object.defineProperty(exports, "bodyParser", { enumerable: true, get: function () { return koa_body_1.koaBody; } });
|
|
28
28
|
const cors_1 = __importDefault(require("@koa/cors"));
|
|
29
29
|
exports.cors = cors_1.default;
|
|
30
30
|
const koa_static_1 = __importDefault(require("koa-static"));
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,uCAAgD;AAMlC,2FANM,kBAAU,OAMN;AALxB,qDAA4B;AAKF,eALnB,cAAI,CAKmB;AAJ9B,4DAAoC;AAIJ,sBAJzB,oBAAW,CAIyB;AAC3C,mDAAgC;AAChC,iDAA8B;AAC9B,6CAA0B;AAC1B,yCAAsB;AAEtB,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,iBAAiB,CAAC,CAAA;AAE5C,SAAgB,GAAG,CACjB,WAAuC,EACvC,SAAc,IAAI,aAAG,EAAE;IAEvB,IAAI,CAAC,WAAW,EAAE;QAChB,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AY,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;AApFD,kBAoFC"}
|
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.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"types": "lib/",
|
|
@@ -49,35 +49,34 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@feathersjs/authentication": "^5.0.
|
|
53
|
-
"@feathersjs/commons": "^5.0.
|
|
54
|
-
"@feathersjs/errors": "^5.0.
|
|
55
|
-
"@feathersjs/feathers": "^5.0.
|
|
56
|
-
"@feathersjs/transport-commons": "^5.0.
|
|
52
|
+
"@feathersjs/authentication": "^5.0.3",
|
|
53
|
+
"@feathersjs/commons": "^5.0.3",
|
|
54
|
+
"@feathersjs/errors": "^5.0.3",
|
|
55
|
+
"@feathersjs/feathers": "^5.0.3",
|
|
56
|
+
"@feathersjs/transport-commons": "^5.0.3",
|
|
57
57
|
"@koa/cors": "^4.0.0",
|
|
58
|
-
"@types/koa": "^2.13.
|
|
59
|
-
"@types/koa-bodyparser": "^4.3.10",
|
|
58
|
+
"@types/koa": "^2.13.6",
|
|
60
59
|
"@types/koa-qs": "^2.0.0",
|
|
61
60
|
"@types/koa-static": "^4.0.2",
|
|
62
|
-
"@types/koa__cors": "^
|
|
61
|
+
"@types/koa__cors": "^4.0.0",
|
|
63
62
|
"koa": "^2.14.1",
|
|
64
|
-
"koa-
|
|
63
|
+
"koa-body": "^6.0.1",
|
|
65
64
|
"koa-compose": "^4.1.0",
|
|
66
65
|
"koa-qs": "^3.0.0",
|
|
67
66
|
"koa-static": "^5.0.0"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
|
-
"@feathersjs/authentication-local": "^5.0.
|
|
71
|
-
"@feathersjs/memory": "^5.0.
|
|
72
|
-
"@feathersjs/tests": "^5.0.
|
|
69
|
+
"@feathersjs/authentication-local": "^5.0.3",
|
|
70
|
+
"@feathersjs/memory": "^5.0.3",
|
|
71
|
+
"@feathersjs/tests": "^5.0.3",
|
|
73
72
|
"@types/koa-compose": "^3.2.5",
|
|
74
73
|
"@types/mocha": "^10.0.1",
|
|
75
|
-
"@types/node": "^18.
|
|
74
|
+
"@types/node": "^18.15.11",
|
|
76
75
|
"axios": "^1.3.4",
|
|
77
76
|
"mocha": "^10.2.0",
|
|
78
77
|
"shx": "^0.3.4",
|
|
79
78
|
"ts-node": "^10.9.1",
|
|
80
|
-
"typescript": "^
|
|
79
|
+
"typescript": "^5.0.3"
|
|
81
80
|
},
|
|
82
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "a6ba4dfd08f537a7d4778bed4c45091cbe3802aa"
|
|
83
82
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import koaQs from 'koa-qs'
|
|
|
3
3
|
import { Application as FeathersApplication } from '@feathersjs/feathers'
|
|
4
4
|
import { routing } from '@feathersjs/transport-commons'
|
|
5
5
|
import { createDebug } from '@feathersjs/commons'
|
|
6
|
-
import bodyParser from 'koa-
|
|
6
|
+
import { koaBody as bodyParser } from 'koa-body'
|
|
7
7
|
import cors from '@koa/cors'
|
|
8
8
|
import serveStatic from 'koa-static'
|
|
9
9
|
|