@go-go-scope/adapter-koa 2.2.0 → 2.3.1

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
@@ -15,8 +15,6 @@ declare module "koa" {
15
15
  interface KoaGoGoScopeOptions {
16
16
  /** Root scope name */
17
17
  name?: string;
18
- /** Enable metrics collection */
19
- metrics?: boolean;
20
18
  /** Default timeout for all requests */
21
19
  timeout?: number;
22
20
  /** Optional error handler */
package/dist/index.mjs CHANGED
@@ -2,9 +2,9 @@ import { scope } from 'go-go-scope';
2
2
 
3
3
  let rootScope = null;
4
4
  function koaGoGoScope(options = {}) {
5
- const { name = "koa-app", metrics = false, timeout, onError } = options;
5
+ const { name = "koa-app", timeout, onError } = options;
6
6
  if (!rootScope) {
7
- rootScope = scope({ name, metrics });
7
+ rootScope = scope({ name });
8
8
  }
9
9
  return async (ctx, next) => {
10
10
  if (!rootScope) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-go-scope/adapter-koa",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "Koa 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.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "koa": "^3.1.0"