@gasket/plugin-elastic-apm 6.47.0 → 6.47.5

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/lib/index.d.ts CHANGED
@@ -25,7 +25,9 @@ declare module '@gasket/engine' {
25
25
  req: IncomingMessage;
26
26
  res: ServerResponse & {
27
27
  locals?: {
28
- gasketData: GasketData;
28
+ gasketData: GasketData & {
29
+ locale?: string;
30
+ };
29
31
  };
30
32
  };
31
33
  }
package/lib/middleware.js CHANGED
@@ -25,7 +25,7 @@ async function customizeTransaction(gasket, req, res) {
25
25
  * Add middleware to gather config details
26
26
  * @type {import('@gasket/engine').HookHandler<'middleware'>}
27
27
  */
28
- module.exports = (gasket) => {
28
+ module.exports = function middleware(gasket) {
29
29
  return (
30
30
  gasket.apm &&
31
31
  async function apmTransactionMiddleware(req, res, next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-elastic-apm",
3
- "version": "6.47.0",
3
+ "version": "6.47.5",
4
4
  "description": "Adds Elastic APM instrumentation to your application",
5
5
  "main": "lib",
6
6
  "types": "lib/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "elastic-apm-node": "^3.50.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@gasket/engine": "^6.46.8",
48
+ "@gasket/engine": "^6.47.5",
49
49
  "eslint": "^8.56.0",
50
50
  "eslint-config-godaddy": "^7.1.0",
51
51
  "eslint-plugin-jest": "^27.6.3",
@@ -72,5 +72,5 @@
72
72
  "jest": {
73
73
  "testEnvironment": "node"
74
74
  },
75
- "gitHead": "9feff1fa92be6b1b6ed2ab6d3028490165395c62"
75
+ "gitHead": "648355649de721c840c86f3456528617d44aba74"
76
76
  }