@promster/hapi 15.3.0 → 15.4.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.
@@ -14,7 +14,7 @@ var semver__default = /*#__PURE__*/_interopDefault(semver);
14
14
 
15
15
  var pkg = {
16
16
  name: "@promster/hapi",
17
- version: "15.3.0",
17
+ version: "15.4.0",
18
18
  description: "Hapi server integrations of promster",
19
19
  main: "dist/promster-hapi.cjs.js",
20
20
  typings: "dist/promster-hapi.cjs.d.ts",
@@ -159,9 +159,8 @@ const createPlugin = ({
159
159
  responseContentLength
160
160
  });
161
161
  }
162
-
163
- // @ts-expect-error - this is the older Hapi version
164
162
  if (doesResponseNeedInvocation) {
163
+ // @ts-expect-error - this is the older Hapi version
165
164
  response.continue();
166
165
  }
167
166
  };
@@ -182,7 +181,6 @@ const createPlugin = ({
182
181
 
183
182
  // NOTE: The type of the server.decorate only supports a function signature,
184
183
  // even when the docs state that it can also be "other value" in the case of `server`.
185
- // @ts-expect-error
186
184
  server.decorate('server', 'Prometheus', metrics.Prometheus);
187
185
  server.decorate('server', 'recordRequest', recordRequest);
188
186
  return onRegistrationFinished === null || onRegistrationFinished === void 0 ? void 0 : onRegistrationFinished();
@@ -14,7 +14,7 @@ var semver__default = /*#__PURE__*/_interopDefault(semver);
14
14
 
15
15
  var pkg = {
16
16
  name: "@promster/hapi",
17
- version: "15.3.0",
17
+ version: "15.4.0",
18
18
  description: "Hapi server integrations of promster",
19
19
  main: "dist/promster-hapi.cjs.js",
20
20
  typings: "dist/promster-hapi.cjs.d.ts",
@@ -159,9 +159,8 @@ const createPlugin = ({
159
159
  responseContentLength
160
160
  });
161
161
  }
162
-
163
- // @ts-expect-error - this is the older Hapi version
164
162
  if (doesResponseNeedInvocation) {
163
+ // @ts-expect-error - this is the older Hapi version
165
164
  response.continue();
166
165
  }
167
166
  };
@@ -182,7 +181,6 @@ const createPlugin = ({
182
181
 
183
182
  // NOTE: The type of the server.decorate only supports a function signature,
184
183
  // even when the docs state that it can also be "other value" in the case of `server`.
185
- // @ts-expect-error
186
184
  server.decorate('server', 'Prometheus', metrics.Prometheus);
187
185
  server.decorate('server', 'recordRequest', recordRequest);
188
186
  return onRegistrationFinished === null || onRegistrationFinished === void 0 ? void 0 : onRegistrationFinished();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promster/hapi",
3
- "version": "15.3.0",
3
+ "version": "15.4.0",
4
4
  "description": "Hapi server integrations of promster",
5
5
  "main": "dist/promster-hapi.cjs.js",
6
6
  "typings": "dist/promster-hapi.cjs.d.ts",
@@ -39,8 +39,8 @@
39
39
  "merge-options": "3.0.4",
40
40
  "semver": "7.7.1",
41
41
  "tslib": "2.8.1",
42
- "@promster/metrics": "15.3.0",
43
- "@promster/types": "15.3.0"
42
+ "@promster/metrics": "15.4.0",
43
+ "@promster/types": "15.4.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@hapi/boom": "10.0.1",
@@ -48,6 +48,6 @@
48
48
  "@types/hapi__hapi": "21.0.0",
49
49
  "@types/semver": "7.7.0",
50
50
  "parse-prometheus-text-format": "1.1.1",
51
- "@promster/server": "15.3.0"
51
+ "@promster/server": "15.4.0"
52
52
  }
53
53
  }