{"name":"apollo-reporting-protobuf","version":"0.6.2","description":"Protobuf format for Apollo usage reporting","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"git clean -fdX -- dist","prepare":"npm run clean && mkdir dist && npm run prepare:proto && npm run pbjs && npm run pbts && cp src/* dist","pbjs":"apollo-pbjs --target static-module --out dist/protobuf.js --wrap commonjs --force-number dist/reports.proto","pbts":"apollo-pbts -o dist/protobuf.d.ts dist/protobuf.js","prepare:proto":"npm run prepare:proto:nix -s || npm run prepare:proto:win -s","prepare:proto:nix":"grep -v \"package mdg.engine.proto\" src/reports.proto > dist/reports.proto","prepare:proto:win":"type src\\reports.proto | findstr /V \"package mdg.engine.proto\" > dist/reports.proto"},"repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-server.git","directory":"packages/apollo-reporting-protobuf"},"keywords":["GraphQL","Apollo","Server","Javascript"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"homepage":"https://github.com/apollographql/apollo-server#readme","dependencies":{"@apollo/protobufjs":"^1.0.3"},"gitHead":"7e543ed5540ce5995b30b1bb2a7b54367fd49d6f","_id":"apollo-reporting-protobuf@0.6.2","_nodeVersion":"10.23.0","_npmVersion":"lerna/3.22.1/node@v10.23.0+x64 (linux)","dist":{"integrity":"sha512-WJTJxLM+MRHNUxt1RTl4zD0HrLdH44F2mDzMweBj1yHL0kSt8I1WwoiF/wiGVSpnG48LZrBegCaOJeuVbJTbtw==","shasum":"5572866be9b77f133916532b10e15fbaa4158304","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-0.6.2.tgz","fileCount":12,"unpackedSize":530518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4nwWCRA9TVsSAnZWagAAu60P/iOL2C0qWiW6otAPbUFk\npjPBAnjwnEDhl6fsnuJnJzCVvwP5h7tS+SSuwkd2BAYiTgYGvyXWSv+SKZ0L\ntpkkGKizHRssqJG1MfirN4hjo6TS6S9oSnnMjXa6PhiuaxriXJlp/1gnEMGQ\n0VDfeDt5ZjiNPbeHOASJpF5YnWYN5dZoEVSIa+kJ2Y0Cu5CtSjUD8yTkrny9\nVe8W9xsHIRgO8KKEL+WEyZi60YrZqBIFzspU6T4cjkehUcPBb9ja+T0jrpYr\nYixUF3L+XYQleocRn1iy/9HN39ZDJ3ERX465J8Q2+yzWuwz2yXGAWkGP2ozH\nQ6yZj7tIivACzncPoB4ho9T/KqefgQODLU/KP90IKu39tKSyrL7bjrPUvr5m\n4odi7B730ey78nw+fJl/5lxBPDJcgQeetZcf9LwfTLvN1qVBWuUA8ewCPj8r\n7pKt9N/w71ZFQqFsWrLU1IxOWK+mXbuOmbdDT1SLNFQc7LvQM2JtUTKpg+cJ\nVlJtZSnnIEKWBxb3UZPx3WteAisl+WDK642t4al+4ry+801dwvJ2YkYqjrtV\nXFSyDigkSCOnQc2O2RR1UU2Gp9iikHxEB9E5xsHpKi14JC59HN2ctWSKTVdT\nffamVDVetSb6TgqByezG3/QicShtUZPIJ+rytRIgui9vKzP2vTTxCM0WWHz6\n+nZM\r\n=lm6I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNKOk54ZeNXzE016rObsCJy8z3R5IagMt4p07Ybha6KgIgFIruTig9FiaY8tjSU/w1jFyz/Ygne1syQPrX9p0Ydqk="}],"size":50407,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-0.6.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/apollo-reporting-protobuf_0.6.2_1608678422168_0.6739350658111973"},"_hasShrinkwrap":false,"deprecated":"The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now end-of-life (as of October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.","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","publish_time":1608678422306,"_cnpm_publish_time":1608678422306,"dist-tags":{"alpha":"3.3.0-alpha.1","latest":"3.4.0","next":"3.0.0","preview":"3.0.0-preview.1","rc":"3.0.0-rc.0","unified":"0.6.3-unified2.1"}}