@interfere/nest 0.0.1-canary.1 → 0.0.1-canary.3

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/README.md CHANGED
@@ -15,7 +15,20 @@ bun add @interfere/nest
15
15
  ```ts
16
16
  // instrument.ts — imported first in main.ts, before any @nestjs/* import
17
17
  import { init } from "@interfere/nest";
18
- await init({ serviceName: "my-api" });
18
+ init({ serviceName: "my-api", debug: true });
19
+ ```
20
+
21
+ ```ts
22
+ // main.ts
23
+ import "./instrument";
24
+ import { NestFactory } from "@nestjs/core";
25
+ import { AppModule } from "./app.module";
26
+
27
+ async function bootstrap() {
28
+ const app = await NestFactory.create(AppModule);
29
+ await app.listen(3000);
30
+ }
31
+ bootstrap();
19
32
  ```
20
33
 
21
34
  ```ts
@@ -27,4 +40,24 @@ import { InterfereModule } from "@interfere/nest";
27
40
  export class AppModule {}
28
41
  ```
29
42
 
30
- Set `INTERFERE_PUBLIC_KEY` to your surface's `interfere_pk_*` public key. Full docs at <https://interfere.com/docs>.
43
+ ## Build & Deploy
44
+
45
+ Add a `postbuild` script so source maps are uploaded and the release is registered with the collector:
46
+
47
+ ```json
48
+ {
49
+ "scripts": {
50
+ "build": "tsc",
51
+ "postbuild": "interfere sourcemaps upload ./dist"
52
+ }
53
+ }
54
+ ```
55
+
56
+ ## Environment Variables
57
+
58
+ | Variable | Where | Purpose |
59
+ |---|---|---|
60
+ | `INTERFERE_PUBLIC_KEY` | Runtime | Routes spans to your surface (`interfere_pk_*`) |
61
+ | `INTERFERE_API_KEY` | CI / Build | Uploads source maps and registers releases (`interfere_ak_*`) |
62
+
63
+ Full docs at <https://interfere.com/docs>.
package/dist/init.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let _interfere_node=require("@interfere/node"),_opentelemetry_instrumentation=require("@opentelemetry/instrumentation"),_opentelemetry_instrumentation_nestjs_core=require("@opentelemetry/instrumentation-nestjs-core"),instrumented=!1;async function init(options={}){instrumented||=((0,_opentelemetry_instrumentation.registerInstrumentations)({instrumentations:[new _opentelemetry_instrumentation_nestjs_core.NestInstrumentation]}),!0),await(0,_interfere_node.init)(options)}exports.init=init;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let _interfere_node=require("@interfere/node"),_opentelemetry_instrumentation=require("@opentelemetry/instrumentation"),_opentelemetry_instrumentation_nestjs_core=require("@opentelemetry/instrumentation-nestjs-core"),instrumented=!1;function init(options={}){instrumented||=((0,_opentelemetry_instrumentation.registerInstrumentations)({instrumentations:[new _opentelemetry_instrumentation_nestjs_core.NestInstrumentation]}),!0),(0,_interfere_node.init)(options)}exports.init=init;
package/dist/init.d.cts CHANGED
@@ -8,7 +8,7 @@ import { InitOptions, InitOptions as InitOptions$1 } from "@interfere/node";
8
8
  * before `@nestjs/core` is imported — see the README for the
9
9
  * `instrument.ts` pattern.
10
10
  */
11
- declare function init(options?: InitOptions$1): Promise<void>;
11
+ declare function init(options?: InitOptions$1): void;
12
12
  //#endregion
13
13
  export { type InitOptions, init };
14
14
  //# sourceMappingURL=init.d.cts.map
package/dist/init.d.mts CHANGED
@@ -8,7 +8,7 @@ import { InitOptions, InitOptions as InitOptions$1 } from "@interfere/node";
8
8
  * before `@nestjs/core` is imported — see the README for the
9
9
  * `instrument.ts` pattern.
10
10
  */
11
- declare function init(options?: InitOptions$1): Promise<void>;
11
+ declare function init(options?: InitOptions$1): void;
12
12
  //#endregion
13
13
  export { type InitOptions, init };
14
14
  //# sourceMappingURL=init.d.mts.map
package/dist/init.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{init as init$1}from"@interfere/node";import{registerInstrumentations}from"@opentelemetry/instrumentation";import{NestInstrumentation}from"@opentelemetry/instrumentation-nestjs-core";let instrumented=!1;async function init(options={}){instrumented||=(registerInstrumentations({instrumentations:[new NestInstrumentation]}),!0),await init$1(options)}export{init};
1
+ import{init as init$1}from"@interfere/node";import{registerInstrumentations}from"@opentelemetry/instrumentation";import{NestInstrumentation}from"@opentelemetry/instrumentation-nestjs-core";let instrumented=!1;function init(options={}){instrumented||=(registerInstrumentations({instrumentations:[new NestInstrumentation]}),!0),init$1(options)}export{init};
2
2
  //# sourceMappingURL=init.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/nest",
3
- "version": "0.0.1-canary.1",
3
+ "version": "0.0.1-canary.3",
4
4
  "license": "MIT",
5
5
  "description": "NestJS SDK for Interfere. Auto-captures uncaught exceptions from controllers, providers, and middleware via a global ExceptionFilter, plus re-exports the @interfere/node OTel instrumentation.",
6
6
  "keywords": [
@@ -55,19 +55,19 @@
55
55
  "typecheck": "tsc --noEmit --incremental"
56
56
  },
57
57
  "dependencies": {
58
- "@interfere/node": "^0.0.1-canary.1",
58
+ "@interfere/node": "^0.0.1-canary.3",
59
59
  "@opentelemetry/instrumentation": "^0.218.0",
60
60
  "@opentelemetry/instrumentation-nestjs-core": "^0.64.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@nestjs/common": "^11.1.21",
64
- "@nestjs/core": "^11.1.21"
63
+ "@nestjs/common": "^10.0.0 || ^11.0.0",
64
+ "@nestjs/core": "^10.0.0 || ^11.0.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@interfere/test-utils": "^9.0.0",
68
68
  "@interfere/typescript-config": "^9.0.0",
69
- "@nestjs/common": "^11.1.21",
70
- "@nestjs/core": "^11.1.21",
69
+ "@nestjs/common": "^10.0.0 || ^11.0.0",
70
+ "@nestjs/core": "^10.0.0 || ^11.0.0",
71
71
  "@types/node": "^24.12.0",
72
72
  "@vitest/coverage-v8": "^4.1.6",
73
73
  "reflect-metadata": "^0.2",