{"name":"apollo-reporting-protobuf","version":"0.6.0","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":"2aab7fd973bf352a0de28b2385dbad4be7c7fabc","_id":"apollo-reporting-protobuf@0.6.0","_nodeVersion":"10.22.1","_npmVersion":"lerna/3.22.1/node@v10.22.1+x64 (linux)","dist":{"integrity":"sha512-AFLQIuO0QhkoCF+41Be/B/YU0C33BZ0opfyXorIjM3MNNiEDSyjZqmUozlB3LqgfhT9mn2IR5RSsA+1b4VovDQ==","shasum":"179e49e99229851d588b1fe6faff4ffdcf503224","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-0.6.0.tgz","fileCount":12,"unpackedSize":527130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaXxhCRA9TVsSAnZWagAA+v0P/AgT7GcUgASB3Bur/7J4\nt0oVWc1tyQd+5imH5+vt/GoWmdPBGeHTxMRkx+Q3sXX3BV8meqGBThthM/k8\nyIv20IgIHZ9v3ZcJFyxgYBdCS3BRWQtywa2NHsGLjskkdj/qMc7rLyUDqIWu\n/1L5ZjSQeDBfccVx/Bj42XwbqB6GWPoUnInV5yVsSPYi72+mHbka7Z7tqB/Z\nAIBEMUmpxYhjy+3E7wmzJqIHEdKE2i1hgRY4/ogVyXCvW4LbkC70fg2RQuzN\n1qgwAyVTbmQjBeaVtOh9acqwdf0fo7IRPDudabQE3X+h91CBVXlYjLH0eRNR\nQSoyoZd+0mgB3/KJWy+yUCuuSB9JeQBl4ULgj80LStjckUvEW/stg4tTCQxV\n7TggkI32b8fwT96MnNwJLAoJr6eKNHUrynd5pxhymoeMuKXMVqYEbCZapbu8\neVvTN6RKPxhCFZVCCQqpWPQdks6iXOWPWBVVRvc48CGYqHzdE/OKc08OYjkj\nBqcwUFSGsuHfupF/f6Aza3Njk6CaLaXfwHu1LK8G3KOhyfdMBC+YGuSUsIzU\n4bEQy91r8UaFf88ZSIwqciZry6JkcYfKwO3T/tj+JcSvCSOTcMBG2Csk5i3B\njMosgg7XwumQQCepmhZeKd7z4Sc1ABBAdnHP/j0CMAZ+6ytEhSeFUEjuH2dH\nNbdW\r\n=VWTv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6R0Vk5VHsmCrIPBbyEUkEyGGGK+Yav1jA2mkBK5mhQgIgObvRrT8b1rh4K0i6PerPYiQWVNN5haLPucqjMMuQVvA="}],"size":50056,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-0.6.0.tgz"},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-reporting-protobuf_0.6.0_1600748640433_0.7756928318807244"},"_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":1600748640671,"_cnpm_publish_time":1600748640671,"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"}}