@golemio/fcd 1.1.0 → 1.1.2-dev.854656428
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.
|
@@ -10,14 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.floatingCarDataRouter = void 0;
|
|
13
|
-
const express_1 = require("@golemio/core/dist/shared/express");
|
|
14
|
-
const monitoring_1 = require("@golemio/core/dist/monitoring");
|
|
15
|
-
const helpers_1 = require("@golemio/core/dist/input-gateway/helpers");
|
|
16
13
|
const FloatingCarDataController_1 = require("./FloatingCarDataController");
|
|
14
|
+
const helpers_1 = require("@golemio/core/dist/input-gateway/helpers");
|
|
15
|
+
const express_1 = require("@golemio/core/dist/shared/express");
|
|
17
16
|
class FloatingCarDataRouter {
|
|
18
17
|
constructor() {
|
|
19
|
-
this.router = (0, express_1.Router)();
|
|
20
|
-
this.floatingCarDataController = new FloatingCarDataController_1.FloatingCarDataController();
|
|
21
18
|
this.initRoutes = () => {
|
|
22
19
|
this.router.post("/fcd-info", (0, helpers_1.checkContentTypeMiddleware)(["text/xml", "application/xml"]), this.floatingCarData);
|
|
23
20
|
};
|
|
@@ -30,13 +27,14 @@ class FloatingCarDataRouter {
|
|
|
30
27
|
req,
|
|
31
28
|
};
|
|
32
29
|
helpers_1.loggerEvents.emit(helpers_1.LoggerEventType.NumberOfRecords, metrics);
|
|
33
|
-
monitoring_1.metricsService.recordNumberOfRecords(req, numberOfRecords);
|
|
34
30
|
res.sendStatus(204);
|
|
35
31
|
}
|
|
36
32
|
catch (err) {
|
|
37
33
|
next(err);
|
|
38
34
|
}
|
|
39
35
|
});
|
|
36
|
+
this.router = (0, express_1.Router)();
|
|
37
|
+
this.floatingCarDataController = new FloatingCarDataController_1.FloatingCarDataController();
|
|
40
38
|
this.initRoutes();
|
|
41
39
|
}
|
|
42
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingCarDataRouter.js","sourceRoot":"","sources":["../../src/input-gateway/FloatingCarDataRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"FloatingCarDataRouter.js","sourceRoot":"","sources":["../../src/input-gateway/FloatingCarDataRouter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAA0E;AAE1E,sEAAqH;AACrH,+DAA4F;AAE5F,MAAM,qBAAqB;IAIvB;QAMQ,eAAU,GAAG,GAAS,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,IAAA,oCAA0B,EAAC,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QACrH,CAAC,CAAC;QAEM,oBAAe,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;YAC/F,IAAI;gBACA,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAE3D,MAAM,eAAe,GAAG,CACpB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,CAC5G,CAAC,MAAM,CAAC;gBAET,MAAM,OAAO,GAA6B;oBACtC,eAAe;oBACf,GAAG;iBACN,CAAC;gBACF,sBAAY,CAAC,IAAI,CAAC,yBAAe,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;gBAE5D,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACvB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAA,CAAC;QA3BE,IAAI,CAAC,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;QACvB,IAAI,CAAC,yBAAyB,GAAG,IAAI,qDAAyB,EAAE,CAAC;QACjE,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CAyBJ;AAED,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAC,MAAM,CAAC;AAExD,sDAAqB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/fcd",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-dev.854656428",
|
|
4
4
|
"description": "Golemio Floating Car Data Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
11
|
"pretest": "golemio mdb reset --postgres && golemio mdb up --postgres && golemio import-db-data --postgres",
|
|
12
|
-
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
|
|
12
|
+
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
13
13
|
"apidocs-test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' ts-node -r dotenv/config test/api-docs/index.ts",
|
|
14
14
|
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
15
15
|
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://gitlab.com/operator-ict/golemio/code/modules/fcd"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=18.0.0",
|
|
31
31
|
"npm": ">=8.0.0",
|
|
32
32
|
"yarn": "Use npm!"
|
|
33
33
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@commitlint/cli": "^11.0.0",
|
|
37
37
|
"@commitlint/config-conventional": "^11.0.0",
|
|
38
38
|
"@golemio/cli": "1.3.3",
|
|
39
|
-
"@golemio/core": "1.
|
|
39
|
+
"@golemio/core": "1.6.8-dev.852163235",
|
|
40
40
|
"@golemio/db-common": "1.0.2",
|
|
41
41
|
"@golemio/eslint-config": "1.1.0",
|
|
42
42
|
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/chai": "4.2.3",
|
|
45
45
|
"@types/chai-as-promised": "7.1.2",
|
|
46
46
|
"@types/mocha": "^8.2.0",
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^18.13.0",
|
|
48
48
|
"@types/sinon": "^9.0.10",
|
|
49
49
|
"@types/supertest": "^2.0.10",
|
|
50
50
|
"body-parser": "^1.19.0",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"typescript": "4.7.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@golemio/core": "
|
|
73
|
+
"@golemio/core": ">=1.5.0"
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|