{"_id":"sentry-files","_rev":"2-103536c164fd7f43077f42b089d297e7","name":"sentry-files","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"sentry-files","version":"1.0.0","description":"Node library to upload sourcemaps files to Sentry","main":"src/index.js","engines":{"node":">=6.0"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/jzabala/sentry-files.git"},"keywords":["nodejs","sentry","sourcemaps"],"author":{"name":"Johnny Zabala","email":"jzabala.s@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jzabala/sentry-files/issues"},"homepage":"https://github.com/jzabala/sentry-files#readme","devDependencies":{"eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","jest":"^23.3.0"},"jest":{"testPathIgnorePatterns":["/node_modules/","/examples"]},"gitHead":"2ee18ba77d43cde9d77f7e9b82eab3b39a3226c9","_id":"sentry-files@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"6.12.0","_npmUser":{"name":"jzabala","email":"jzabala.s@gmail.com"},"dist":{"integrity":"sha512-b7mMbvJXvzUHy0e5jqS0ag/ak0kxpnD9/QPSV06SEAoVt4tvshpLtgmMSjbmSpuSflKYyFkDF9oFMpn85Ypm0g==","shasum":"aeeaede3901cf98fe502c308c189456a701e35f6","tarball":"https://registry.npmjs.org/sentry-files/-/sentry-files-1.0.0.tgz","fileCount":25,"unpackedSize":394544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTOyyCRA9TVsSAnZWagAANQoP/jS29M26QcMgvqCa7Rj3\nRp3pnSetb/tB58sec1LD70ieLsgv7tlBtgF1Fc+wwXpJyV7z5SP6OmYb9eiu\n053svoE752eTyb39CfQEvdtKHSjFOPTqBmtTBFIaT7Y/hJd2hu5iStcCJbUr\nqwAhtEyLCRtnW67UAbrk1lkNY1ro8m7YkwIBegWeCpdSagRvnhYL04xJa6z0\naQfIsaXPGhKRsDGsbmbREf7fE3SqWYCWAgCUHzSjYpdGe6Om8f9k3aM8IPdP\nKNP4162dlJCKSLc3fiMD3eG9Z2SCb4HECAKCNoYRkdB56E9/5XqBo3kXhni0\n5WR/GqQ6GS4vXHea4toG1ZTuFGErxt3i+rIgX191i4Yt1gxdV++r/s8bpt/W\nD0U86yF5uz5I61dltLKCMKfSR20vgGEoOZijgfc3CfE28YGN95ydy/HyI2dH\nH5gj/UhRHkYPSlirPabaS9hYxtISRBpSqkiFhm3hKkeJJqhLFLN8rkhMmOrC\nq/hmXS8dF0AEqVVeQHTuqT80bipvUy8kGEUfjRo9NJsBz3Kuch5985aCrNsr\nkHGB4GAatZ1Ij3BT/DjGytOOQYv2gLPohQaMCGcwv+FVjWG+CVBe6s5+hFCy\n4Zlfc7mgz3VbdYKRzaLaDE8Yt/sSS9uvJ4vKRBuENODH1dLxyRCkWtfEI43T\nWUZy\r\n=oqK+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCydHmLO2xJb1pN9kn8TV0UyDq40MgY7evfu85W74Io/AIgGD0WMCTPIU1g/uYG+roQh4SBPldMfLBaarEb16DhI90="}]},"maintainers":[{"name":"jzabala","email":"jzabala.s@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sentry-files_1.0.0_1531767986796_0.8570495871451924"},"_hasShrinkwrap":false},"1.0.1":{"name":"sentry-files","version":"1.0.1","description":"Node library to upload sourcemaps files to Sentry","main":"src/index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/jzabala/sentry-files.git"},"keywords":["nodejs","sentry","sourcemaps"],"author":{"name":"Johnny Zabala","email":"jzabala.s@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/jzabala/sentry-files/issues"},"homepage":"https://github.com/jzabala/sentry-files#readme","devDependencies":{"eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","husky":"1.0.0-rc.13","jest":"^23.3.0"},"jest":{"testPathIgnorePatterns":["/node_modules/","/examples"]},"husky":{"hooks":{"pre-commit":"npm test"}},"gitHead":"ebe1e454874422edb57dfca23e0bc54d86b324f8","_id":"sentry-files@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"6.12.0","_npmUser":{"name":"jzabala","email":"jzabala.s@gmail.com"},"dist":{"integrity":"sha512-3ngGvKWK1WWbI4OcUjRNuMI38dIzJO7jfxLKgl2ahBr513OUGZaEXH7Rl8OJJNqH5gXkcuuo6iiss76wvv+kjg==","shasum":"b588fb3022e0155ca2a99203e3d417b9d6c21823","tarball":"https://registry.npmjs.org/sentry-files/-/sentry-files-1.0.1.tgz","fileCount":15,"unpackedSize":19145,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbVjIOCRA9TVsSAnZWagAAKb8QAJ2wk8dtcEFe7SEahJAb\nxClKXiqwXv4H8ckt7FYABi/HyFf00zkir7+3T4dYGe9Rahz3TLbvTfD5WPbx\n4Aac2WlmnUJupodlxBlaJR1/oplZZUC+87hyDL5dkG9PR3H5ReczVF4z4oJj\nkHuFxoUIpZqNuwDuhR7iBh8ZegQpLLjgTCA8r9ySJKZhMLmk/Q0YkvCZ9SQE\nj1KKCAw84PW5LJ2yrdAiAKnHHAnnufksxX3ZEMk10vPcdTe9ib/CxvL8dWPj\n3EQsf8N713+Ppa/lvvodDyz7o/EBa/iR+0dOEFFRO7gkiYiu48gBzla5Wuco\nIlW/HmHQTsvowJEM+kNgjcVR+UF2U0Dfs4msqOr7F5S1C1b20Yi3BRddNxqp\nodj1ZBX9RUd5xa76nuKBWOR2afYbjZ8hcbuOxd62pOdT0MWqYC5JbPpqKGFq\n1ZHdm8Lu1wVDC1N6IAXFaC5MtIwCjrsgFTelQU5JxDeY4CJ4409MKfvaLH8x\ng5CJ/0y91JW4BsdQe9M6xft19BLoeQFS+tqU4CPs1qHGIYnUy3bGxfVLAztG\nRhIciZjQ57S0/tc0cscr/P+BBKbzOe0rhUEe0IGx+8l+c5QUwIcs7iea39XH\n1gjknuK1VdClV6wB42kdrIjEmWkml7f2hf8Rss377hzt5HaDd1w6YvYVLJRT\n+O3o\r\n=0Fsj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGhBdiEFchJ3LbZ4oMZ2P00Iow/yH6CwUN2LNo1vOM+AiAq6lR6eV+34qJY0SHfWp/YTzWYmS0+wZ93Qcah6H8Rrw=="}]},"maintainers":[{"name":"jzabala","email":"jzabala.s@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sentry-files_1.0.1_1532375566257_0.4192291182836658"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-16T19:06:26.795Z","1.0.0":"2018-07-16T19:06:26.993Z","modified":"2022-05-17T11:33:18.389Z","1.0.1":"2018-07-23T19:52:46.337Z"},"maintainers":[{"name":"jzabala","email":"jzabala.s@gmail.com"}],"description":"Node library to upload sourcemaps files to Sentry","homepage":"https://github.com/jzabala/sentry-files#readme","keywords":["nodejs","sentry","sourcemaps"],"repository":{"type":"git","url":"git+https://github.com/jzabala/sentry-files.git"},"author":{"name":"Johnny Zabala","email":"jzabala.s@gmail.com"},"bugs":{"url":"https://github.com/jzabala/sentry-files/issues"},"license":"MIT","readme":"# sentry-files\n\nZero-dependency Node library to upload source maps to Sentry\n\n## Installation\n\n```bash\nyarn add sentry-files --dev\n```\n\n## Usage\n\n```js\nimport path from 'path';\nconst { upload } = require('sentry-files');\n\nconst config = {\n  version: '1.0.0',\n  organization: 'example-organization',\n  project: 'example-project',\n  token: 'YOUR_API_TOKEN_HERE',\n  files: [\n    {\n      name: 'http://example.com/assets/main.js.map',\n      path: path.resolve(__dirname, 'path/to/main.js.map'),\n    },\n  ],\n};\n\nupload(config)\n  .then(data => console.log('----- SUCCESS ----\\n', data))\n  .catch(error => console.log('---- ERROR ----\\n', error));\n```\n\nFor an example uploading source maps of a React app check this [post](https://medium.com/@johnny02/configure-sentry-with-source-maps-for-a-react-app-badf1ac0bbe8).\n\n## API\n\n### `upload(options)`\n\nType: `function`\\\nReturns: `Promise`\n\nIt creates a release and uploads the files to that release.\n\n### `options`\n\nType: `Object`\\\n_Required_\n\nAn object specifying the options used to create the release and upload the files.\n\n### `options.version`\n\nType: `String`\\\n_Required_\n\nVersion used to create the release.\n\n### `options.organization`\n\nType: `String`\\\n_Required_\n\nSentry organization name.\n\n### `options.project`\n\nType: `String`\\\n_Required_\n\nSentry project name.\n\n### `options.token`\n\nType: `String`\\\n_Required_\n\n[Authentication token](https://docs.sentry.io/api/auth/) required to perform actions against the Sentry API.\n\n_Ensure you have `project:write` selected under scopes._\n\n### `options.files`\n\nType: `Array`\\\n_Required_\n\nArray of objects describing the files to upload to Sentry.\n\n```js\n[\n  {\n    name: 'Sentry file name',\n    path: 'Local file path'\n  },\n  {\n    name: '...',\n    path: '...'\n  }\n…]\n```\n\n### `options.files.name`\n\nType: `String`\\\n_Required_\n\nName of the file on Sentry.\n\n_More about Sentry file names: [Upload a New File](https://docs.sentry.io/api/releases/post-organization-release-files/), [Uploading Source Maps to Sentry](https://docs.sentry.io/clients/javascript/sourcemaps/#uploading-source-maps-to-sentry) and [Assets Accessible at Multiple Origins](https://docs.sentry.io/clients/javascript/sourcemaps/#assets-multiple-origins)_\n\n### `options.files.path`\n\nType: `String`\\\n_Required_\n\nPath to the file locally.\n\n## License\n\n#### [MIT](./LICENSE)\n","readmeFilename":"README.md"}