@donmahallem/turbo-pb 0.3.21 → 0.4.2
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/cjs/{index.js → format-response.cjs} +26 -28
- package/dist/cjs/format-response.cjs.map +1 -0
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/esm/{index.js → format-response.mjs} +26 -28
- package/dist/esm/format-response.mjs.map +1 -0
- package/dist/esm/index.mjs +2 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/types/format-response.d.ts +17 -18
- package/dist/types/index.d.ts +4 -5
- package/package.json +63 -64
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/types/format-response.d.ts.map +0 -1
- package/dist/types/format-response.spec.d.ts +0 -5
- package/dist/types/format-response.spec.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.spec.d.ts +0 -5
- package/dist/types/index.spec.d.ts.map +0 -1
|
@@ -4,34 +4,32 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const turbo = require('@donmahallem/turbo');
|
|
6
6
|
|
|
7
|
-
/*!
|
|
8
|
-
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Formats response to either json or protobuf
|
|
12
|
-
* @param msg message to be formated
|
|
13
|
-
* @param message Message to convert
|
|
14
|
-
* @param res express Response object
|
|
15
|
-
* @param next express Next function
|
|
16
|
-
*/
|
|
17
|
-
const formatResponse = (msg, message, res, next) => {
|
|
18
|
-
res.format({
|
|
19
|
-
'application/json': () => {
|
|
20
|
-
res.json(msg);
|
|
21
|
-
},
|
|
22
|
-
'application/x-protobuf': () => {
|
|
23
|
-
const encodedMessage = message.encode(msg).finish();
|
|
24
|
-
res
|
|
25
|
-
.type('application/x-protobuf')
|
|
26
|
-
.send(encodedMessage);
|
|
27
|
-
},
|
|
28
|
-
default: () => {
|
|
29
|
-
next(new turbo.RequestError('Not Acceptable', 406));
|
|
30
|
-
},
|
|
31
|
-
});
|
|
7
|
+
/*!
|
|
8
|
+
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Formats response to either json or protobuf
|
|
12
|
+
* @param msg message to be formated
|
|
13
|
+
* @param message Message to convert
|
|
14
|
+
* @param res express Response object
|
|
15
|
+
* @param next express Next function
|
|
16
|
+
*/
|
|
17
|
+
const formatResponse = (msg, message, res, next) => {
|
|
18
|
+
res.format({
|
|
19
|
+
'application/json': () => {
|
|
20
|
+
res.json(msg);
|
|
21
|
+
},
|
|
22
|
+
'application/x-protobuf': () => {
|
|
23
|
+
const encodedMessage = message.encode(msg).finish();
|
|
24
|
+
res
|
|
25
|
+
.type('application/x-protobuf')
|
|
26
|
+
.send(encodedMessage);
|
|
27
|
+
},
|
|
28
|
+
default: () => {
|
|
29
|
+
next(new turbo.RequestError('Not Acceptable', 406));
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
exports.formatResponse = formatResponse;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
35
|
+
//# sourceMappingURL=format-response.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-response.cjs","sources":["../../src/format-response.ts"],"sourcesContent":[null],"names":["RequestError"],"mappings":";;;;;;AAAA;;AAEG;AASH;;;;;;AAMG;AACI,MAAM,cAAc,GAAG,CAAmB,GAAM,EAAE,OAAsB,EAAE,GAAa,EAAE,IAAkB,KAAU;IACxH,GAAG,CAAC,MAAM,CAAC;QACP,kBAAkB,EAAE,MAAW;AAC3B,YAAA,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjB;QACD,wBAAwB,EAAE,MAAW;YACjC,MAAM,cAAc,GAAe,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;YAChE,GAAG;iBACE,IAAI,CAAC,wBAAwB,CAAC;iBAC9B,IAAI,CAAC,cAAc,CAAC,CAAC;SAC7B;QACD,OAAO,EAAE,MAAW;YAChB,IAAI,CAAC,IAAIA,kBAAY,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAC;SACjD;AACJ,KAAA,CAAC,CAAC;AACP;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import { RequestError } from '@donmahallem/turbo';
|
|
2
2
|
|
|
3
|
-
/*!
|
|
4
|
-
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Formats response to either json or protobuf
|
|
8
|
-
* @param msg message to be formated
|
|
9
|
-
* @param message Message to convert
|
|
10
|
-
* @param res express Response object
|
|
11
|
-
* @param next express Next function
|
|
12
|
-
*/
|
|
13
|
-
const formatResponse = (msg, message, res, next) => {
|
|
14
|
-
res.format({
|
|
15
|
-
'application/json': () => {
|
|
16
|
-
res.json(msg);
|
|
17
|
-
},
|
|
18
|
-
'application/x-protobuf': () => {
|
|
19
|
-
const encodedMessage = message.encode(msg).finish();
|
|
20
|
-
res
|
|
21
|
-
.type('application/x-protobuf')
|
|
22
|
-
.send(encodedMessage);
|
|
23
|
-
},
|
|
24
|
-
default: () => {
|
|
25
|
-
next(new RequestError('Not Acceptable', 406));
|
|
26
|
-
},
|
|
27
|
-
});
|
|
3
|
+
/*!
|
|
4
|
+
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Formats response to either json or protobuf
|
|
8
|
+
* @param msg message to be formated
|
|
9
|
+
* @param message Message to convert
|
|
10
|
+
* @param res express Response object
|
|
11
|
+
* @param next express Next function
|
|
12
|
+
*/
|
|
13
|
+
const formatResponse = (msg, message, res, next) => {
|
|
14
|
+
res.format({
|
|
15
|
+
'application/json': () => {
|
|
16
|
+
res.json(msg);
|
|
17
|
+
},
|
|
18
|
+
'application/x-protobuf': () => {
|
|
19
|
+
const encodedMessage = message.encode(msg).finish();
|
|
20
|
+
res
|
|
21
|
+
.type('application/x-protobuf')
|
|
22
|
+
.send(encodedMessage);
|
|
23
|
+
},
|
|
24
|
+
default: () => {
|
|
25
|
+
next(new RequestError('Not Acceptable', 406));
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export { formatResponse };
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
31
|
+
//# sourceMappingURL=format-response.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-response.mjs","sources":["../../src/format-response.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;AAEG;AASH;;;;;;AAMG;AACI,MAAM,cAAc,GAAG,CAAmB,GAAM,EAAE,OAAsB,EAAE,GAAa,EAAE,IAAkB,KAAU;IACxH,GAAG,CAAC,MAAM,CAAC;QACP,kBAAkB,EAAE,MAAW;AAC3B,YAAA,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACjB;QACD,wBAAwB,EAAE,MAAW;YACjC,MAAM,cAAc,GAAe,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;YAChE,GAAG;iBACE,IAAI,CAAC,wBAAwB,CAAC;iBAC9B,IAAI,CAAC,cAAc,CAAC,CAAC;SAC7B;QACD,OAAO,EAAE,MAAW;YAChB,IAAI,CAAC,IAAI,YAAY,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAC;SACjD;AACJ,KAAA,CAAC,CAAC;AACP;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
3
|
-
*/
|
|
4
|
-
import { NextFunction, Response } from 'express';
|
|
5
|
-
import { Message, Type, Writer } from 'protobufjs';
|
|
6
|
-
declare type MessageKey<T extends object> = ({
|
|
7
|
-
encode: (msg: T) => Writer;
|
|
8
|
-
} & typeof Message) | Type;
|
|
9
|
-
/**
|
|
10
|
-
* Formats response to either json or protobuf
|
|
11
|
-
* @param msg message to be formated
|
|
12
|
-
* @param message Message to convert
|
|
13
|
-
* @param res express Response object
|
|
14
|
-
* @param next express Next function
|
|
15
|
-
*/
|
|
16
|
-
export declare const formatResponse: <T extends object>(msg: T, message: MessageKey<T>, res: Response, next: NextFunction) => void;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=format-response.d.ts.map
|
|
1
|
+
/*!
|
|
2
|
+
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
3
|
+
*/
|
|
4
|
+
import { NextFunction, Response } from 'express';
|
|
5
|
+
import { Message, Type, Writer } from 'protobufjs';
|
|
6
|
+
declare type MessageKey<T extends object> = ({
|
|
7
|
+
encode: (msg: T) => Writer;
|
|
8
|
+
} & typeof Message) | Type;
|
|
9
|
+
/**
|
|
10
|
+
* Formats response to either json or protobuf
|
|
11
|
+
* @param msg message to be formated
|
|
12
|
+
* @param message Message to convert
|
|
13
|
+
* @param res express Response object
|
|
14
|
+
* @param next express Next function
|
|
15
|
+
*/
|
|
16
|
+
export declare const formatResponse: <T extends object>(msg: T, message: MessageKey<T>, res: Response, next: NextFunction) => void;
|
|
17
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
3
|
-
*/
|
|
4
|
-
export { formatResponse } from './format-response';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
/*!
|
|
2
|
+
* Source https://github.com/donmahallem/js-libs Package: turbo-pb
|
|
3
|
+
*/
|
|
4
|
+
export { formatResponse } from './format-response';
|
package/package.json
CHANGED
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"gitHead": "7197bb601e1c5f18087dd6f53f16dcb5cb8ba476"
|
|
2
|
+
"name": "@donmahallem/turbo-pb",
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"description": "Protobuf Helpers for express.js",
|
|
5
|
+
"main": "./dist/cjs/index.cjs",
|
|
6
|
+
"types": "./dist/types/index.d.ts",
|
|
7
|
+
"module": "./dist/esm/index.mjs",
|
|
8
|
+
"private": false,
|
|
9
|
+
"keywords": [
|
|
10
|
+
"express",
|
|
11
|
+
"helpers"
|
|
12
|
+
],
|
|
13
|
+
"typedocMain": "./src/index.ts",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "rollup -c rollup.config.js",
|
|
16
|
+
"build:readme": "npx @appnest/readme generate --input ../package_readme_blueprint.md --config readme_config.json",
|
|
17
|
+
"test": "mocha --config ../../.mocharc.json",
|
|
18
|
+
"test:coverage": "c8 --config ../../.nycrc.json npm run test",
|
|
19
|
+
"lint": "tslint -c tslint.json -p tsconfig.json src/**/*.ts",
|
|
20
|
+
"lint:fix": "tslint --fix -c tslint.json -p tsconfig.json src/**/*.ts",
|
|
21
|
+
"prepublishOnly": "npm run test && npm run build",
|
|
22
|
+
"version": "npm run build:readme && git add README.md"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://donmahallem.github.io/js-libs/",
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "donmahallem",
|
|
27
|
+
"email": "donmahallem@users.noreply.github.com",
|
|
28
|
+
"url": "https://github.com/donmahallem"
|
|
29
|
+
},
|
|
30
|
+
"license": "Apache-2.0",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/donmahallem/js-libs/issues"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/donmahallem/js-libs.git"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=14"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist/*",
|
|
43
|
+
"src/*",
|
|
44
|
+
"!src/**/*.spec.ts"
|
|
45
|
+
],
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/express": "4.17.13",
|
|
51
|
+
"@types/supertest": "2.0.12",
|
|
52
|
+
"express": "4.18.1",
|
|
53
|
+
"protobufjs": "6.11.3",
|
|
54
|
+
"supertest": "6.2.3"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"axios": "^0.27.0",
|
|
58
|
+
"express": "^4.17.1",
|
|
59
|
+
"protobufjs": "^6.10.2"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@donmahallem/turbo": "^2.4.1"
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "121045047e321079c0209efd36607c96a444aaeb"
|
|
66
65
|
}
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/format-response.ts"],"sourcesContent":[null],"names":["RequestError"],"mappings":";;;;;;AAAA,CAAA,CAAA,CAAA;;AAEG,CAAA,CAAA,CAAA;AASH,CAAA,CAAA,CAAA;;;;;;AAMG,CAAA,CAAA,CAAA;AACI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAG,CAAA,CAAA,CAAmB,CAAM,CAAA,CAAA,CAAA,CAAE,OAAsB,CAAE,CAAA,CAAA,CAAA,CAAa,CAAE,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA;CACxH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA;CACP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,EAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,C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|
-
{"version":3,"file":"format-response.spec.d.ts","sourceRoot":"","sources":["../../src/format-response.spec.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../src/index.spec.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,OAAO,CAAC"}
|