{"name":"@grpc/grpc-js","version":"1.12.1","keywords":[],"author":{"name":"Google Inc."},"license":"Apache-2.0","_id":"@grpc/grpc-js@1.12.1","contributors":[{"name":"Google Inc."}],"homepage":"https://grpc.io/","bugs":{"url":"https://github.com/grpc/grpc-node/issues"},"dist":{"shasum":"e34ac2b7f30cfb1814c0dcf47ba5c69ce7a65858","tarball":"http://registry-npm.ywwl.com/@grpc/grpc-js/download/@grpc/grpc-js-1.12.1.tgz","fileCount":444,"integrity":"sha512-VYrLinJNeW3idIZHTy7BsVL7bsPF9+l89WDYTDV8o1QYJzkf3BSoPXdfaz4c8DyeY12LGSaS8m8BgbT8W66h6Q==","signatures":[{"sig":"MEUCIQCtsJ26byekccf5M/JQ4A+SP/2AHG1syxzBV03fx6/PwAIgHFEUNhS5lqC+kaA8uF6pxs8xKP2uE7WhCcVvpxPQ1s4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1935235,"size":354628,"noattachment":false,"key":"/@grpc/grpc-js/-/@grpc/grpc-js-1.12.1.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=12.10.0"},"gitHead":"dce227236222f2613b24ef3451fb2c8ac6dfd7ef","scripts":{"fix":"eslint --fix src/*.ts test/*.ts","lint":"eslint src/*.ts test/*.ts","test":"gulp test","build":"npm run compile","check":"npm run lint","clean":"rimraf ./build","format":"clang-format -i -style=\"{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}\" src/*.ts test/*.ts","compile":"tsc -p .","prepare":"npm run generate-types && npm run compile","pretest":"npm run generate-types && npm run generate-test-types && npm run compile","posttest":"npm run check && madge -c ./build/src","generate-types":"proto-loader-gen-types --keepCase --longs String --enums String --defaults --oneofs --includeComments --includeDirs proto/ --include-dirs test/fixtures/ -O src/generated/ --grpcLib ../index channelz.proto","generate-test-types":"proto-loader-gen-types --keepCase --longs String --enums String --defaults --oneofs --includeComments --include-dirs test/fixtures/ -O test/generated/ --grpcLib ../../src/index test_service.proto"},"_npmUser":{"name":"murgatroid99","email":"mlumish@google.com"},"repository":{"url":"git+https://github.com/grpc/grpc-node.git#master","type":"git"},"_npmVersion":"9.5.1","description":"gRPC Library for Node - pure JS implementation","directories":{},"_nodeVersion":"18.16.1","dependencies":{"@grpc/proto-loader":"^0.7.13","@js-sdsl/ordered-map":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"ncp":"^2.0.0","gulp":"^4.0.2","pify":"^4.0.1","execa":"^2.0.3","madge":"^5.0.1","eslint":"^8.42.0","lodash":"^4.17.21","rimraf":"^3.0.2","semver":"^7.6.0","ts-node":"^10.9.2","prettier":"^2.8.8","@types/ncp":"^2.0.8","gulp-mocha":"^6.0.0","typescript":"^5.3.3","@types/gulp":"^4.0.17","@types/node":">=20.11.20","@types/pify":"^5.0.4","@types/mocha":"^10.0.6","clang-format":"^1.8.0","@types/lodash":"^4.14.202","@types/semver":"^7.5.8","@types/gulp-mocha":"0.0.37","@grpc/proto-loader":"file:../proto-loader","eslint-plugin-node":"^11.1.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","mocha-jenkins-reporter":"^0.4.1","@typescript-eslint/parser":"^7.1.0","@typescript-eslint/eslint-plugin":"^7.1.0","@typescript-eslint/typescript-estree":"^7.1.0"},"_npmOperationalInternal":{"tmp":"tmp/grpc-js_1.12.1_1728410291165_0.6825988323108572","host":"s3://npm-registry-packages"},"readme":"# Pure JavaScript gRPC Client\n\n## Installation\n\nNode 12 is recommended. The exact set of compatible Node versions can be found in the `engines` field of the `package.json` file.\n\n```sh\nnpm install @grpc/grpc-js\n```\n\n## Documentation\n\nDocumentation specifically for the `@grpc/grpc-js` package is currently not available. However, [documentation is available for the `grpc` package](https://grpc.github.io/grpc/node/grpc.html), and the two packages contain mostly the same interface. There are a few notable differences, however, and these differences are noted in the \"Migrating from grpc\" section below.\n\n## Features\n\n- Clients\n- Automatic reconnection\n- Servers\n- Streaming\n- Metadata\n- Partial compression support: clients can compress and decompress messages, and servers can decompress request messages\n- Pick first and round robin load balancing policies\n- Client Interceptors\n- Connection Keepalives\n- HTTP Connect support (proxies)\n\nIf you need a feature from the `grpc` package that is not provided by the `@grpc/grpc-js`, please file a feature request with that information.\n\nThis library does not directly handle `.proto` files. To use `.proto` files with this library we recommend using the `@grpc/proto-loader` package.\n\n## Migrating from [`grpc`](https://www.npmjs.com/package/grpc)\n\n`@grpc/grpc-js` is almost a drop-in replacement for `grpc`, but you may need to make a few code changes to use it:\n\n- If you are currently loading `.proto` files using `grpc.load`, that function is not available in this library. You should instead load your `.proto` files using `@grpc/proto-loader` and load the resulting package definition objects into `@grpc/grpc-js` using `grpc.loadPackageDefinition`.\n- If you are currently loading packages generated by `grpc-tools`, you should instead generate your files using the `generate_package_definition` option in `grpc-tools`, then load the object exported by the generated file into `@grpc/grpc-js` using `grpc.loadPackageDefinition`.\n- If you have a server and you are using `Server#bind` to bind ports, you will need to use `Server#bindAsync` instead.\n- If you are using any channel options supported in `grpc` but not supported in `@grpc/grpc-js`, you may need to adjust your code to handle the different behavior. Refer to [the list of supported options](#supported-channel-options) below.\n- Refer to the [detailed package comparison](https://github.com/grpc/grpc-node/blob/master/PACKAGE-COMPARISON.md) for more details on the differences between `grpc` and `@grpc/grpc-js`.\n\n## Supported Channel Options\nMany channel arguments supported in `grpc` are not supported in `@grpc/grpc-js`. The channel arguments supported by `@grpc/grpc-js` are:\n  - `grpc.ssl_target_name_override`\n  - `grpc.primary_user_agent`\n  - `grpc.secondary_user_agent`\n  - `grpc.default_authority`\n  - `grpc.keepalive_time_ms`\n  - `grpc.keepalive_timeout_ms`\n  - `grpc.keepalive_permit_without_calls`\n  - `grpc.service_config`\n  - `grpc.max_concurrent_streams`\n  - `grpc.initial_reconnect_backoff_ms`\n  - `grpc.max_reconnect_backoff_ms`\n  - `grpc.use_local_subchannel_pool`\n  - `grpc.max_send_message_length`\n  - `grpc.max_receive_message_length`\n  - `grpc.enable_http_proxy`\n  - `grpc.default_compression_algorithm`\n  - `grpc.enable_channelz`\n  - `grpc.dns_min_time_between_resolutions_ms`\n  - `grpc.enable_retries`\n  - `grpc.max_connection_age_ms`\n  - `grpc.max_connection_age_grace_ms`\n  - `grpc.max_connection_idle_ms`\n  - `grpc.per_rpc_retry_buffer_size`\n  - `grpc.retry_buffer_size`\n  - `grpc.service_config_disable_resolution`\n  - `grpc.client_idle_timeout_ms`\n  - `grpc-node.max_session_memory`\n  - `grpc-node.tls_enable_trace`\n  - `grpc-node.retry_max_attempts_limit`\n  - `channelOverride`\n  - `channelFactoryOverride`\n\n## Some Notes on API Guarantees\n\nThe public API of this library follows semantic versioning, with some caveats:\n\n- Some methods are prefixed with an underscore. These methods are internal and should not be considered part of the public API.\n- The class `Call` is only exposed due to limitations of TypeScript. It should not be considered part of the public API.\n- In general, any API that is exposed by this library but is not exposed by the `grpc` library is likely an error and should not be considered part of the public API.\n- The `grpc.experimental` namespace contains APIs that have not stabilized. Any API in that namespace may break in any minor version update.\n","publish_time":1728410291570,"maintainers":[{"name":"murgatroid99","email":"mlumish@google.com"},{"name":"grpc-packages","email":"grpc-packages@google.com"},{"name":"nicolasnoble","email":"nicolas@nobis-crew.org"}],"_cnpm_publish_time":1728410291570,"dist-tags":{"false":"1.9.16","latest":"1.14.7","previous":"1.13.7"}}