{"name":"@grpc/grpc-js","version":"1.14.3","keywords":[],"author":{"name":"Google Inc."},"license":"Apache-2.0","_id":"@grpc/grpc-js@1.14.3","maintainers":[{"name":"murgatroid99","email":"mlumish@google.com"},{"name":"grpc-packages","email":"grpc-packages@google.com"},{"name":"nicolasnoble","email":"nicolas@nobis-crew.org"}],"contributors":[{"name":"Google Inc."}],"homepage":"https://grpc.io/","bugs":{"url":"https://github.com/grpc/grpc-node/issues"},"dist":{"shasum":"4c9b817a900ae4020ddc28515ae4b52c78cfb8da","tarball":"http://registry-npm.ywwl.com/@grpc/grpc-js/download/@grpc/grpc-js-1.14.3.tgz","fileCount":681,"integrity":"sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==","signatures":[{"sig":"MEUCIQCf++gwx4MiSo70gq3CKq1VC+sP0fhAULGEIQFtF0IxkAIgUfTa74rwxZr1jEMqIeViwA1XqGOycGxHq8IibnNm6NM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2503452,"size":436218,"noattachment":false,"key":"/@grpc/grpc-js/-/@grpc/grpc-js-1.14.3.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=12.10.0"},"gitHead":"ccd29b27d28ce8937f8250f72e5e6027ed5af09a","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 copy-protos && npm run generate-types && npm run generate-test-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","copy-protos":"node ./copy-protos","generate-types":"proto-loader-gen-types --keepCase --longs String --enums String --defaults --oneofs --includeComments --includeDirs proto/ --include-dirs proto/ proto/xds/ proto/protoc-gen-validate/ -O src/generated/ --grpcLib ../index channelz.proto xds/service/orca/v3/orca.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 echo_service.proto"},"_npmUser":{"name":"murgatroid99","email":"mlumish@google.com"},"repository":{"url":"git+https://github.com/grpc/grpc-node.git#master","type":"git"},"_npmVersion":"10.9.4","description":"gRPC Library for Node - pure JS implementation","directories":{},"_nodeVersion":"22.21.1","dependencies":{"@grpc/proto-loader":"^0.8.0","@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.14.3_1765466161376_0.5189383172065998","host":"s3://npm-registry-packages-npm-production"},"readme":"# Pure JavaScript gRPC Client\r\n\r\n## Installation\r\n\r\nNode 12 is recommended. The exact set of compatible Node versions can be found in the `engines` field of the `package.json` file.\r\n\r\n```sh\r\nnpm install @grpc/grpc-js\r\n```\r\n\r\n## Documentation\r\n\r\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.\r\n\r\n## Features\r\n\r\n- Clients\r\n- Automatic reconnection\r\n- Servers\r\n- Streaming\r\n- Metadata\r\n- Partial compression support: clients can compress and decompress messages, and servers can decompress request messages\r\n- Pick first and round robin load balancing policies\r\n- Client Interceptors\r\n- Connection Keepalives\r\n- HTTP Connect support (proxies)\r\n\r\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.\r\n\r\nThis library does not directly handle `.proto` files. To use `.proto` files with this library we recommend using the `@grpc/proto-loader` package.\r\n\r\n## Migrating from [`grpc`](https://www.npmjs.com/package/grpc)\r\n\r\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:\r\n\r\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`.\r\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`.\r\n- If you have a server and you are using `Server#bind` to bind ports, you will need to use `Server#bindAsync` instead.\r\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.\r\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`.\r\n\r\n## Supported Channel Options\r\nMany channel arguments supported in `grpc` are not supported in `@grpc/grpc-js`. The channel arguments supported by `@grpc/grpc-js` are:\r\n  - `grpc.ssl_target_name_override`\r\n  - `grpc.primary_user_agent`\r\n  - `grpc.secondary_user_agent`\r\n  - `grpc.default_authority`\r\n  - `grpc.keepalive_time_ms`\r\n  - `grpc.keepalive_timeout_ms`\r\n  - `grpc.keepalive_permit_without_calls`\r\n  - `grpc.service_config`\r\n  - `grpc.max_concurrent_streams`\r\n  - `grpc.initial_reconnect_backoff_ms`\r\n  - `grpc.max_reconnect_backoff_ms`\r\n  - `grpc.use_local_subchannel_pool`\r\n  - `grpc.max_send_message_length`\r\n  - `grpc.max_receive_message_length`\r\n  - `grpc.enable_http_proxy`\r\n  - `grpc.default_compression_algorithm`\r\n  - `grpc.enable_channelz`\r\n  - `grpc.dns_min_time_between_resolutions_ms`\r\n  - `grpc.enable_retries`\r\n  - `grpc.max_connection_age_ms`\r\n  - `grpc.max_connection_age_grace_ms`\r\n  - `grpc.max_connection_idle_ms`\r\n  - `grpc.per_rpc_retry_buffer_size`\r\n  - `grpc.retry_buffer_size`\r\n  - `grpc.service_config_disable_resolution`\r\n  - `grpc.client_idle_timeout_ms`\r\n  - `grpc-node.max_session_memory`\r\n  - `grpc-node.tls_enable_trace`\r\n  - `grpc-node.retry_max_attempts_limit`\r\n  - `grpc-node.flow_control_window`\r\n  - `channelOverride`\r\n  - `channelFactoryOverride`\r\n\r\n## Some Notes on API Guarantees\r\n\r\nThe public API of this library follows semantic versioning, with some caveats:\r\n\r\n- Some methods are prefixed with an underscore. These methods are internal and should not be considered part of the public API.\r\n- The class `Call` is only exposed due to limitations of TypeScript. It should not be considered part of the public API.\r\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.\r\n- The `grpc.experimental` namespace contains APIs that have not stabilized. Any API in that namespace may break in any minor version update.\r\n","publish_time":1765466161552,"_cnpm_publish_time":1765466161552,"dist-tags":{"false":"1.9.16","latest":"1.14.7","previous":"1.13.7"}}