@loopback/rest 14.0.13 → 15.0.0
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/README.md
CHANGED
|
@@ -15,8 +15,8 @@ with:
|
|
|
15
15
|
- a default sequence implementation to manage the request and response lifecycle
|
|
16
16
|
|
|
17
17
|
**NOTE: Starting from 6.0.0, we have introduced a middleware-based sequence,
|
|
18
|
-
which is
|
|
19
|
-
|
|
18
|
+
which is used as the default one for newly generated LoopBack applications using
|
|
19
|
+
`lb4` command from `@loopback/cli`.**
|
|
20
20
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
@@ -43,6 +43,7 @@ let AjvFactoryProvider = class AjvFactoryProvider {
|
|
|
43
43
|
const ajvInst = new ajv_1.default(ajvOptions);
|
|
44
44
|
ajvInst.addKeyword('components');
|
|
45
45
|
ajvInst.addKeyword('x-typescript-type');
|
|
46
|
+
ajvInst.addKeyword('x-index-info');
|
|
46
47
|
(0, ajv_keywords_1.default)(ajvInst, validationOptions.ajvKeywords);
|
|
47
48
|
(0, ajv_errors_1.default)(ajvInst, validationOptions.ajvErrors);
|
|
48
49
|
if (this.keywords) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ajv-factory.provider.js","sourceRoot":"","sources":["../../src/validation/ajv-factory.provider.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,8BAA8B;AAC9B,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAMwB;AACxB,sDAA0B;AAC1B,oEAAmC;AACnC,sEAAqC;AACrC,wEAAuC;AACvC,0DAAgC;AAChC,kCAA+C;AAE/C,uDAAiD;AAEjD,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,mBAAmB,CAAC,CAAC;AAElC,QAAA,8BAA8B,GAAsB;IAC/D,KAAK,EAAE,IAAI;CACZ,CAAC;AAEF;;GAEG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAKU,UAA6B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AO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACzC,CAAC,CAAC,CAAC;aACJ;YAED,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC;IACJ,CAAC;CACF,CAAA;AA9DY,gDAAkB;AAUrB;IADP,IAAA,aAAM,EAAC,IAAA,kBAAW,EAAC,eAAQ,CAAC,WAAW,CAAC,CAAC;;oDACX;AAGvB;IADP,IAAA,aAAM,EAAC,IAAA,kBAAW,EAAC,eAAQ,CAAC,UAAU,CAAC,CAAC;;mDACZ;6BAblB,kBAAkB;IAD9B,IAAA,iBAAU,EAAC,EAAC,KAAK,EAAE,mBAAY,CAAC,SAAS,EAAC,CAAC;IAGvC,mBAAA,IAAA,aAAM,EACL,mBAAY,CAAC,2BAA2B,CAAC,YAAY,CAAC,YAAY,CAAC,EACnE,EAAC,QAAQ,EAAE,IAAI,EAAC,CACjB,CAAA;;GALQ,kBAAkB,CA8D9B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/rest",
|
|
3
3
|
"description": "Expose controllers as REST endpoints and route REST API requests to controller methods",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "15.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/rest"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": "
|
|
16
|
+
"node": "20 || 22 || 24"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"@loopback/core": "^6.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@loopback/express": "^
|
|
42
|
-
"@loopback/http-server": "^
|
|
43
|
-
"@loopback/openapi-v3": "^
|
|
41
|
+
"@loopback/express": "^8.0.0",
|
|
42
|
+
"@loopback/http-server": "^7.0.0",
|
|
43
|
+
"@loopback/openapi-v3": "^11.0.0",
|
|
44
44
|
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
|
|
45
|
-
"@types/body-parser": "^1.19.
|
|
46
|
-
"@types/cors": "^2.8.
|
|
47
|
-
"@types/express": "^4.17.
|
|
45
|
+
"@types/body-parser": "^1.19.6",
|
|
46
|
+
"@types/cors": "^2.8.19",
|
|
47
|
+
"@types/express": "^4.17.23",
|
|
48
48
|
"@types/express-serve-static-core": "^4.17.37",
|
|
49
|
-
"@types/http-errors": "^2.0.
|
|
50
|
-
"@types/on-finished": "^2.3.
|
|
51
|
-
"@types/serve-static": "1.15.
|
|
49
|
+
"@types/http-errors": "^2.0.5",
|
|
50
|
+
"@types/on-finished": "^2.3.5",
|
|
51
|
+
"@types/serve-static": "1.15.8",
|
|
52
52
|
"@types/type-is": "^1.6.7",
|
|
53
53
|
"ajv": "^8.17.1",
|
|
54
54
|
"ajv-errors": "^3.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"ajv-keywords": "^5.1.0",
|
|
57
57
|
"body-parser": "^2.2.0",
|
|
58
58
|
"cors": "^2.8.5",
|
|
59
|
-
"debug": "^4.4.
|
|
59
|
+
"debug": "^4.4.1",
|
|
60
60
|
"express": "^4.21.2",
|
|
61
61
|
"http-errors": "^2.0.0",
|
|
62
62
|
"js-yaml": "^4.1.0",
|
|
@@ -65,27 +65,27 @@
|
|
|
65
65
|
"on-finished": "^2.4.1",
|
|
66
66
|
"path-to-regexp": "^6.3.0",
|
|
67
67
|
"qs": "^6.14.0",
|
|
68
|
-
"strong-error-handler": "^5.0.
|
|
68
|
+
"strong-error-handler": "^5.0.20",
|
|
69
69
|
"tslib": "^2.8.1",
|
|
70
70
|
"type-is": "^2.0.1",
|
|
71
|
-
"validator": "^13.15.
|
|
71
|
+
"validator": "^13.15.15"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@loopback/build": "^
|
|
75
|
-
"@loopback/core": "^
|
|
76
|
-
"@loopback/eslint-config": "^
|
|
77
|
-
"@loopback/openapi-spec-builder": "^
|
|
78
|
-
"@loopback/repository": "^
|
|
79
|
-
"@loopback/testlab": "^
|
|
74
|
+
"@loopback/build": "^12.0.0",
|
|
75
|
+
"@loopback/core": "^7.0.0",
|
|
76
|
+
"@loopback/eslint-config": "^16.0.0",
|
|
77
|
+
"@loopback/openapi-spec-builder": "^8.0.0",
|
|
78
|
+
"@loopback/repository": "^8.0.0",
|
|
79
|
+
"@loopback/testlab": "^8.0.0",
|
|
80
80
|
"@types/debug": "^4.1.12",
|
|
81
81
|
"@types/js-yaml": "^4.0.9",
|
|
82
82
|
"@types/json-schema-compare": "^0.2.4",
|
|
83
|
-
"@types/lodash": "^4.17.
|
|
84
|
-
"@types/multer": "^1.4.
|
|
83
|
+
"@types/lodash": "^4.17.17",
|
|
84
|
+
"@types/multer": "^1.4.13",
|
|
85
85
|
"@types/node": "^16.18.126",
|
|
86
|
-
"@types/on-finished": "^2.3.
|
|
87
|
-
"@types/qs": "^6.
|
|
88
|
-
"multer": "^
|
|
86
|
+
"@types/on-finished": "^2.3.5",
|
|
87
|
+
"@types/qs": "^6.14.0",
|
|
88
|
+
"multer": "^2.0.1"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "be9e7324fca771c50502bdbd312821be8f94347e"
|
|
91
91
|
}
|
|
@@ -63,6 +63,7 @@ export class AjvFactoryProvider implements Provider<AjvFactory> {
|
|
|
63
63
|
const ajvInst = new AjvCtor(ajvOptions);
|
|
64
64
|
ajvInst.addKeyword('components');
|
|
65
65
|
ajvInst.addKeyword('x-typescript-type');
|
|
66
|
+
ajvInst.addKeyword('x-index-info');
|
|
66
67
|
|
|
67
68
|
ajvKeywords(ajvInst, validationOptions.ajvKeywords);
|
|
68
69
|
|