{"name":"@sentry-internal/replay-canvas","version":"10.57.0","description":"Replay canvas integration","main":"build/npm/cjs/index.js","module":"build/npm/esm/index.js","types":"build/npm/types/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./build/npm/types/index.d.ts","default":"./build/npm/esm/index.js"},"require":{"types":"./build/npm/types/index.d.ts","default":"./build/npm/cjs/index.js"}}},"typesVersions":{"<5.0":{"build/npm/types/index.d.ts":["build/npm/types-ts3.8/index.d.ts"]}},"sideEffects":false,"scripts":{"build":"run-p build:transpile build:types build:bundle","build:transpile":"rollup -c rollup.npm.config.mjs","build:bundle":"rollup -c rollup.bundle.config.mjs","build:dev":"run-p build:transpile build:types","build:types":"run-s build:types:core build:types:downlevel","build:types:core":"tsc -p tsconfig.types.json","build:types:downlevel":"yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8","build:watch":"run-p build:transpile:watch build:bundle:watch","build:dev:watch":"run-p build:transpile:watch","build:transpile:watch":"yarn build:transpile --watch","build:bundle:watch":"yarn build:bundle --watch","build:tarball":"npm pack","circularDepCheck":"madge --circular src/index.ts","clean":"rimraf build sentry-replay-*.tgz","lint:fix":"OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware","lint":"OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --type-aware","lint:es-compatibility":"es-check es2020 ./build/{bundles,npm/cjs}/*.js && es-check es2020 ./build/npm/esm/*.js --module","test":"vitest run","test:watch":"vitest --watch","yalc:publish":"yalc publish --push --sig"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/getsentry/sentry-javascript.git"},"author":{"name":"Sentry"},"license":"MIT","bugs":{"url":"https://github.com/getsentry/sentry-javascript/issues"},"homepage":"https://docs.sentry.io/platforms/javascript/session-replay/","devDependencies":{"@sentry-internal/rrweb":"2.43.0"},"dependencies":{"@sentry-internal/replay":"10.57.0","@sentry/core":"10.57.0"},"engines":{"node":">=18"},"volta":{"extends":"../../package.json"},"_id":"@sentry-internal/replay-canvas@10.57.0","_integrity":"sha512-zsfa4JcfV0AEc9YhNxNabd5lSZL2Av84saAyexGAqcHs+67m9Gd0cGStOzMb/nCl7UAtmdP0aI+G7a3rcxxN/A==","_resolved":"/tmp/craft-oVZZeq/sentry-internal-replay-canvas-10.57.0.tgz","_from":"file:/tmp/craft-oVZZeq/sentry-internal-replay-canvas-10.57.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-zsfa4JcfV0AEc9YhNxNabd5lSZL2Av84saAyexGAqcHs+67m9Gd0cGStOzMb/nCl7UAtmdP0aI+G7a3rcxxN/A==","shasum":"4c0fa99628872fd2db6d6da0f63979642c2faa05","tarball":"http://registry-npm.ywwl.com/@sentry-internal/replay-canvas/download/@sentry-internal/replay-canvas-10.57.0.tgz","fileCount":14,"unpackedSize":821825,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCg4RC2w/79hqS5Xh8C2dzrmqTAp6B3A/GOdl4AhB9rqQIgYZTpNUTUTvQi+QSCnjamFY7T65kmyzQZNKtdzW22yVY="}],"size":177817,"noattachment":false,"key":"/@sentry-internal/replay-canvas/-/@sentry-internal/replay-canvas-10.57.0.tgz"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"directories":{},"maintainers":[{"name":"sentry-bot","email":"accounts@sentry.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/replay-canvas_10.57.0_1780998279451_0.1636890466828409"},"_hasShrinkwrap":false,"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# Sentry Session Replay with Canvas\n\n## Pre-requisites\n\nReplay with canvas requires Node 14+, and browsers newer than IE11.\n\n## Installation\n\nReplay and ReplayCanvas can be imported from `@sentry/browser`, or a respective SDK package like `@sentry/react` or\n`@sentry/vue`. You don't need to install anything in order to use Session Replay. The minimum version that includes\nReplay is 7.27.0.\n\nFor details on using Replay when using Sentry via the CDN bundles, see [CDN bundle](#loading-replay-as-a-cdn-bundle).\n\n## Setup\n\nTo set up the canvas integration, add the following to your Sentry integrations:\n\n```javascript\nSentry.replayCanvasIntegration(),\n```\n\n### Full Example\n\n```javascript\nimport * as Sentry from '@sentry/browser';\n// or e.g. import * as Sentry from '@sentry/react';\n\nSentry.init({\n  dsn: '__DSN__',\n\n  // This sets the sample rate to be 10%. You may want this to be 100% while\n  // in development and sample at a lower rate in production\n  replaysSessionSampleRate: 0.1,\n\n  // If the entire session is not sampled, use the below sample rate to sample\n  // sessions when an error occurs.\n  replaysOnErrorSampleRate: 1.0,\n\n  integrations: [Sentry.replayIntegration(), Sentry.replayCanvasIntegration()],\n  // ...\n});\n```\n","publish_time":1780998279630,"_cnpm_publish_time":1780998279630,"dist-tags":{"latest":"10.57.0","next":"10.50.0-alpha.0","v7":"7.120.4","v8":"8.55.2","v9":"9.47.2"}}