{"_id":"@babbel/rollbar-client.js","_rev":"7-236bcf855c4f5623312361b123e15672","name":"@babbel/rollbar-client.js","dist-tags":{"latest":"2.1.1"},"versions":{"2.0.3":{"name":"@babbel/rollbar-client.js","version":"2.0.3","author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"_id":"@babbel/rollbar-client.js@2.0.3","maintainers":[{"name":"fmasuhr","email":"npmjs.com@fionn.io"},{"name":"jansiwy","email":"npm@jansiwy.de"},{"name":"awendt-babbel","email":"awendt@babbel.com"},{"name":"jsaito","email":"jsaito@babbel.com"},{"name":"pixelpogo","email":"ogrimm+npm@babbel.com"},{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"}],"dist":{"shasum":"99d0266a41be0ed5e162cb76ff6bdc045b6d444c","tarball":"https://registry.npmjs.org/@babbel/rollbar-client.js/-/rollbar-client.js-2.0.3.tgz","fileCount":9,"integrity":"sha512-vyf4XVjGRu7zG7fnvkE+Nb63AFv5/CiFWwl6VMuCRxM6Il4D2ZOU2nzJTtgVH5VZiXMwfrdIR9dy4fNtcCWCHw==","signatures":[{"sig":"MEUCIQCI7NE/xhqCCNkAFA5ZbNCG1DHlU/Oa9rtCtLAa+7CEygIgVqDf26Izx5v/ZqWktSoqlMBFnCrG+DIimem7yqPFZpc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83555},"engines":{"node":">=16.13.0"},"exports":{"import":"./dist/RollbarClient.mjs"},"gitHead":"cfb96978bb266fc0a791b7efedd06731cf178cc0","scripts":{"dev":"vite dev --config config/vite/vite.config.mts","build":"npm-run-all --silent validate:environment build:vite build:types","reinstall":"npm run --silent delete:node_modules && npm run --silent delete:package-lock && npm i","test:unit":"vitest --config config/vite/vite.config.mts","build:vite":"vite build --config config/vite/vite.config.mts","build:types":"tsc","format:code":"prettier --write --cache --no-editorconfig .","test:unit:ui":"npm run --silent test:unit -- --ui","lint:typescript":"echo Linting TypeScript... && eslint --ext cts,ts,mts --cache --cache-location .eslintcache --cache-strategy content src/","list:todo-comments":"rg --only-matching '(TODO|FIXME):[a-zA-Z0-9\\t .,;?!@#$%^&*()]+'","test:unit:coverage":"npm run --silent test:unit -- --coverage","delete:node_modules":"rm -rf node_modules","delete:package-lock":"rm -f package-lock.json","validate:formatting":"prettier --check --cache --no-editorconfig .","validate:environment":"npm-run-all --silent --parallel validate:environment:*","reinstall:use-lock-file":"npm run --silent delete:node_modules && npm ci","update:package-versions":"./scripts/npm/updatePackageVersions.mjs && npm run --silent reinstall","validate:linting:eslint":"eslint-config-prettier src/RollbarClient.mts","validate:environment:symlinks":"./scripts/npm/validateEnvironmentSymlinks.mjs","validate:environment:versions":"./scripts/npm/validateEnvironmentVersions.mjs","list:eslint:disable-directives":"rg '/(/|\\*+)[ \\t]*eslint-disable[^*]*(\\*+/)?'"},"_npmUser":{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"},"_npmVersion":"9.5.1","description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","directories":{},"_nodeVersion":"18.16.1","dependencies":{"just-extend":"*","error-stack-parser":"*"},"_hasShrinkwrap":false,"packageManager":"npm@9.5.1","devDependencies":{"vite":"4.4.6","eslint":"8.45.0","vitest":"0.33.0","prettier":"3.0.0","happy-dom":"10.5.2","@vitest/ui":"0.33.0","typescript":"5.1.6","just-extend":"6.2.0","npm-run-all":"4.1.5","error-stack-parser":"2.1.4","@vitest/coverage-v8":"0.33.0","eslint-plugin-regexp":"1.15.0","eslint-plugin-unicorn":"48.0.0","eslint-config-prettier":"8.8.0","eslint-config-airbnb-base":"15.0.0","eslint-plugin-eslint-comments":"3.2.0","eslint-config-airbnb-typescript":"17.1.0","@typescript-eslint/eslint-plugin":"6.1.0"},"bundleDependencies":["error-stack-parser","just-extend"],"_npmOperationalInternal":{"tmp":"tmp/rollbar-client.js_2.0.3_1689972048261_0.8657434886578075","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@babbel/rollbar-client.js","version":"2.0.4","author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"license":"MIT","_id":"@babbel/rollbar-client.js@2.0.4","maintainers":[{"name":"fmasuhr","email":"npmjs.com@fionn.io"},{"name":"jansiwy","email":"npm@jansiwy.de"},{"name":"awendt-babbel","email":"awendt@babbel.com"},{"name":"jsaito","email":"jsaito@babbel.com"},{"name":"pixelpogo","email":"ogrimm+npm@babbel.com"},{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"}],"homepage":"https://github.com/babbel/rollbar-client.js#readme","bugs":{"url":"https://github.com/babbel/rollbar-client.js/issues"},"dist":{"shasum":"1bc491f58be5e0345af299eaadded7fc1a4bf855","tarball":"https://registry.npmjs.org/@babbel/rollbar-client.js/-/rollbar-client.js-2.0.4.tgz","fileCount":10,"integrity":"sha512-RzieOD1kI5wSGzk5I1LzX9A0offEPQtHb3Pb+Jerygg3Ct7QU1wPfC7nFFAwjmsO9aKn2yeEwH03aPSp5Eg80w==","signatures":[{"sig":"MEQCIGBdYSbagfEQJdXOMqIafhhsBFY8kY7KKBKxzfc1FYGFAiAMx5wPL/7H8Am7cXLc8J44S4063I0Hanh1EA9rL1ZxOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84737},"engines":{"node":">=16.13.0"},"exports":{"import":"./dist/RollbarClient.mjs"},"gitHead":"f952b0137a1da481d1ad7ebb88b74f85a21dbf4e","scripts":{"dev":"vite dev --config config/vite/vite.config.mts","build":"npm-run-all --silent validate:environment build:vite build:types","reinstall":"npm run --silent delete:node_modules && npm run --silent delete:package-lock && npm i","test:unit":"vitest --config config/vite/vite.config.mts","build:vite":"vite build --config config/vite/vite.config.mts","build:types":"tsc","format:code":"prettier --write --cache --no-editorconfig .","test:unit:ui":"npm run --silent test:unit -- --ui","lint:typescript":"echo Linting TypeScript... && eslint --ext cts,ts,mts --cache --cache-location .eslintcache --cache-strategy content src/","list:todo-comments":"rg --only-matching '(TODO|FIXME):[a-zA-Z0-9\\t .,;?!@#$%^&*()]+'","test:unit:coverage":"npm run --silent test:unit -- --coverage","delete:node_modules":"rm -rf node_modules","delete:package-lock":"rm -f package-lock.json","validate:formatting":"prettier --check --cache --no-editorconfig .","validate:environment":"npm-run-all --silent --parallel validate:environment:*","reinstall:use-lock-file":"npm run --silent delete:node_modules && npm ci","update:package-versions":"./scripts/npm/updatePackageVersions.mjs && npm run --silent reinstall","validate:linting:eslint":"eslint-config-prettier src/RollbarClient.mts","validate:environment:symlinks":"./scripts/npm/validateEnvironmentSymlinks.mjs","validate:environment:versions":"./scripts/npm/validateEnvironmentVersions.mjs","list:eslint:disable-directives":"rg '/(/|\\*+)[ \\t]*eslint-disable[^*]*(\\*+/)?'"},"_npmUser":{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"},"repository":{"url":"git+https://github.com/babbel/rollbar-client.js.git","type":"git"},"_npmVersion":"9.5.1","description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","directories":{},"_nodeVersion":"18.16.1","dependencies":{"just-extend":"*","error-stack-parser":"*"},"_hasShrinkwrap":false,"packageManager":"npm@9.5.1","devDependencies":{"vite":"4.4.6","eslint":"8.45.0","vitest":"0.33.0","prettier":"3.0.0","happy-dom":"10.5.2","@vitest/ui":"0.33.0","typescript":"5.1.6","just-extend":"6.2.0","npm-run-all":"4.1.5","error-stack-parser":"2.1.4","@vitest/coverage-v8":"0.33.0","eslint-plugin-regexp":"1.15.0","eslint-plugin-unicorn":"48.0.0","eslint-config-prettier":"8.8.0","eslint-config-airbnb-base":"15.0.0","eslint-plugin-eslint-comments":"3.2.0","eslint-config-airbnb-typescript":"17.1.0","@typescript-eslint/eslint-plugin":"6.1.0"},"bundleDependencies":["error-stack-parser","just-extend"],"_npmOperationalInternal":{"tmp":"tmp/rollbar-client.js_2.0.4_1689974980869_0.5386086801517314","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@babbel/rollbar-client.js","version":"2.0.5","author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"license":"MIT","_id":"@babbel/rollbar-client.js@2.0.5","maintainers":[{"name":"fmasuhr","email":"npmjs.com@fionn.io"},{"name":"jansiwy","email":"npm@jansiwy.de"},{"name":"awendt-babbel","email":"awendt@babbel.com"},{"name":"jsaito","email":"jsaito@babbel.com"},{"name":"pixelpogo","email":"ogrimm+npm@babbel.com"},{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"}],"homepage":"https://github.com/babbel/rollbar-client.js#readme","bugs":{"url":"https://github.com/babbel/rollbar-client.js/issues"},"dist":{"shasum":"2c208553284f1aa423563fb2d5ed60180b6046f0","tarball":"https://registry.npmjs.org/@babbel/rollbar-client.js/-/rollbar-client.js-2.0.5.tgz","fileCount":10,"integrity":"sha512-aAHX4/EgcVKZ+PorJDHn9an4wJxoqbiirpBf6zkaNesVadSHqkxkAzRyEh9LJhfReXQBcoABbo6xv08tSascog==","signatures":[{"sig":"MEYCIQDRa65zZCoP8e45dyPdvZa7g/grPTOyY4CcrThusKMK0wIhAPfONPbMDGuGuBsc/0Colerx8RKLBjL/K7vVyU7F0CEr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84843},"engines":{"node":">=16.13.0"},"exports":{"import":"./dist/RollbarClient.mjs"},"gitHead":"6e64a37eeccdfe15690cee723c210b49902e41f9","scripts":{"dev":"vite dev --config config/vite/vite.config.mts","build":"npm-run-all --silent validate:environment build:vite build:types","reinstall":"npm run --silent delete:node_modules && npm run --silent delete:package-lock && npm i","test:unit":"vitest --config config/vite/vite.config.mts","build:vite":"vite build --config config/vite/vite.config.mts","build:types":"tsc","format:code":"prettier --write --cache --no-editorconfig .","test:unit:ui":"npm run --silent test:unit -- --ui","validate:types":"attw --ignore-rules no-resolution --pack .","lint:typescript":"echo Linting TypeScript... && eslint --ext cts,ts,mts --cache --cache-location .eslintcache --cache-strategy content src/","list:todo-comments":"rg --only-matching '(TODO|FIXME):[a-zA-Z0-9\\t .,;?!@#$%^&*()]+'","test:unit:coverage":"npm run --silent test:unit -- --coverage","delete:node_modules":"rm -rf node_modules","delete:package-lock":"rm -f package-lock.json","validate:formatting":"prettier --check --cache --no-editorconfig .","validate:environment":"npm-run-all --silent --parallel validate:environment:*","reinstall:use-lock-file":"npm run --silent delete:node_modules && npm ci","update:package-versions":"./scripts/npm/updatePackageVersions.mjs && npm run --silent reinstall","validate:linting:eslint":"eslint-config-prettier src/RollbarClient.mts","validate:environment:symlinks":"./scripts/npm/validateEnvironmentSymlinks.mjs","validate:environment:versions":"./scripts/npm/validateEnvironmentVersions.mjs","list:eslint:disable-directives":"rg '/(/|\\*+)[ \\t]*eslint-disable[^*]*(\\*+/)?'"},"_npmUser":{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"},"repository":{"url":"git+https://github.com/babbel/rollbar-client.js.git","type":"git"},"_npmVersion":"9.5.1","description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","directories":{},"_nodeVersion":"18.16.1","dependencies":{"just-extend":"*","error-stack-parser":"*"},"_hasShrinkwrap":false,"packageManager":"npm@9.5.1","devDependencies":{"vite":"4.4.7","eslint":"8.45.0","vitest":"0.33.0","prettier":"3.0.0","happy-dom":"10.5.2","@vitest/ui":"0.33.0","typescript":"5.1.6","just-extend":"6.2.0","npm-run-all":"4.1.5","error-stack-parser":"2.1.4","@vitest/coverage-v8":"0.33.0","eslint-plugin-regexp":"1.15.0","@arethetypeswrong/cli":"0.7.0","eslint-plugin-unicorn":"48.0.1","eslint-config-prettier":"8.8.0","eslint-config-airbnb-base":"15.0.0","eslint-plugin-eslint-comments":"3.2.0","eslint-config-airbnb-typescript":"17.1.0","@typescript-eslint/eslint-plugin":"6.2.0"},"bundleDependencies":["error-stack-parser","just-extend"],"_npmOperationalInternal":{"tmp":"tmp/rollbar-client.js_2.0.5_1690307078241_0.9653898286652363","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"@babbel/rollbar-client.js","version":"2.0.6","author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"license":"MIT","_id":"@babbel/rollbar-client.js@2.0.6","maintainers":[{"name":"fmasuhr","email":"npmjs.com@fionn.io"},{"name":"jansiwy","email":"npm@jansiwy.de"},{"name":"awendt-babbel","email":"awendt@babbel.com"},{"name":"jsaito","email":"jsaito@babbel.com"},{"name":"pixelpogo","email":"ogrimm+npm@babbel.com"},{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"}],"homepage":"https://github.com/babbel/rollbar-client.js#readme","bugs":{"url":"https://github.com/babbel/rollbar-client.js/issues"},"dist":{"shasum":"917ddc943cd0e542493144baad9ce7db695fd9e6","tarball":"https://registry.npmjs.org/@babbel/rollbar-client.js/-/rollbar-client.js-2.0.6.tgz","fileCount":10,"integrity":"sha512-b/qIbsc+dzTIDG+k3QWGnGB8rVAXq5o1plc4RIAMiyQUlWF9O+p4aXK0/R/DwMpWXBFMO9r8IZrygNeV3HdGXQ==","signatures":[{"sig":"MEYCIQC7/j4bre3i3H3bQZ3GsMoUo2sFCcVWZjhFMlgjzwtqggIhAP7q3+3LlqqcWCQpnDNJILS+OvNz4IzPQVBqPFGZj7xj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85798},"engines":{"node":">=16.13.0"},"exports":{"import":"./dist/RollbarClient.mjs"},"gitHead":"4bc48d8d65b834f367d44035b36fbbe75f168694","scripts":{"dev":"vite dev --config config/vite/vite.config.mts","build":"npm-run-all --silent validate:environment build:vite build:types","reinstall":"npm run --silent delete:node_modules && npm run --silent delete:package-lock && npm i","test:unit":"vitest --config config/vite/vite.config.mts","build:vite":"vite build --config config/vite/vite.config.mts","build:types":"tsc","format:code":"prettier --write --cache --no-editorconfig .","test:unit:ui":"npm run --silent test:unit -- --ui","validate:types":"attw --ignore-rules no-resolution --pack .","lint:typescript":"echo Linting TypeScript... && eslint --ext cts,ts,mts --cache --cache-location .eslintcache --cache-strategy content src/","list:todo-comments":"rg --only-matching '(TODO|FIXME):[a-zA-Z0-9\\t .,;?!@#$%^&*()]+'","test:unit:coverage":"npm run --silent test:unit -- --coverage","delete:node_modules":"rm -rf node_modules","delete:package-lock":"rm -f package-lock.json","validate:formatting":"prettier --check --cache --no-editorconfig .","validate:environment":"npm-run-all --silent --parallel validate:environment:*","reinstall:use-lock-file":"npm run --silent delete:node_modules && npm ci","update:package-versions":"./scripts/npm/updatePackageVersions.mjs && npm run --silent reinstall","validate:linting:eslint":"eslint-config-prettier src/RollbarClient.mts","validate:environment:symlinks":"./scripts/npm/validateEnvironmentSymlinks.mjs","validate:environment:versions":"./scripts/npm/validateEnvironmentVersions.mjs","list:eslint:disable-directives":"rg '/(/|\\*+)[ \\t]*eslint-disable[^*]*(\\*+/)?'"},"_npmUser":{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"},"repository":{"url":"git+https://github.com/babbel/rollbar-client.js.git","type":"git"},"_npmVersion":"9.5.1","description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","directories":{},"_nodeVersion":"18.16.1","dependencies":{"just-extend":"*","error-stack-parser":"*"},"_hasShrinkwrap":false,"packageManager":"npm@9.5.1","devDependencies":{"vite":"4.5.0","eslint":"8.51.0","vitest":"0.34.6","prettier":"3.0.3","happy-dom":"12.9.1","@vitest/ui":"0.34.6","typescript":"5.2.2","just-extend":"6.2.0","npm-run-all":"4.1.5","error-stack-parser":"2.1.4","@vitest/coverage-v8":"0.34.6","eslint-plugin-regexp":"2.0.0","@arethetypeswrong/cli":"0.12.2","eslint-plugin-unicorn":"48.0.1","eslint-config-prettier":"9.0.0","eslint-config-airbnb-base":"15.0.0","eslint-plugin-eslint-comments":"3.2.0","eslint-config-airbnb-typescript":"17.1.0","@typescript-eslint/eslint-plugin":"6.8.0"},"bundleDependencies":["error-stack-parser","just-extend"],"_npmOperationalInternal":{"tmp":"tmp/rollbar-client.js_2.0.6_1697829051550_0.9733728870784566","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@babbel/rollbar-client.js","version":"2.1.0","author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"license":"MIT","_id":"@babbel/rollbar-client.js@2.1.0","maintainers":[{"name":"fmasuhr","email":"npmjs.com@fionn.io"},{"name":"jansiwy","email":"npm@jansiwy.de"},{"name":"awendt-babbel","email":"awendt@babbel.com"},{"name":"jsaito","email":"jsaito@babbel.com"},{"name":"pixelpogo","email":"ogrimm+npm@babbel.com"},{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"}],"homepage":"https://github.com/babbel/rollbar-client.js#readme","bugs":{"url":"https://github.com/babbel/rollbar-client.js/issues"},"dist":{"shasum":"a182d0d00edfd361d89d2dbb60f07db62a7e234a","tarball":"https://registry.npmjs.org/@babbel/rollbar-client.js/-/rollbar-client.js-2.1.0.tgz","fileCount":10,"integrity":"sha512-yyhufqmR1ygbExcgYVidvBaUovxysmUImvMhnWADoLewoF8ZY/tARVQK14hAynkzXIGvC5ugpbDbVUgZAVJ23g==","signatures":[{"sig":"MEUCICXb+aNG6n+yE4aUiWnW27gARS1clRYl5d664aI7x1lvAiEApu0qVMbtBFqQwfIeTtHLM2BuqNAA/DXCPhUnEGfNFR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88686},"engines":{"node":">=16.13.0"},"exports":{"import":"./dist/RollbarClient.mjs"},"gitHead":"c4353b1b3fbf6c5910c2b861ba2a400ce108c744","scripts":{"dev":"vite dev --config config/vite/vite.config.mts","build":"npm-run-all --silent validate:environment build:vite build:types","reinstall":"npm run --silent delete:node_modules && npm run --silent delete:package-lock && npm i","test:unit":"vitest --config config/vite/vite.config.mts","build:vite":"vite build --config config/vite/vite.config.mts","build:types":"tsc","format:code":"prettier --write --cache --no-editorconfig .","test:unit:ui":"npm run --silent test:unit -- --ui","validate:types":"attw --ignore-rules no-resolution --pack .","lint:typescript":"echo Linting TypeScript... && eslint --ext cts,ts,mts --cache --cache-location .eslintcache --cache-strategy content src/","list:todo-comments":"rg --only-matching '(TODO|FIXME):[a-zA-Z0-9\\t .,;?!@#$%^&*()]+'","test:unit:coverage":"npm run --silent test:unit -- --coverage","delete:node_modules":"rm -rf node_modules","delete:package-lock":"rm -f package-lock.json","validate:formatting":"prettier --check --cache --no-editorconfig .","validate:environment":"npm-run-all --silent --parallel validate:environment:*","reinstall:use-lock-file":"npm run --silent delete:node_modules && npm ci","update:package-versions":"./scripts/npm/updatePackageVersions.mjs && npm run --silent reinstall","validate:linting:eslint":"eslint-config-prettier src/RollbarClient.mts","validate:environment:symlinks":"./scripts/npm/validateEnvironmentSymlinks.mjs","validate:environment:versions":"./scripts/npm/validateEnvironmentVersions.mjs","list:eslint:disable-directives":"rg '/(/|\\*+)[ \\t]*eslint-disable[^*]*(\\*+/)?'"},"_npmUser":{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"},"repository":{"url":"git+https://github.com/babbel/rollbar-client.js.git","type":"git"},"_npmVersion":"9.5.1","description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","directories":{},"_nodeVersion":"18.16.1","dependencies":{"just-extend":"*","error-stack-parser":"*"},"_hasShrinkwrap":false,"packageManager":"npm@9.5.1","devDependencies":{"vite":"4.5.0","eslint":"8.51.0","vitest":"0.34.6","prettier":"3.0.3","happy-dom":"12.9.1","@vitest/ui":"0.34.6","typescript":"5.2.2","just-extend":"6.2.0","npm-run-all":"4.1.5","error-stack-parser":"2.1.4","@vitest/coverage-v8":"0.34.6","eslint-plugin-regexp":"2.0.0","@arethetypeswrong/cli":"0.12.2","eslint-plugin-unicorn":"48.0.1","eslint-config-prettier":"9.0.0","eslint-config-airbnb-base":"15.0.0","eslint-plugin-eslint-comments":"3.2.0","eslint-config-airbnb-typescript":"17.1.0","@typescript-eslint/eslint-plugin":"6.8.0"},"bundleDependencies":["error-stack-parser","just-extend"],"_npmOperationalInternal":{"tmp":"tmp/rollbar-client.js_2.1.0_1729795729747_0.5266762393167888","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@babbel/rollbar-client.js","version":"2.1.1","author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"license":"MIT","_id":"@babbel/rollbar-client.js@2.1.1","maintainers":[{"name":"fmasuhr","email":"npmjs.com@fionn.io"},{"name":"jansiwy","email":"npm@jansiwy.de"},{"name":"awendt-babbel","email":"awendt@babbel.com"},{"name":"jsaito","email":"jsaito@babbel.com"},{"name":"pixelpogo","email":"ogrimm+npm@babbel.com"},{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"}],"homepage":"https://github.com/babbel/rollbar-client.js#readme","bugs":{"url":"https://github.com/babbel/rollbar-client.js/issues"},"dist":{"shasum":"65928c379f20eda258e4ab930cdac960209df1a5","tarball":"https://registry.npmjs.org/@babbel/rollbar-client.js/-/rollbar-client.js-2.1.1.tgz","fileCount":10,"integrity":"sha512-uHCr8unJpxL4o3Af3a09xprqeAhWjDximkvCAdSdcm2FXDRIth4ZhiM+4ZWupjm9wMsrSj0XoTO3NntY5DxMJQ==","signatures":[{"sig":"MEUCID/vfq+vrZtPwObRNnvLygx5vwhFjMwQ5Vpx9XmuYPBHAiEA4x1895P8JuE7t+4iI3DghwGqzgYktkUeNnprdRzqgqc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88686},"engines":{"node":">=16.13.0"},"exports":{"import":"./dist/RollbarClient.mjs"},"gitHead":"ba35359846fb459d97b7663e440e2f981f2b6fc0","scripts":{"dev":"vite dev --config config/vite/vite.config.mts","build":"npm-run-all --silent validate:environment build:vite build:types","reinstall":"npm run --silent delete:node_modules && npm run --silent delete:package-lock && npm i","test:unit":"vitest --config config/vite/vite.config.mts","build:vite":"vite build --config config/vite/vite.config.mts","build:types":"tsc","format:code":"prettier --write --cache --no-editorconfig .","test:unit:ui":"npm run --silent test:unit -- --ui","validate:types":"attw --ignore-rules no-resolution --pack .","lint:typescript":"echo Linting TypeScript... && eslint --ext cts,ts,mts --cache --cache-location .eslintcache --cache-strategy content src/","list:todo-comments":"rg --only-matching '(TODO|FIXME):[a-zA-Z0-9\\t .,;?!@#$%^&*()]+'","test:unit:coverage":"npm run --silent test:unit -- --coverage","delete:node_modules":"rm -rf node_modules","delete:package-lock":"rm -f package-lock.json","validate:formatting":"prettier --check --cache --no-editorconfig .","validate:environment":"npm-run-all --silent --parallel validate:environment:*","reinstall:use-lock-file":"npm run --silent delete:node_modules && npm ci","update:package-versions":"./scripts/npm/updatePackageVersions.mjs && npm run --silent reinstall","validate:linting:eslint":"eslint-config-prettier src/RollbarClient.mts","validate:environment:symlinks":"./scripts/npm/validateEnvironmentSymlinks.mjs","validate:environment:versions":"./scripts/npm/validateEnvironmentVersions.mjs","list:eslint:disable-directives":"rg '/(/|\\*+)[ \\t]*eslint-disable[^*]*(\\*+/)?'"},"_npmUser":{"name":"babbel-ci","email":"infrastructure+ci@babbel.com"},"repository":{"url":"git+https://github.com/babbel/rollbar-client.js.git","type":"git"},"_npmVersion":"9.5.1","description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","directories":{},"_nodeVersion":"18.16.1","dependencies":{"just-extend":"*","error-stack-parser":"*"},"_hasShrinkwrap":false,"packageManager":"npm@9.5.1","devDependencies":{"vite":"4.5.0","eslint":"8.51.0","vitest":"0.34.6","prettier":"3.0.3","happy-dom":"12.9.1","@vitest/ui":"0.34.6","typescript":"5.2.2","just-extend":"6.2.0","npm-run-all":"4.1.5","error-stack-parser":"2.1.4","@vitest/coverage-v8":"0.34.6","eslint-plugin-regexp":"2.0.0","@arethetypeswrong/cli":"0.12.2","eslint-plugin-unicorn":"48.0.1","eslint-config-prettier":"9.0.0","eslint-config-airbnb-base":"15.0.0","eslint-plugin-eslint-comments":"3.2.0","eslint-config-airbnb-typescript":"17.1.0","@typescript-eslint/eslint-plugin":"6.8.0"},"bundleDependencies":["error-stack-parser","just-extend"],"_npmOperationalInternal":{"tmp":"tmp/rollbar-client.js_2.1.1_1741338887378_0.4335274027162359","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2023-07-21T20:40:48.149Z","modified":"2026-07-06T14:02:04.573Z","2.0.3":"2023-07-21T20:40:48.468Z","2.0.4":"2023-07-21T21:29:41.118Z","2.0.5":"2023-07-25T17:44:38.384Z","2.0.6":"2023-10-20T19:10:51.792Z","2.1.0":"2024-10-24T18:48:50.020Z","2.1.1":"2025-03-07T09:14:47.600Z"},"bugs":{"url":"https://github.com/babbel/rollbar-client.js/issues"},"author":{"name":"Eric L. Goldstein","email":"egoldstein@babbel.com"},"license":"MIT","homepage":"https://github.com/babbel/rollbar-client.js#readme","repository":{"url":"git+https://github.com/babbel/rollbar-client.js.git","type":"git"},"description":"Tiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs","maintainers":[{"email":"npmjs.com@fionn.io","name":"fmasuhr"},{"email":"infrastructure+ci@babbel.com","name":"babbel-ci"},{"email":"alubneuski@babbel.com","name":"aliaksandrlubneuski"},{"email":"mharuna@babbel.com","name":"mharuna-babbel"},{"email":"kaarol.mv@gmail.com","name":"ana.k"},{"email":"lbruzzone@babbel.com","name":"lbruzzone-babbel"}],"readme":"# NPM module `@babbel/rollbar-client.js`\n\nTiny, modern Rollbar TypeScript client whose code is mostly lazy-loaded if and when an error occurs.\n\n## Background and Overview\n\nThis project started as an idea: \"Why does an error reporting library need to load at all before an error happens? Can't we defer loading it until an error object is received? If an error never happens, why waste the bandwidth?\"; apparently, I talk to myself more than I realize. Following this thought, I attempted to get lazy-loading working with the official Rollbar JS client; doing so ended up being ultimately impossible without major retooling unless I was OK with errors being reported with no details (hint: I'm not). Then I wondered whether Rollbar had an open API with documentation allowing me to write my own client; [they do](https://docs.rollbar.com/reference/getting-started-1)! Thus, I proceeded to look through the official JavaScript client's source code and API documentation so all the most important features were retained.\n\nThis project's code has been used on production since November 2019 for all of our monitored applications, so we're confident it works well.\n\nThis project was moved into its own repository so it can be shared as an NPM package. The benefits are quite significant.\n\n**Features at parity with the official JS client**\n\n- Automatic reporting of uncaught errors and promise rejections\n- Stack trace parsing and detailed display; uses same `error-stack-parser` library as the official Rollbar JS client\n- Automatic deduplication of errors\n- Uses source maps to extract code locations from source code instead of minified code\n- Auto-extraction of error object class names from stack traces\n\n**Advantages over the official JS client**\n\n- Enforced 100% unit test line coverage so even future modifications will fail builds until all lines are covered\n- Waits to lazy load most of its code until an error happens, otherwise does nothing\n- Bundle size impact:\n  - This code's main bundle size impact: **~0.4 KiB minified and gzip'd** (~0.3 KiB minified and Brotli'd)!\n  - [Official client](https://bundlephobia.com/result?p=rollbar@latest) main bundle size impact: **~23 KiB minified and gzip'd** (over 50 times larger)\n- Auto-categorizes reported errors into supported and unsupported browsers (based on a regex that can be auto-generated by NPM packages `browserslist` and `browserslist-useragent-regexp`; see the [Simulated Implementation section below](#simulated-implementation) for a production usage example)\n- `sendBeacon()`-based error reporting with auto-fallback to using `fetch()` with `keepalive`\n- Encourages fingerprinting overrides for more predictable error categorization based solely on reported error title; can be optionally disabled. Rollbar's default categorization behavior is far less predictable.\n- Reports the full application state JSON (e.g. Redux) and/or action history by passing them to the 4th and 5th parameters of `log()`, respectively\n- Reports the browser's list of available languages and currently-active language; visible at payload locations `data.custom.languages` and `data.custom.languagePreferred`, respectively\n- Optionally reports the user's location information (e.g. city, country, longitude, etc.)\n- Payload is alphabetically deep-sorted so payloads from different browsers and environments can be more easily `diff`ed\n\n**Upcoming Features**\n\n- Auto-capturing the request and response metadata for `fetch()` requests\n- Supporting native modules in a `<script type=\"module\">` environment\n\n**Features missing vs. the official JS client (potentially will be added later)**\n\n- Non-error-specific telemetry (e.g. page clicks, `console` object logging)\n\n## Usage\n\n**NOTE: this library is not transpiled. If you have the need to support browsers other than Chrome, Firefox, Safari, or Edge (Chromium), please transpile this code**\n\n### Webpack and dynamic imports\n\nBy default, this library should work without any extra configuration. However, because this library uses relative dynamic import paths, HTML `<base>` elements can override the path prefix when fetching dynamic import code; thus, dynamic imports can break. To fix this, use Webpack's `publicPath` configuration option at build time or `__webpack_public_path__` global variable at runtime depending on your environment configuration. You can read more about it [here](https://webpack.js.org/guides/public-path/).\n\n### Module Exports\n\nOnly a single class `RollbarClient` is exported; its usage follows.\n\n```js\nimport { RollbarClient } from \"@babbel/rollbar-client.js\";\nconst configurationObject = {\n  /* config here */\n};\nconst rollbarClient = new RollbarClient(configurationObject);\n```\n\nCreates a new client instance and sets configuration options (`configurationObject`) to be used throughout the client instance's lifetime\n\n#### Class Methods\n\n```js\nvoid RollbarClient.prototype.initializeEventListeners();\n```\n\nStarts listening for unhandled `error` and `unhandledrejection` events on the global scope  \n**NOTE: when using more than one client instance and calling this method for each, multiple `error` and `unhandledrejection` will be attached unless you opt-out of doing so by using `false` as the `onUnhandledError` and/or `onUnhandledPromiseRejection` configuration option values**\n\n```js\nvoid async RollbarClient.prototype.log(errorLevel, errorTitle)\nvoid async RollbarClient.prototype.log(errorLevel, errorTitle [, errorObject])\nvoid async RollbarClient.prototype.log(errorLevel, errorTitle [, errorObject, applicationStateObject])\nvoid async RollbarClient.prototype.log(errorLevel, errorTitle [, errorObject, applicationStateObject, actionHistoryArray])\n```\n\nLazy-loads the rest of the codebase as a module singleton (so it's only ever fetched once) then submits the details of an occurrence\n\n- `errorLevel` (required) string whose accepted values are `critical`, `debug`, `error`, `info`, `warning`\n- `errorTitle` (required) can be any string\n- `errorObject` (optional) must be an instance of `Error` or its derivatives (e.g. `TypeError`)\n- `applicationStateObject` (optional) can be any object (payload location: `data.custom.applicationState`)\n- `actionHistoryArray` (optional) can be any array (payload location: `data.custom.actionHistory`)\n\n**NOTE: unreported exceptions will be thrown in the following circumstances:**\n\n- `errorLevel` doesn't match any accepted value\n- `errorObject` is not an instance of `Error` or its derivatives (e.g. `RangeError` or `class SomeError extends Error`)\n- `actionHistoryArray` is not an array\n\n### Configuration object keys:\n\n| Key Name                        | Required | Data Type  | Default Value                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                      |\n| ------------------------------- | -------- | ---------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `accessToken`                   | Y        | `String`   | `undefined`                                                        | Rollbar client access token (a.k.a. API key)                                                                                                                                                                                                                                                                                                                                                                     |\n| `apiUrl`                        | N        | `String`   | `'https://api.rollbar.com/api/1/item/'`                            | `POST` URL for submitting occurrences to Rollbar                                                                                                                                                                                                                                                                                                                                                                 |\n| `browsersSupportedRegex`        | N        | `RegExp`   | `undefined`                                                        | Used to identify if the current browser is supported or not. See `data.custom.isBrowserSupported` in the occurrence JSON to determine if the occurrence's browser is considered supported or not; `isBrowserSupported` defaults to `true` if this option is not used or `browsersSupportedRegex.test(navigator.userAgent)` if it is. Use NPM package `browserslist-useragent-regexp` for easiest implementation. |\n| `browserUnsupportedTitlePrefix` | N        | `String`   | `'[UNSUPPORTED BROWSER] '`                                         | Prefix applied to a reported occurrence's title if the current browser is unsupported                                                                                                                                                                                                                                                                                                                            |\n| `commitHash`                    | N        | `String`   | `undefined`                                                        | Commit hash of the current code deployment; usually only set during CI builds                                                                                                                                                                                                                                                                                                                                    |\n| `customPayloadFields`           | N        | `Object`   | `undefined`                                                        | Object fields to be merged into the POST data submitted to Rollbar; intended to modify/overwrite the payload without restriction ([learn more](https://explorer.docs.rollbar.com/#operation/create-item))                                                                                                                                                                                                        |\n| `environment`                   | Y        | `String`   | `undefined`                                                        | The execution environment (e.g. \"development\" or \"production\"); can be any value                                                                                                                                                                                                                                                                                                                                 |\n| `fingerprint`                   | N        | `String`   | `undefined`                                                        | Used to group occurrences together; defaults to the value of `errorTitle`/`payload.data.title` if not used. To disable its usage, set it to `false`. See [Customizing Fingerprinting Rules](https://docs.rollbar.com/docs/grouping-algorithm#customizing-fingerprinting-rules) for more details                                                                                                                  |\n| `hasConfigurationInPayload`     | N        | `Boolean`  | `false`                                                            | If enabled, submit the full configuration object with each occurrence                                                                                                                                                                                                                                                                                                                                            |\n| `isVerbose`                     | N        | `Boolean`  | `true`                                                             | If enabled, arguments passed to `log()` are logged locally with `console` in addition to being sent to Rollbar                                                                                                                                                                                                                                                                                                   |\n| `locationInfo`                  | N        | `Object`   | `undefined`                                                        | Device location details (e.g. city, country, longitude, etc.)                                                                                                                                                                                                                                                                                                                                                    |\n| `onUnhandledError`              | N        | `Function` | See `onErrorDefault` [below](#default-error-handlers)              | Global `error` handler; can disable attaching a handler by setting it to `false`. Only used if `initializeEventListeners()` is called.                                                                                                                                                                                                                                                                           |\n| `onUnhandledPromiseRejection`   | N        | `Function` | See `onUnhandledRejectionDefault` [below](#default-error-handlers) | Global `unhandledrejection` handler; can disable attaching a handler by setting it to `false`. Only used if `initializeEventListeners()` is called.                                                                                                                                                                                                                                                              |\n| `setContext`                    | N        | `Function` | `() => window.location.href`                                       | Returns a string representing the state of the app during an occurrence; used to directly set payload value `data.context`                                                                                                                                                                                                                                                                                       |\n| `shouldIgnoreOccurrence`        | N        | `Function` | `undefined`                                                        | Returns a boolean value determining whether the currently-processing occurrence should be sent to Rollbar. Function signature: `shouldIgnoreOccurrence(payload, configuration)` where `payload` is the payload object about to be sent to Rollbar and `configuration` is the configuration object                                                                                                                |\n| `userInfo`                      | N        | `Object`   | `undefined`                                                        | User details (**NOTE: only \"email\", \"id\", and \"username\" fields are indexed by Rollbar**; you can send other fields, but they won't be searchable)                                                                                                                                                                                                                                                               |\n| `transformPayload`              | N        | `Function` | `() => {}`                                                         | Enables users to transform the payload that will be sent to Rollbar. The function must mutate the passed payload. Function signature: `transformPayload(payload, configuration)` where `payload` is the payload object about to be sent to Rollbar and `configuration` is the configuration object                                                                                                               |\n\n### Default Error Handlers\n\n```js\nfunction onErrorDefault(errorEvent) {\n  this.log(\"warning\", \"Unhandled error occurred\", errorEvent.error);\n}\n\nfunction onUnhandledRejectionDefault(promiseRejectionEvent) {\n  this.log(\"warning\", \"Unhandled promise rejection occurred\", promiseRejectionEvent.reason);\n}\n```\n\n### Simulated Implementation\n\n```js\nimport { RollbarClient } from '@babbel/rollbar-client.js';\nimport { browsersSupportedRegex } from '../constants/regex';\n\nconst { environment, geo_data, uuid } = getEnvironmentConfig();\nconst rollbarConfiguration = {\n  accessToken: process.env.ROLLBAR_CLIENT_ACCESS_TOKEN,\n  browsersSupportedRegex,\n  customPayloadFields: {\n    data: {\n      client: {\n        javascript: {\n          browser: 'modified user agent',\n        },\n      },\n      custom: {\n        isSecretSauce: true,\n        veryImportantThing: ['secret', 'sauce'],\n      },\n    },\n  },\n  environment,\n  locationInfo: { ...geo_data },\n  userInfo: { id: uuid },\n  ...(process.env.GITHUB_SHA && { commitHash: process.env.GITHUB_SHA }),\n};\nconst rollbarClient = new RollbarClient(rollbarConfiguration);\nrollbarClient.initializeEventListeners();\n\n...\n\ntry {\n  doSomethingKindaBad();\n} catch (error) {\n  rollbarClient.log(\n    'warning',\n    'I did something kinda bad',\n    error,\n    applicationState,\n    applicationActionHistory,\n  );\n}\n\ntry {\n  doSomethingReallyBad();\n} catch (error) {\n  rollbarClient.log(\n    'error',\n    'I did something REALLY bad',\n    error,\n    applicationState,\n    applicationActionHistory,\n  );\n}\n```\n","readmeFilename":"README.md"}