Commit Graph

77 Commits

Author SHA1 Message Date
Michael Lumish c9aad43358 grpc-js: Add support for ipv4 and ipv6 schemes 2021-04-16 13:35:42 -07:00
Michael Lumish fe4bd2641a
Merge pull request #1654 from 418sec/1-npm-grpc
Security Fix for Prototype Pollution - huntr.dev
2021-01-07 12:54:54 -08:00
d3v53c 6101694397 added test case 2020-12-07 22:40:14 -08:00
Michael Lumish a006be07f4 grpc-js-xds: Shutdown the xDS client used by the resolver when the channel shuts down 2020-11-25 12:33:36 -08:00
Michael Lumish ae2b64bd65 grpc-js: Implement deadline and cancellation propagation 2020-10-30 11:38:30 -07:00
Daniel Shmuglin 51ca00298e implement Server#unregisterService(serviceDefinition) 2020-10-29 11:33:29 +02:00
Daniel Shmuglin 7c3ccda8ff implement Server#unregister(handlerName) 2020-10-29 10:54:33 +02:00
Daniel Shmuglin e49524a2ba Server#addService - lift the limitation of adding a new service to started server 2020-10-29 10:24:31 +02:00
Michael Lumish 967eeb5443 grpc-js: Prevent prototype pollution in loadPackageDefinition 2020-10-20 11:19:22 -07:00
Michael Lumish 1fc284f59d
Revert "fix(grpc-js): Add support for impl type to server.addService" 2020-09-02 15:17:57 -07:00
Slavo Vojacek fba1ee0cc3 fix(grpc): Fix typings 2020-09-02 20:32:31 +01:00
Slavo Vojacek 38e988ea03 fix(grpc-js): Add support for impl type to server.addService 2020-08-31 20:34:14 +01:00
Michael Lumish 52eb0df1f8 grpc-js: Add XdsResolver and corresponding XdsClient behavior 2020-08-03 10:44:28 -07:00
Michael Lumish 69d4116057
Merge pull request #1413 from murgatroid99/grpc-js_pick_first_reconnect_fix
grpc-js: Fix pick_first handling of IDLE subchannels.
2020-05-21 10:29:58 -07:00
Michael Lumish c6deb79269 Test header splitting behavior 2020-05-21 10:12:08 -07:00
Michael Lumish 3d8c9af401 grpc-js: Fix pick_first handling of IDLE subchannels. Also stop reporting IDLE on LB creation 2020-05-08 10:30:56 -07:00
Alexander Fenster ebfc5c9594 fix: make stream.write() synchronous in server-call 2020-04-22 13:58:26 -07:00
Michael Lumish e0533363ec Fix "other" resolver test 2020-04-21 10:55:06 -07:00
Michael Lumish 23e2353ea0 Update tests and add new ones 2020-04-21 09:58:34 -07:00
Michael Lumish ae61562be2
Merge pull request #1364 from murgatroid99/grpc-js_uri_parsing
grpc-js: Use a more structured representation of URIs internally
2020-04-20 12:19:18 -07:00
Michael Lumish 8b16b3b699
Merge pull request #1368 from badsyntax/client-waitforready-fix
grpc-js: Client waitForReady callback fix.  Fixes #1352
2020-04-20 12:18:15 -07:00
Richard Willis 7e381f7f2a grpc-js: Simplify client.waitForReady tests. Refs #1352
No need to add a service to the server to test the client.
2020-04-20 19:14:20 +01:00
Richard Willis 615a3c65b1 grpc-js: Add test for client.waitForReady. Refs #1352 2020-04-18 09:45:22 +01:00
Michael Lumish dbe98ad090 Fix "other" resovler registration code 2020-04-16 08:34:24 -07:00
Michael Lumish 1cd0ef12f2 Fix target name in "other" resolver test 2020-04-16 07:45:29 -07:00
Michael Lumish 13cc016e4e grpc-js: Use a more structured representation of URIs internally 2020-04-15 18:04:49 -07:00
Patrick Remy 53f3daa685
Revert "grpc-js: allow any for linting globally"
This reverts commit 16ec0f0f64 and
replaces tslint-disable statements by eslint-disable.
2020-04-10 11:03:53 +02:00
Patrick Remy 0d927e6872
grpc-js: remove tslint disable statements 2020-04-09 12:10:39 +02:00
Patrick Remy 16ec0f0f64
grpc-js: allow any for linting globally
The any type is purposely used. All functions validate their input at runtime.
2020-04-09 11:52:24 +02:00
Michael Lumish 2f953e4457 grpc-js: Don't wait for TXT record to return DNS lookup result 2020-03-26 16:30:48 -07:00
murgatroid99 ca18cca813 grpc-js: tests: skip checking for IPv6 addresses from DNS servers 2020-03-10 10:47:17 -07:00
Michael Lumish f2b740f6ce grpc-js: Always return IPv6 addresses from DNS resolver 2020-03-03 10:17:10 -08:00
murgatroid99 1fe6432d92 Differentiate more strongly between TCP and IPC addresses 2020-01-29 16:50:29 -08:00
murgatroid99 c5428c5733 lint and formatting fixes 2020-01-29 09:56:49 -08:00
murgatroid99 57c18382d8 grpc-js: Use an object to represent subchannel addresses 2020-01-29 09:42:13 -08:00
murgatroid99 8af2bc83f8 Don't test irrelevant parts of output 2019-12-12 14:17:46 -08:00
James Sharp ad9e53ada6
grpc-js: fix explicit ipv6 addresses not resolving correctly 2019-11-22 12:28:57 +00:00
James Sharp dd414b6ddc
grpc-js: fix error messages truncating at commas 2019-11-20 17:36:05 +00:00
Jared Dellitt 54a95106a6 Change getDefaultAuthority in resolver to look at the registered resolvers instead of registerDefaultResolver function 2019-11-10 18:00:27 -06:00
Natan Sągol 50067fe9c4
style(grpc-js): format files using gts 2019-11-08 08:01:18 +01:00
Natan Sągol 845cfe1bd9
build: add full gts configuration and fix TSLint issues 2019-11-07 22:14:24 +01:00
Michael Lumish 974cb30a27
Merge pull request #1037 from murgatroid99/grpc-js_client_error_construction
Add function for creating errors from statuses
2019-10-09 14:43:32 -07:00
murgatroid99 50a3ead062 Don't test value of error.message 2019-10-09 13:14:30 -07:00
murgatroid99 4e7f4dff17 Also use original call metadata 2019-09-30 15:56:15 -07:00
murgatroid99 ce119ead0b Merge branch 'master' into grpc-js_uds_resolver 2019-09-27 14:24:07 -07:00
murgatroid99 06f6065692 Increase resolver test timeout 2019-09-26 17:06:51 -07:00
murgatroid99 4fb254ddb6 grpc-js: Fix TLS server name handling 2019-09-26 14:32:54 -07:00
murgatroid99 5ab1806b44 Add UDS resolver 2019-09-25 17:53:05 -07:00
Michael Lumish fe601286e6
Undo domain name change 2019-09-25 10:51:06 -07:00
Michael Lumish d27ca5d725
Switch to a more reliable domain name with a hyphen
Co-Authored-By: Natan Sągol <m@merlinnot.com>
2019-09-25 09:27:02 -07:00