{"name":"@apollo/usage-reporting-protobuf","version":"4.0.0-rc.2","description":"Protobuf format for Apollo usage reporting","type":"module","exports":{".":{"import":"./generated/protobuf.mjs","require":"./generated/protobuf.cjs","types":"./generated/protobuf.d.ts"}},"types":"generated/protobuf.d.ts","scripts":{"generate":"rm -rf generated && mkdir generated && npm run pbjs-cjs && npm run pbjs-esm && npm run pbts","pbjs-cjs":"apollo-pbjs --target static-module --out generated/protobuf.cjs --wrap commonjs --force-number --no-from-object src/reports.proto","pbjs-esm":"apollo-pbjs --target static-module --out generated/protobuf.mjs --es6 --force-number --no-from-object src/reports.proto","pbts":"mv generated/protobuf.{c,}js && apollo-pbts -o generated/protobuf.d.ts generated/protobuf.js && mv generated/protobuf.{,c}js","update-proto":"curl -sSfo src/reports.proto https://usage-reporting.api.apollographql.com/proto/reports.proto"},"repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-server.git","directory":"packages/usage-reporting-protobuf"},"keywords":["GraphQL","Apollo","Server","Javascript"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"homepage":"https://github.com/apollographql/apollo-server#readme","//":"Don't caret this, we want to be explicit about the version of our fork of protobufjs and update it intentionally if we need to.","dependencies":{"@apollo/protobufjs":"1.2.6"},"volta":{"extends":"../../package.json"},"readme":"# `apollo-reporting-protobuf`\n\n> **Note:** The Apollo usage reporting API is subject to change.  We strongly\n> encourage developers to contact Apollo support at `support@apollographql.com`\n> to discuss their use case prior to building their own reporting agent using\n> this module.\n\nThis module provides JavaScript/TypeScript\n[Protocol buffer](https://developers.google.com/protocol-buffers/) definitions\nfor the Apollo usage reporting API.  These definitions are generated for\nconsumption from the `reports.proto` file which is defined internally within\nApollo.\n\n## Development\n\n> **Note:** Due to a dependency on Unix tools (e.g. `bash`, `grep`, etc.), the\n> development of this module requires a Unix system.  There is no reason why\n> this can't be avoided, the time just hasn't been taken to make those changes.\n> We'd happily accept a PR which makes the appropriate changes!\n\nCurrently, this package generates a majority of its code with\n`@apollo/protobufjs` (a fork of\n[`protobufjs`](https://www.npmjs.com/package/protobufjs) that we maintain\nspecifically for this package) based on the `reports.proto` file. The output is\ngenerated with the `generate` npm script.\n\nThe root of the repository provides some `devDependencies` necessary to build\nthese definitions and the `prepare` npm script is invoked programmatically via\nthe monorepo tooling (e.g. Lerna) thanks to _this_ module's `postinstall`\nscript.  Therefore, when making changes to this module, run scripts via `npx\nlerna run SCRIPTNAME` in the **root** of this monorepo in order to update the\ndefinitions in _this_ module.\n\nTo update `reports.proto` to the current version recognized by the Studio usage\nreporting ingress, run `lerna run update-proto`. To then regenerate the JS and\nTS files, run `npx lerna run generate`. We check in the generated code and only\nregenerate it manually, partially to make builds faster (no need to run pbjs on\nevery `npm install`) and partially so that we don't have to make sure that\n`pbjs` runs on every Node version that we support.\n","readmeFilename":"README.md","gitHead":"c06911d39ae899c32ab3050b242fbc6fb5757a48","_id":"@apollo/usage-reporting-protobuf@4.0.0-rc.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-6lDpfnvgEVscY+AOj/rjuK9zMpqGtJFcDfj9HrnEoLjgJ76OKpW7V7MUMXUgJTBUo2g4yiTnhopqh4qzYRhS9Q==","shasum":"d2751dafdfbfc6c52f042a891c82f1341482e80e","tarball":"http://registry-npm.ywwl.com/@apollo/usage-reporting-protobuf/download/@apollo/usage-reporting-protobuf-4.0.0-rc.2.tgz","fileCount":7,"unpackedSize":762581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDApKo7OD7ymz/OExT88FvNrKS+ioaTy+JOfLy5WW3gFAiB2SfL/TWWpJ/ICYY9U8hjCQf/JJ/2WvHTp6oIBYHefhw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjN1KnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmXRAAnjn/7lU2KbAa2nxFQNpfxUkJ4+12tXXFpMCMbwc9HQRuWkMT\r\nBRqF8UXpQUnCK6rl9p83Iw8mCOjRj1AoVthasfEWLrXNdNAnmRvlkunf5TKy\r\nvJcLKNIRDAqEBVPRLsrwPk/UBLtPCB7aVPODkfJRFASMn3OGyB5fZvWSeAJt\r\nzskYZAXNRphJjlBXwPvPQ/70FORV02ZDJQuJcRtKNrQek9HjLBEyFCHe4yXk\r\nO323wUU76zzOjzHW0Anlr4zOEZRK33WG/agjxJ3HDqT1stlmHVcoXa4ub5Te\r\nzFlFPkqnMsZ2RrV9TNbvjEczX2XZ5oPSiKDQSMOJ4KwHDxv6VWgyn6d/G4XR\r\nsmh6x8ija3HSlHl0geynLohHUOEtb4YOpfA6VQ3PFQbh/nXqbmfw6xWJkVad\r\nm96LWgC8AeogYJ7czhp4ZG7yjLqP7bRSsjBF5xdJHnqHwqdQlytpw2PZDHw3\r\nPegpJanziOe2AM4JM58Y47eYj3uMBeYom++0pWxCC/zzH4MUtTLMNCDPg/JQ\r\n6OGagD8mxq6QzWEar/ejJ7revL8vk9NM/OZiLd7VCTIwa8rrk3aNG5ChlZ6i\r\nIs3vtVbrYBMn+Z4B71o9HtjTxB2bJpXdcG5LpddALpeADwCVSppwafCJmAYD\r\n7qzjlRrx6SUH32c2rqr3IRPAr7kGe4GRmA0=\r\n=INbr\r\n-----END PGP SIGNATURE-----\r\n","size":67095,"noattachment":false,"key":"/@apollo/usage-reporting-protobuf/-/@apollo/usage-reporting-protobuf-4.0.0-rc.2.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/usage-reporting-protobuf_4.0.0-rc.2_1664570023715_0.1481907905432278"},"_hasShrinkwrap":false,"publish_time":1664570023919,"_cnpm_publish_time":1664570023919,"dist-tags":{"alpha":"4.0.0-alpha.0","latest":"4.1.2","rc":"4.0.0-rc.2"}}