{"name":"@sentry/node","version":"7.120.3","author":{"name":"Sentry"},"license":"MIT","_id":"@sentry/node@7.120.3","homepage":"https://github.com/getsentry/sentry-javascript/tree/master/packages/node","bugs":{"url":"https://github.com/getsentry/sentry-javascript/issues"},"dist":{"shasum":"59a54e1bfccffd28e7d502a5eefea615f07e13f5","tarball":"http://registry-npm.ywwl.com/@sentry/node/download/@sentry/node-7.120.3.tgz","fileCount":324,"integrity":"sha512-t+QtekZedEfiZjbkRAk1QWJPnJlFBH/ti96tQhEq7wmlk3VszDXraZvLWZA0P2vXyglKzbWRGkT31aD3/kX+5Q==","signatures":[{"sig":"MEYCIQC3bRPYRwhElRMBZy9bTGV95x3TMyJCES7zNuOCtZmH3wIhAMX2UOszswmshxW33TwlNik68VaB7hxhGuFNYe5f+W07","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2130171,"size":382692,"noattachment":false,"key":"/@sentry/node/-/@sentry/node-7.120.3.tgz"},"main":"cjs/index.js","_from":"file:/tmp/craft-0DnkW8/sentry-node-7.120.3.tgz","madge":{"detectiveOptions":{"ts":{"skipTypeImports":true}}},"types":"types/index.d.ts","module":"esm/index.js","engines":{"node":">=8"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"_resolved":"/tmp/craft-0DnkW8/sentry-node-7.120.3.tgz","_integrity":"sha512-t+QtekZedEfiZjbkRAk1QWJPnJlFBH/ti96tQhEq7wmlk3VszDXraZvLWZA0P2vXyglKzbWRGkT31aD3/kX+5Q==","repository":{"url":"git://github.com/getsentry/sentry-javascript.git","type":"git"},"_npmVersion":"10.9.0","description":"Official Sentry SDK for Node.js","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"@sentry/core":"7.120.3","@sentry/types":"7.120.3","@sentry/utils":"7.120.3","@sentry/integrations":"7.120.3","@sentry-internal/tracing":"7.120.3"},"publishConfig":{"tag":"v7","access":"public"},"typesVersions":{"<4.9":{"types/index.d.ts":["types-ts3.8/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nock":"^13.0.5","undici":"^5.21.0","express":"^4.17.1","@types/node":"~10.17.0","@types/cookie":"0.5.2","@types/express":"^4.17.14","@types/lru-cache":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/node_7.120.3_1736498799022_0.6758822934860822","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n  <a href=\"https://sentry.io/?utm_source=github&utm_medium=logo\" target=\"_blank\">\n    <img src=\"https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png\" alt=\"Sentry\" width=\"280\" height=\"84\">\n  </a>\n</p>\n\n# Official Sentry SDK for Node\n\n[![npm version](https://img.shields.io/npm/v/@sentry/node.svg)](https://www.npmjs.com/package/@sentry/node)\n[![npm dm](https://img.shields.io/npm/dm/@sentry/node.svg)](https://www.npmjs.com/package/@sentry/node)\n[![npm dt](https://img.shields.io/npm/dt/@sentry/node.svg)](https://www.npmjs.com/package/@sentry/node)\n\n## Installation\n\n```bash\nnpm install @sentry/node\n\n# Or yarn\nyarn add @sentry/node\n```\n\n## Usage\n\nSentry should be initialized as early in your app as possible. It is essential that you call `Sentry.init` before you\nrequire any other modules in your application, otherwise auto-instrumentation of these modules will **not** work.\n\nYou need to create a file named `instrument.js` that imports and initializes Sentry:\n\n```js\n// CJS Syntax\nconst Sentry = require('@sentry/node');\n// ESM Syntax\nimport * as Sentry from '@sentry/node';\n\nSentry.init({\n  dsn: '__DSN__',\n  // ...\n});\n```\n\nYou need to require or import the `instrument.js` file before importing any other modules in your application. This is\nnecessary to ensure that Sentry can automatically instrument all modules in your application:\n\n```js\n// Import this first!\nimport './instrument';\n\n// Now import other modules\nimport http from 'http';\n\n// Your application code goes here\n```\n\n### ESM Support\n\nWhen running your application in ESM mode, you should use the Node.js\n[`--import`](https://nodejs.org/api/cli.html#--importmodule) command line option to ensure that Sentry is loaded before\nthe application code is evaluated.\n\nAdjust the Node.js call for your application to use the `--import` parameter and point it at `instrument.js`, which\ncontains your `Sentry.init`() code:\n\n```bash\n# Note: This is only available for Node v18.19.0 onwards.\nnode --import ./instrument.mjs app.mjs\n```\n\nIf it is not possible for you to pass the `--import` flag to the Node.js binary, you can alternatively use the\n`NODE_OPTIONS` environment variable as follows:\n\n```bash\nNODE_OPTIONS=\"--import ./instrument.mjs\" npm run start\n```\n\n## Links\n\n- [Official SDK Docs](https://docs.sentry.io/quickstart/)\n","publish_time":1736498799279,"maintainers":[{"name":"billyvg","email":"npm@mmo.me"},{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"haza","email":"daniel.griesser.86@gmail.com"},{"name":"jauer","email":"account@jauer.org"},{"name":"sentry-bot","email":"accounts@sentry.io"},{"name":"evanpurkhiser","email":"evanpurkhiser@gmail.com"},{"name":"lynnagara","email":"lyn.nagara@gmail.com"},{"name":"leedongwei","email":"danny@dongwei.li"},{"name":"markstory","email":"mark@mark-story.com"},{"name":"zeeg","email":"dcramer@gmail.com"}],"_cnpm_publish_time":1736498799279,"dist-tags":{"latest":"11.11.0","next":"11.0.0-rc.1","v10":"10.78.0","v7":"7.120.4","v8":"8.55.2","v9":"9.47.2"}}