@magaya/hyperion-express-middleware 14.30.0-blue.0 → 14.30.2-blue-beta.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/index.js +9 -0
- package/package.json +38 -37
package/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
const tracer = require('dd-trace').init({
|
|
2
|
+
// Optional configuration can go here
|
|
3
|
+
service: 'hyperion-express-middleware'
|
|
4
|
+
});
|
|
1
5
|
const debug = require('debug')('hyperion-express-module');
|
|
2
6
|
const hyperion = require('@magaya/hyperion-node'); debug('Loaded hyperion...');
|
|
3
7
|
|
|
@@ -47,6 +51,11 @@ const middleware = function (args, api) {
|
|
|
47
51
|
throw new Error(`there is no connection to the database`);
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
const span = tracer.scope().active();
|
|
55
|
+
if (span) {
|
|
56
|
+
span.setTag('operation', 'hyperion-express-middleware');
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
request.dbx = database.dbx;
|
|
51
60
|
request.dbw = database.dbw;
|
|
52
61
|
request.algorithm = database.algorithm;
|
package/package.json
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@magaya/hyperion-express-middleware",
|
|
3
|
-
"version": "14.30.
|
|
4
|
-
"description": "An express middleware for hyperion.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "jasmine",
|
|
8
|
-
"postversion": "git push && git push --tags && npm publish --tag blue"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"index.js"
|
|
12
|
-
],
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/magaya-dev/hyperion-express-middleware.git"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"hyperion",
|
|
19
|
-
"magaya",
|
|
20
|
-
"express"
|
|
21
|
-
],
|
|
22
|
-
"author": "Magaya Corporation",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://github.com/magaya-dev/hyperion-express-middleware.git/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/magaya-dev/hyperion-express-middleware.git#readme",
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@magaya/hyperion-node": "14.30.
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@magaya/hyperion-express-middleware",
|
|
3
|
+
"version": "14.30.2-blue-beta.0",
|
|
4
|
+
"description": "An express middleware for hyperion.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "jasmine",
|
|
8
|
+
"postversion": "git push && git push --tags && npm publish --tag blue-beta"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/magaya-dev/hyperion-express-middleware.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"hyperion",
|
|
19
|
+
"magaya",
|
|
20
|
+
"express"
|
|
21
|
+
],
|
|
22
|
+
"author": "Magaya Corporation",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/magaya-dev/hyperion-express-middleware.git/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/magaya-dev/hyperion-express-middleware.git#readme",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@magaya/hyperion-node": "14.30.2-blue-beta.0",
|
|
30
|
+
"dd-trace": "^4.16.0",
|
|
31
|
+
"debug": "^3.1.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"express": "^4.16.3",
|
|
35
|
+
"jasmine": "^3.1.0",
|
|
36
|
+
"mock-require": "^2.0.2"
|
|
37
|
+
}
|
|
38
|
+
}
|