@loopback/rest-msgpack 0.10.2 → 0.10.4
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/dist/bodyparser.js +2 -1
- package/dist/bodyparser.js.map +1 -1
- package/dist/component.js +2 -1
- package/dist/component.js.map +1 -1
- package/package.json +11 -11
package/dist/bodyparser.js
CHANGED
|
@@ -10,7 +10,7 @@ const core_1 = require("@loopback/core");
|
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
11
|
const msgpack5_1 = tslib_1.__importDefault(require("msgpack5"));
|
|
12
12
|
const type_is_1 = require("type-is");
|
|
13
|
-
let MsgPackBodyParser =
|
|
13
|
+
let MsgPackBodyParser = class MsgPackBodyParser extends rest_1.RawBodyParser {
|
|
14
14
|
constructor(options = {}) {
|
|
15
15
|
super(options);
|
|
16
16
|
this.name = Symbol('msgpack');
|
|
@@ -27,6 +27,7 @@ let MsgPackBodyParser = exports.MsgPackBodyParser = class MsgPackBodyParser exte
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
+
exports.MsgPackBodyParser = MsgPackBodyParser;
|
|
30
31
|
exports.MsgPackBodyParser = MsgPackBodyParser = tslib_1.__decorate([
|
|
31
32
|
tslib_1.__param(0, (0, core_1.inject)(rest_1.RestBindings.REQUEST_BODY_PARSER_OPTIONS, { optional: true })),
|
|
32
33
|
tslib_1.__metadata("design:paramtypes", [Object])
|
package/dist/bodyparser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyparser.js","sourceRoot":"","sources":["../src/bodyparser.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,sCAAsC;AACtC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,yCAMwB;AACxB,gEAA+B;AAC/B,qCAA2B;AAE3B,IAAa,iBAAiB
|
|
1
|
+
{"version":3,"file":"bodyparser.js","sourceRoot":"","sources":["../src/bodyparser.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,sCAAsC;AACtC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,yCAMwB;AACxB,gEAA+B;AAC/B,qCAA2B;AAE3B,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,oBAAa;IAIlD,YAEE,UAAoC,EAAE;QAEtC,KAAK,CAAC,OAAO,CAAC,CAAC;QAPjB,SAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QACjB,aAAQ,GAAG,IAAA,kBAAO,GAAE,CAAC;IAO7B,CAAC;IAED,QAAQ,CAAC,SAAiB;QACxB,OAAO,CAAC,CAAC,IAAA,YAAE,EACT,SAAS,EACT,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,OAAgB;QAC1B,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEhD,OAAO;YACL,KAAK,EAAE,IAAI;SACZ,CAAC;IACJ,CAAC;CACF,CAAA;AA5BY,8CAAiB;4BAAjB,iBAAiB;IAKzB,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,2BAA2B,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;;GAL1D,iBAAiB,CA4B7B"}
|
package/dist/component.js
CHANGED
|
@@ -9,7 +9,7 @@ const tslib_1 = require("tslib");
|
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
11
|
const _1 = require(".");
|
|
12
|
-
let MsgPackBodyParserComponent =
|
|
12
|
+
let MsgPackBodyParserComponent = class MsgPackBodyParserComponent {
|
|
13
13
|
constructor(rawBodyParser) {
|
|
14
14
|
this.bindings = [
|
|
15
15
|
(0, rest_1.createBodyParserBinding)(_1.MsgPackBodyParser, _1.MsgPackBodyParserBindings.BODY_PARSER),
|
|
@@ -18,6 +18,7 @@ let MsgPackBodyParserComponent = exports.MsgPackBodyParserComponent = class MsgP
|
|
|
18
18
|
throw new Error('MessagePack body parser requires raw body parser.');
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
exports.MsgPackBodyParserComponent = MsgPackBodyParserComponent;
|
|
21
22
|
exports.MsgPackBodyParserComponent = MsgPackBodyParserComponent = tslib_1.__decorate([
|
|
22
23
|
tslib_1.__param(0, (0, core_1.inject)(rest_1.RestBindings.REQUEST_BODY_PARSER_RAW, { optional: true })),
|
|
23
24
|
tslib_1.__metadata("design:paramtypes", [rest_1.RawBodyParser])
|
package/dist/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,sCAAsC;AACtC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA0D;AAC1D,yCAIwB;AACxB,wBAA+D;AAE/D,IAAa,0BAA0B,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,sCAAsC;AACtC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA0D;AAC1D,yCAIwB;AACxB,wBAA+D;AAE/D,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAQrC,YAEE,aAA6B;QAT/B,aAAQ,GAAc;YACpB,IAAA,8BAAuB,EACrB,oBAAiB,EACjB,4BAAyB,CAAC,WAAW,CACtC;SACF,CAAC;QAMA,IAAI,CAAC,aAAa;YAChB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACzE,CAAC;CACF,CAAA;AAfY,gEAA0B;qCAA1B,0BAA0B;IASlC,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,uBAAuB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;6CAC/C,oBAAa;GAVpB,0BAA0B,CAetC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/rest-msgpack",
|
|
3
3
|
"description": "Body parser to handle MessagePack requests in LoopBack 4.",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"msgpack5": "^6.0.2",
|
|
40
|
-
"tslib": "^2.6.
|
|
40
|
+
"tslib": "^2.6.2",
|
|
41
41
|
"type-is": "^1.6.18"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@loopback/build": "^10.1.
|
|
45
|
-
"@loopback/core": "^5.1.
|
|
46
|
-
"@loopback/rest": "^13.1.
|
|
47
|
-
"@loopback/testlab": "^6.1.
|
|
48
|
-
"@types/msgpack5": "^3.4.
|
|
49
|
-
"@types/node": "^16.18.
|
|
50
|
-
"@types/type-is": "^1.6.
|
|
51
|
-
"typescript": "~5.
|
|
44
|
+
"@loopback/build": "^10.1.4",
|
|
45
|
+
"@loopback/core": "^5.1.4",
|
|
46
|
+
"@loopback/rest": "^13.1.4",
|
|
47
|
+
"@loopback/testlab": "^6.1.4",
|
|
48
|
+
"@types/msgpack5": "^3.4.6",
|
|
49
|
+
"@types/node": "^16.18.68",
|
|
50
|
+
"@types/type-is": "^1.6.6",
|
|
51
|
+
"typescript": "~5.2.2"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5326aa3ae03bd01b970917f96d0403dd5102aef1"
|
|
54
54
|
}
|