{"bugs":{"url":"https://github.com/replayio/replay-cli/issues"},"dist":{"shasum":"73ad97efee52546c339e808d71d53625a1125c7a","tarball":"https://registry.npmjs.org/@replayio/sourcemap-upload/-/sourcemap-upload-0.0.0-experimental-e8ede605.tgz","fileCount":5,"integrity":"sha512-Wf6sbFSp/qOT2EBLPZb0wJj0TJ4JpIRizZ5fw+7+RO3/EDRkTDiy5oLAr5Md60m70bEFBg51zXWz22I8GE2i8w==","signatures":[{"sig":"MEUCICo0Z6p4EbYvNbMxPsE69RetjhKUPOdlIJrImUGgVsgKAiEAqv2h3Ho45qngIujrB9E6g3+1CX2voFmfssX8WCsydW8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1fAaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTzA//SfOmrkNBKqbaYATjuDrFHUoBjtFuD6EYh42gPMEtv8VqGKdw\r\nx6MkVPM+GQnaPXmngCqTkAgjEcHIB0Puef1pNP1Gr2OGx8yDb5pcAuEpeZ1W\r\nxMoaNxz9f+mUCQBmtjPLOSp79CWEQztyh6OJbeTxOyKsgJyVnPVhIGt1xE2f\r\nNP/e6ePp8W6ott71Ll/wi67BZCHszcdjhvS0DjcZEXs4M3dfq7h9GHjuLm7x\r\ndzr3SypKs091Rllv6ZNB8zYnwwQyVJdnQUN6Myxp2c+SUJVtue5jUhK8LXla\r\nQPMA2v12Vn3VPblUGOkLgJQe/hqjuGeqnh//cHYXYd12UlUza+SLRj7Nsl2+\r\nzDLbNvjn5iXk7x74nhG3JaclwQ6a9eoAp+1ynh/AwV4Xvd4uCJAfGbD0HMk0\r\nQesBAWB2OE2HmMkjZwwCCdrK5TzCAygMWfwtbjGotnOrUI7/3t9JfG5k725k\r\ncsTRy1MS0Aq6fkdF0UizXseDa3d6OTSUvYD5wQpdHIMPkXbTWPZchOLlIiFR\r\npUU8KnHh7wTfzYncu122lDxcimbTffQAT7VEmaJ2ncNQSboHHzU79VwBfcex\r\nEiBJvto3PHAVdxGlIoKMTCSBCeZavRGH2u5QZw2IZzzOCCFfARQa9tbgMn1U\r\nSvHyvEqxF1oWq/OxxyRgtfKxIAqR//JLPiA=\r\n=uB5u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","name":"@replayio/sourcemap-upload","types":"./lib/index.d.ts","author":{"name":"Logan Smyth","email":"logan@replay.io"},"readme":"# @replayio/sourcemap-upload\n\nProvides an NPM library allows uploading sourcemaps to Replay's servers so\nthat they can be used when viewing recordings.\n\n## Usage\n\nThis module will search the given filepaths for JS files and sourcemap files,\nand then it will use the `file` field of the sourcemap or the `//# sourceMappingURL=`\ncomments in the JS to find pairs of sourcemap and JS file.\n\n## Debugging\n\nIf no sourcemaps are being found, consider running the function with verbose\nmode enabled, or with `DEBUG=recordreplay:sourcemap-upload` set in the environment.\n\nMost likely, if sourcemaps are not being found, they either:\n\n- have no `file` property referencing their associated JS file\n- the generated file has `//# sourceMappingURL=`\n\nEither of these links is sufficient, so if changing the generated code to include a\n`//# sourceMappingURL=` comment is not what you want, including `file` is enough,\nand vice-versa.\n\n## API\n\nThis module exports a named `uploadSourceMaps` function with the following options:\n\n```typescript\ninterface Options {\n  /**\n   * The files/directories to search for sourcemaps. All files that match the\n   * 'extensions' list and fail to match 'ignore' will be searched for\n   * sourcemap JSON or `//#sourceMappingURL=` coments in order to find pairs\n   * of generated-file + sourcemap, and the sourcemap will be uploaded.\n   */\n  filepaths: Array<string> | string;\n\n  /**\n   * To allow for tracking and browsing of maps that have been uploaded, we\n   * require uploaded sourcemaps to have an overall group name associated with\n   * them. This could for instance be a version number, or commit hash.\n   */\n  group: string;\n\n  /**\n   * The API key to use when connecting to Replay's servers.\n   * Defaults to `process.env.RECORD_REPLAY_API_KEY`.\n   */\n  key?: string;\n\n  /**\n   * Run all of the local processing and searching for maps, but skip uploading them.\n   */\n  dryRun?: boolean;\n\n  /**\n   * The set of file extensions to search for sourcemap-related data.\n   * Defaults to [\".js\", \".map\"].\n   */\n  extensions?: Array<string>;\n\n  /**\n   * The set of pattern for files to ignore when searching for sourcemap-related data.\n   */\n  ignore?: Array<string>;\n\n  /**\n   * Set the directory that relative paths should be computed with respect to.\n   * The relative path of sourcemaps is included in the uploaded entry, and will be\n   * visible in the UI, so this can be used to strip off unimportant directories in\n   * the build path. Defaults to `process.cwd()`.\n   */\n  root?: string;\n}\n```\n","engines":{"node":">=10.13"},"exports":"./lib/index.js","gitHead":"e8ede6051f42c9f10330230828ab4c4507174b11","license":"BSD-3-Clause","scripts":{"lint":"eslint","test":"echo \"Error: no test specified\"","build":"tsc","prepare":"npm run build","lint:fix":"eslint --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ryanjduffy","email":"ryan@tiqtech.com"},"homepage":"https://github.com/Replayio/replay-cli/blob/main/packages/sourcemap-upload/README.md","deprecated":"Deprecated experimental release","repository":{"url":"git+https://github.com/replayio/replay-cli.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.2+arm64 (darwin)","description":"A utility library for uploading sourcemaps to Replay for use while replaying recordings.","directories":{},"maintainers":[{"name":"souporserious","email":"ftntravis@gmail.com"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"bhackett1024","email":"bhackett@replay.io"},{"name":"dmiller_replay","email":"dan@replay.io"},{"name":"holger_replay","email":"holger@replay.io"},{"name":"ryanjduffy","email":"ryan@tiqtech.com"},{"name":"jcmorrow","email":"josh@jcmorrow.com"},{"name":"jasonlaster11","email":"jason.laster.11@gmail.com"}],"_nodeVersion":"16.13.2","dependencies":{"glob":"^7.1.6","debug":"^4.3.1","commander":"^7.2.0","node-fetch":"^2.6.1","string.prototype.matchall":"^4.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.25.0","prettier":"^2.2.1","typescript":"^4.2.4","@types/glob":"^7.1.3","@types/node":"^14.14.41","@types/debug":"^4.1.5","@types/node-fetch":"^2.5.10","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","@typescript-eslint/parser":"^4.22.0","@types/string.prototype.matchall":"^4.0.0","@typescript-eslint/eslint-plugin":"^4.22.0"},"_npmOperationalInternal":{"tmp":"tmp/sourcemap-upload_0.0.0-experimental-e8ede605_1658187802441_0.4580908407926991","host":"s3://npm-registry-packages"},"_id":"@replayio/sourcemap-upload@0.0.0-experimental-e8ede605","version":"0.0.0-experimental-e8ede605"}