@go-go-scope/adapter-hapi 2.2.0 → 2.3.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/dist/index.d.mts CHANGED
@@ -18,8 +18,6 @@ declare module "@hapi/hapi" {
18
18
  interface HapiGoGoScopeOptions {
19
19
  /** Root scope name */
20
20
  name?: string;
21
- /** Enable metrics collection */
22
- metrics?: boolean;
23
21
  /** Default timeout for all requests */
24
22
  timeout?: number;
25
23
  }
package/dist/index.mjs CHANGED
@@ -4,8 +4,8 @@ const hapiGoGoScope = {
4
4
  name: "hapi-go-go-scope",
5
5
  version: "2.1.0",
6
6
  register: async (server, options) => {
7
- const { name = "hapi-app", metrics = false, timeout } = options;
8
- const rootScope = scope({ name, metrics });
7
+ const { name = "hapi-app", timeout } = options;
8
+ const rootScope = scope({ name });
9
9
  server.rootScope = rootScope;
10
10
  server.decorate("request", "scope", null);
11
11
  server.decorate("request", "rootScope", rootScope);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-go-scope/adapter-hapi",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Hapi adapter for go-go-scope - request-scoped structured concurrency",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "go-go-scope": "2.2.0"
39
+ "go-go-scope": "2.3.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@hapi/hapi": "^21.0.0"