{"bugs":{"url":"https://github.com/replayio/replay-cli/issues"},"dist":{"shasum":"7071f32b84248cc938ac6f9486f5dabcce27df2d","tarball":"https://registry.npmjs.org/@replayio/sourcemap-upload/-/sourcemap-upload-0.0.0-experimental.tgz","fileCount":5,"integrity":"sha512-6kNJnhRblxaziU/tw/nXyHIJOwEF7thefML514LJRaGz/8d/AuzsB2eT1v98fLxzetBQ79MgaXocG8BuknA9Cw==","signatures":[{"sig":"MEUCIQC6yMBXOupeuodXWx5uIuuTaYgZ74+oIhWXsl2XjFg9wAIgXkcCl/02mmXNBdUaFBiL3z7fnv3SlrQkYxWf2Tgyg98=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaaA9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYpBAAmcoQY+yBpLY8LHxx/zCGHvxcK0NE1pmmyoQI/1tAfoE8TFu3\r\nZKU3Doa3aCAblt4yV0JyH/vqCXAzcyTbWYFucj3CrzsNbAwrrhuGstN70vzH\r\nDP/wgU1jlXYQcilSGakW60WVaqbTqbkUtsJXtbthCQFTKkLGfinxjYIEAqr7\r\nCNgOKY857eJUo6tGJUliIzJSY0+J1cTnE0+licoOnYIbbcSGYKDb3L9wluE+\r\ntq+50MLlJB2P3gBzIYzRFsPP7QzM3rdOzvBSz7yTfVxZKGwUA8L79yfiGD7Q\r\nn1nJS9Q2ii3CDvkD+d6Hn71FVEx3V1+eGyBNj8tYXu3tXwhLaIsARhwdsi2p\r\nl5yxQgOeXU/xBKDHw3ry8gZi1cZgpBnFRasbzN/cpzjtVloI6w75JXw+Zk4A\r\nX5sGuK2j16trqrTHGAyPyAJTO8B3KFI3WUXqdF0cn4geuuQoIm9W7rWARTvH\r\nhMEqVhv0c6ngXIVHAIiPPK6eM/DTc1CUx3tvXKTM4Qbnfne4NtQsi+45pK1M\r\npaJWzrmqHMIDPeGkgQ8edNUojBlJIbmK3bUQ3KKRuOCoZLjBQO9K9wGyLX0j\r\nBXzAl2nIK6J03WLevOSNSJ8uyR/0T3d8r3Gmi8xvkYsN2GjrzwSdRoN8HdYm\r\nH3xeYabChp4/5PwJvPmmpUj4EPTb+ToPXZE=\r\n=uc2p\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":"78cfbc1e51143d6186dff1b7378670d9c77afa09","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","repository":{"url":"git+https://github.com/replayio/replay-cli.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.3+arm64 (darwin)","description":"A utility library for uploading sourcemaps to Replay for use while replaying recordings.","directories":{},"maintainers":[{"name":"jaril","email":"jarilvalenciano@gmail.com"},{"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":"14.17.3","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_1667866685702_0.39044481888294946","host":"s3://npm-registry-packages"},"_id":"@replayio/sourcemap-upload@0.0.0-experimental","version":"0.0.0-experimental"}