UNPKG

@dudousxd/nestjs-diagnostics

Version:

A standard convention for @dudousxd/nestjs-* libs to emit observability events over node:diagnostics_channel.

97 lines • 2.92 kB
{ "name": "@dudousxd/nestjs-diagnostics", "version": "0.8.1", "description": "A standard convention for @dudousxd/nestjs-* libs to emit observability events over node:diagnostics_channel.", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/DavideCarvalho/nestjs-diagnostics.git", "directory": "packages/core" }, "homepage": "https://davidecarvalho.github.io/aviary/docs/diagnostics", "bugs": { "url": "https://github.com/DavideCarvalho/nestjs-diagnostics/issues" }, "keywords": [ "nestjs", "diagnostics", "diagnostics-channel", "observability", "telemetry", "events", "tanstack-intent" ], "author": "Davi Carvalho <davi@goflip.ai>", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" }, "./nestjs": { "types": "./dist/nestjs/index.d.ts", "import": "./dist/nestjs/index.js", "default": "./dist/nestjs/index.js" } }, "peerDependencies": { "@nestjs/common": "^10 || ^11 || ^12", "@nestjs/core": "^10 || ^11 || ^12", "reflect-metadata": "^0.2" }, "peerDependenciesMeta": { "@nestjs/common": { "optional": true }, "@nestjs/core": { "optional": true }, "reflect-metadata": { "optional": true } }, "files": [ "dist/", "README.md", "CHANGELOG.md", "skills" ], "//sideEffects": "NOT false: registry.ts and context-accessor.ts register process-global state on globalThis via Symbol.for AT IMPORT TIME (the cross-copy-stable channel registry + context accessor), and channel.ts/trace.ts register a reset hook at module load. A bundler told sideEffects:false could tree-shake these initializers away, breaking cross-copy global stability. The array lists exactly the side-effectful modules (matching both src and published dist paths); pure modules (index, types) stay tree-shakeable.", "sideEffects": [ "**/registry.js", "**/registry.ts", "**/context-accessor.js", "**/context-accessor.ts", "**/channel.js", "**/channel.ts", "**/trace.js", "**/trace.ts" ], "devDependencies": { "@nestjs/authentication": "0.1.5", "@nestjs/authorization": "0.1.3", "@nestjs/common": "12.0.4", "@nestjs/core": "12.0.4", "@nestjs/mail": "0.0.2", "@nestjs/resilience": "0.0.3", "@nestjs/testing": "12.0.4", "@nestjs/workflows": "0.0.5", "@types/node": "20.19.43", "reflect-metadata": "0.2.2", "typescript": "5.9.3", "unplugin-swc": "1.6.0", "vitest": "3.2.7" }, "engines": { "node": ">=20" }, "scripts": { "build": "tsc -p tsconfig.json", "test": "vitest run --passWithNoTests", "test:watch": "vitest", "typecheck": "tsc -p tsconfig.json --noEmit" } }