@magaya/hyperion-express-middleware 12.26.9-blue-beta.0 → 12.30.3-blue-dev.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 +2 -0
- package/index.js +0 -9
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ In development, you'll need to install the tools that are compatible with the ve
|
|
|
34
34
|
|
|
35
35
|
| Magaya | NodeJS |
|
|
36
36
|
| ------------- | ------------- |
|
|
37
|
+
| v11.6.x | 16.5.0 [32 bits](https://nodejs.org/dist/v16.5.0/node-v16.5.0-x86.msi) [64 bits](https://nodejs.org/dist/v16.5.0/node-v16.5.0-x64.msi) |
|
|
38
|
+
| v11.4.x | 12.14.1 [32 bits](https://nodejs.org/dist/v12.14.1/node-v12.14.1-x86.msi) [64 bits](https://nodejs.org/dist/v12.14.1/node-v12.14.1-x64.msi) |
|
|
37
39
|
| v11.3.x | 12.14.1 [32 bits](https://nodejs.org/dist/v12.14.1/node-v12.14.1-x86.msi) [64 bits](https://nodejs.org/dist/v12.14.1/node-v12.14.1-x64.msi) |
|
|
38
40
|
| v11.2.x | 8.11.1 [32 bits](https://nodejs.org/dist/v8.11.1/node-v8.11.1-x86.msi) [64 bits](https://nodejs.org/dist/v8.11.1/node-v8.11.1-x64.msi) |
|
|
39
41
|
| v11.1.x | 8.11.1 [32 bits](https://nodejs.org/dist/v8.11.1/node-v8.11.1-x86.msi) [64 bits](https://nodejs.org/dist/v8.11.1/node-v8.11.1-x64.msi) |
|
package/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
const tracer = require('dd-trace').init({
|
|
2
|
-
// Optional configuration can go here
|
|
3
|
-
service: 'hyperion-express-middleware'
|
|
4
|
-
});
|
|
5
1
|
const debug = require('debug')('hyperion-express-module');
|
|
6
2
|
const hyperion = require('@magaya/hyperion-node'); debug('Loaded hyperion...');
|
|
7
3
|
|
|
@@ -51,11 +47,6 @@ const middleware = function (args, api) {
|
|
|
51
47
|
throw new Error(`there is no connection to the database`);
|
|
52
48
|
}
|
|
53
49
|
|
|
54
|
-
const span = tracer.scope().active();
|
|
55
|
-
if (span) {
|
|
56
|
-
span.setTag('operation', 'hyperion-express-middleware');
|
|
57
|
-
}
|
|
58
|
-
|
|
59
50
|
request.dbx = database.dbx;
|
|
60
51
|
request.dbw = database.dbw;
|
|
61
52
|
request.algorithm = database.algorithm;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magaya/hyperion-express-middleware",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.30.3-blue-dev.0",
|
|
4
4
|
"description": "An express middleware for hyperion.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "jasmine",
|
|
8
|
-
"postversion": "git push && git push --tags && npm publish
|
|
8
|
+
"postversion": "git push && git push --tags && npm publish"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"index.js"
|
|
@@ -26,13 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/magaya-dev/hyperion-express-middleware.git#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@magaya/hyperion-node": "12.
|
|
30
|
-
"
|
|
31
|
-
"debug": "^3.1.0"
|
|
29
|
+
"@magaya/hyperion-node": "12.30.3-blue-dev.0",
|
|
30
|
+
"debug": "4.3.4"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"express": "
|
|
35
|
-
"jasmine": "
|
|
36
|
-
"mock-require": "
|
|
33
|
+
"express": "4.18.2",
|
|
34
|
+
"jasmine": "4.6.0",
|
|
35
|
+
"mock-require": "3.0.3"
|
|
37
36
|
}
|
|
38
37
|
}
|