@go-go-scope/adapter-nestjs 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
@@ -1,6 +1,10 @@
1
- import * as go_go_scope from 'go-go-scope';
2
- import { Scope, scope } from 'go-go-scope';
3
1
  import { OnModuleDestroy } from '@nestjs/common';
2
+ import { Scope, scope } from 'go-go-scope';
3
+
4
+ /**
5
+ * NestJS adapter for go-go-scope
6
+ * Provides dependency injection integration for NestJS applications
7
+ */
4
8
 
5
9
  declare const GOGO_ROOT_SCOPE: unique symbol;
6
10
  declare const GOGO_REQUEST_SCOPE: unique symbol;
@@ -8,8 +12,6 @@ declare const GOGO_MODULE_OPTIONS: unique symbol;
8
12
  interface GoGoScopeModuleOptions {
9
13
  /** Root scope name */
10
14
  name?: string;
11
- /** Enable metrics collection */
12
- metrics?: boolean;
13
15
  /** Default timeout for all requests */
14
16
  timeout?: number;
15
17
  }
@@ -23,10 +25,6 @@ declare class GoGoScopeService implements OnModuleDestroy {
23
25
  * Create a new child scope from the root
24
26
  */
25
27
  createScope(name: string, options?: Omit<Parameters<typeof scope>[0], "parent">): Scope;
26
- /**
27
- * Get current metrics from the root scope
28
- */
29
- getMetrics(): go_go_scope.ScopeMetrics | undefined;
30
28
  onModuleDestroy(): Promise<void>;
31
29
  }
32
30
  /**
package/dist/index.mjs CHANGED
@@ -18,7 +18,6 @@ let GoGoScopeService = class {
18
18
  constructor(_options = {}) {
19
19
  this.rootScope = scope({
20
20
  name: _options.name ?? "nestjs-app",
21
- metrics: _options.metrics,
22
21
  timeout: _options.timeout
23
22
  });
24
23
  }
@@ -32,12 +31,6 @@ let GoGoScopeService = class {
32
31
  ...options
33
32
  });
34
33
  }
35
- /**
36
- * Get current metrics from the root scope
37
- */
38
- getMetrics() {
39
- return this.rootScope.metrics();
40
- }
41
34
  async onModuleDestroy() {
42
35
  await this.rootScope[Symbol.asyncDispose]().catch(() => {
43
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-go-scope/adapter-nestjs",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "NestJS adapter for go-go-scope - DI integration with @Task decorator",
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
  "@nestjs/common": "^11.1.14"