@interfere/nest 0.0.1-canary.2 → 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,7 @@ 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
- init({ serviceName: "my-api" });
18
+ init({ serviceName: "my-api", debug: true });
19
19
  ```
20
20
 
21
21
  ```ts
@@ -40,4 +40,24 @@ import { InterfereModule } from "@interfere/nest";
40
40
  export class AppModule {}
41
41
  ```
42
42
 
43
- 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`});const require_package=require("./package.cjs");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),options.debug&&console.log(`[interfere] ${require_package.name}@${require_package.version} initialized`)}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
@@ -1,14 +1,6 @@
1
- import { InitOptions as InitOptions$1 } from "@interfere/node";
1
+ import { InitOptions, InitOptions as InitOptions$1 } from "@interfere/node";
2
2
 
3
3
  //#region src/init.d.ts
4
- interface InitOptions extends InitOptions$1 {
5
- /**
6
- * Log a one-line confirmation to `stdout` on successful init.
7
- * Useful during integration to verify the SDK is wired up.
8
- * Default `false`.
9
- */
10
- readonly debug?: boolean;
11
- }
12
4
  /**
13
5
  * Bootstraps `@interfere/node` and registers
14
6
  * `@opentelemetry/instrumentation-nestjs-core` for auto-spans across
@@ -16,7 +8,7 @@ interface InitOptions extends InitOptions$1 {
16
8
  * before `@nestjs/core` is imported — see the README for the
17
9
  * `instrument.ts` pattern.
18
10
  */
19
- declare function init(options?: InitOptions): void;
11
+ declare function init(options?: InitOptions$1): void;
20
12
  //#endregion
21
- export { InitOptions, init };
13
+ export { type InitOptions, init };
22
14
  //# sourceMappingURL=init.d.cts.map
package/dist/init.d.mts CHANGED
@@ -1,14 +1,6 @@
1
- import { InitOptions as InitOptions$1 } from "@interfere/node";
1
+ import { InitOptions, InitOptions as InitOptions$1 } from "@interfere/node";
2
2
 
3
3
  //#region src/init.d.ts
4
- interface InitOptions extends InitOptions$1 {
5
- /**
6
- * Log a one-line confirmation to `stdout` on successful init.
7
- * Useful during integration to verify the SDK is wired up.
8
- * Default `false`.
9
- */
10
- readonly debug?: boolean;
11
- }
12
4
  /**
13
5
  * Bootstraps `@interfere/node` and registers
14
6
  * `@opentelemetry/instrumentation-nestjs-core` for auto-spans across
@@ -16,7 +8,7 @@ interface InitOptions extends InitOptions$1 {
16
8
  * before `@nestjs/core` is imported — see the README for the
17
9
  * `instrument.ts` pattern.
18
10
  */
19
- declare function init(options?: InitOptions): void;
11
+ declare function init(options?: InitOptions$1): void;
20
12
  //#endregion
21
- export { InitOptions, init };
13
+ export { type InitOptions, init };
22
14
  //# sourceMappingURL=init.d.mts.map
package/dist/init.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{name,version}from"./package.mjs";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),options.debug&&console.log(`[interfere] ${name}@${version} initialized`)}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.2",
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,7 +55,7 @@
55
55
  "typecheck": "tsc --noEmit --incremental"
56
56
  },
57
57
  "dependencies": {
58
- "@interfere/node": "^0.0.1-canary.2",
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
  },
package/dist/package.cjs DELETED
@@ -1 +0,0 @@
1
- var name=`@interfere/nest`,version=`0.0.1-canary.2`;Object.defineProperty(exports,"name",{enumerable:!0,get:function(){return name}}),Object.defineProperty(exports,"version",{enumerable:!0,get:function(){return version}});
package/dist/package.mjs DELETED
@@ -1,2 +0,0 @@
1
- var name=`@interfere/nest`,version=`0.0.1-canary.2`;export{name,version};
2
- //# sourceMappingURL=package.mjs.map