Skip to content

Commit 77dc2ef

Browse files
committed
updated grpc-web to latest version
1 parent 70a5201 commit 77dc2ef

File tree

6 files changed

+30
-378
lines changed

6 files changed

+30
-378
lines changed

go/authorization-service/lastdeployed.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

go/authorization-service/service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ type AuthService struct {
3838
users map[string]user
3939
}
4040

41-
// inject a header that can be used for future rate limiting
4241
func (a *AuthService) Check(_ context.Context, req *auth.CheckRequest) (*auth.CheckResponse, error) {
4342

4443
path, ok := req.Attributes.Request.Http.Headers[":path"]

go/authorization-service/telepresence.log

Lines changed: 0 additions & 357 deletions
This file was deleted.

react/opentp-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"flexlayout-react": "^0.3.4",
2121
"google-protobuf": "^3.10.0",
2222
"grpc": "^1.24.2",
23-
"grpc-web": "^1.0.7",
23+
"grpc-web": "^1.2.1",
2424
"local-storage": "^2.0.0",
2525
"loglevel": "^1.7.0",
2626
"node-fetch": "^2.6.1",

react/opentp-client/src/components/OrderTicket/OrderTicket.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AnchorButton, Classes, Colors, Dialog, FormGroup, Intent, Label, NumericInput, MenuItem, Button } from '@blueprintjs/core';
2-
import { Error } from 'grpc-web';
2+
import { Error, StatusCode } from 'grpc-web';
33
import React, { CSSProperties } from 'react';
44
import { getListingLongName, getListingShortName, getTickSize } from '../../common/modelutilities';
55
import log from 'loglevel';
@@ -78,7 +78,7 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
7878
<MenuItem
7979
active={modifiers.active}
8080
disabled={modifiers.disabled}
81-
81+
8282
key={destinationMic}
8383
onClick={handleClick}
8484
text={text}
@@ -88,8 +88,8 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
8888
}
8989

9090

91-
private getDestinationDisplayName(destinationMic: string | undefined) : string | undefined{
92-
if( ! destinationMic) {
91+
private getDestinationDisplayName(destinationMic: string | undefined): string | undefined {
92+
if (!destinationMic) {
9393
return "UNKNOWN"
9494
}
9595

@@ -224,8 +224,8 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
224224

225225
<Label>{this.getListingFullName()}</Label>
226226
<div style={{ display: 'flex', flexDirection: 'row', paddingTop: 0, alignItems: "left" }}>
227-
<Label style={{ color: Colors.LIME3, width: 150 }}>{this.getBidText(this.state.quote)}</Label>
228-
<Label style={{ color: Colors.ORANGE3 }}>{this.getAskText(this.state.quote)}</Label>
227+
<Label style={{ color: Colors.LIME3, width: 150 }}>{this.getBidText(this.state.quote)}</Label>
228+
<Label style={{ color: Colors.ORANGE3 }}>{this.getAskText(this.state.quote)}</Label>
229229
</div>
230230

231231
<FormGroup
@@ -553,7 +553,13 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
553553
if (err) {
554554
let msg = "error whilst sending order:" + err.message
555555
log.error(msg)
556-
alert(msg)
556+
if (err.code === StatusCode.PERMISSION_DENIED) {
557+
alert("permission denied")
558+
} else {
559+
alert(msg)
560+
}
561+
562+
557563
} else {
558564
log.debug("create and route order created order with id:" + response.getOrderid())
559565
}

react/opentp-client/yarn.lock

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,9 +1552,9 @@
15521552
"@babel/types" "^7.3.0"
15531553

15541554
"@types/bytebuffer@^5.0.40":
1555-
version "5.0.41"
1556-
resolved "https://registry.yarnpkg.com/@types/bytebuffer/-/bytebuffer-5.0.41.tgz#6850dba4d4cd2846596b4842874d5bfc01cd3db1"
1557-
integrity sha512-Mdrv4YcaHvpkx25ksqqFaezktx3yZRcd51GZY0rY/9avyaqZdiT/GiWRhfrJhMpgzXqTOSHgGvsumGxJFNiZZA==
1555+
version "5.0.42"
1556+
resolved "https://registry.yarnpkg.com/@types/bytebuffer/-/bytebuffer-5.0.42.tgz#1c602a77942d34c5c0879ad75c58d5d8c07dfb3b"
1557+
integrity sha512-lEgKojWUAc/MG2t649oZS5AfYFP2xRNPoDuwDBlBMjHXd8MaGPgFgtCXUK7inZdBOygmVf10qxc1Us8GXC96aw==
15581558
dependencies:
15591559
"@types/long" "*"
15601560
"@types/node" "*"
@@ -1646,9 +1646,9 @@
16461646
form-data "^3.0.0"
16471647

16481648
"@types/node@*":
1649-
version "14.6.0"
1650-
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.6.0.tgz#7d4411bf5157339337d7cff864d9ff45f177b499"
1651-
integrity sha512-mikldZQitV94akrc4sCcSjtJfsTKt4p+e/s0AGscVA6XArQ9kFclP+ZiYUMnq987rc6QlYxXv/EivqlfSLxpKA==
1649+
version "14.14.0"
1650+
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.0.tgz#f1091b6ad5de18e8e91bdbd43ec63f13de372538"
1651+
integrity sha512-BfbIHP9IapdupGhq/hc+jT5dyiBVZ2DdeC5WwJWQWDb0GijQlzUFAeIQn/2GtvZcd2HVUU7An8felIICFTC2qg==
16521652

16531653
16541654
version "12.0.10"
@@ -5221,7 +5221,7 @@ growly@^1.3.0:
52215221
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
52225222
integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=
52235223

5224-
grpc-web@^1.0.7:
5224+
grpc-web@^1.2.1:
52255225
version "1.2.1"
52265226
resolved "https://registry.yarnpkg.com/grpc-web/-/grpc-web-1.2.1.tgz#860051d705bf5baa7b81fcbd14030060bf16b7b9"
52275227
integrity sha512-ibBaJPzfMVuLPgaST9w0kZl60s+SnkPBQp6QKdpEr85tpc1gXW2QDqSne9xiyiym0logDfdUSm4aX5h9YBA2mw==
@@ -7332,11 +7332,16 @@ [email protected]:
73327332
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
73337333
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
73347334

7335-
nan@^2.12.1, nan@^2.13.2:
7335+
nan@^2.12.1:
73367336
version "2.14.1"
73377337
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01"
73387338
integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==
73397339

7340+
nan@^2.13.2:
7341+
version "2.14.2"
7342+
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19"
7343+
integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==
7344+
73407345
nanomatch@^1.2.9:
73417346
version "1.2.13"
73427347
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
@@ -7360,9 +7365,9 @@ natural-compare@^1.4.0:
73607365
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
73617366

73627367
needle@^2.5.0:
7363-
version "2.5.0"
7364-
resolved "https://registry.yarnpkg.com/needle/-/needle-2.5.0.tgz#e6fc4b3cc6c25caed7554bd613a5cf0bac8c31c0"
7365-
integrity sha512-o/qITSDR0JCyCKEQ1/1bnUXMmznxabbwi/Y4WwJElf+evwJNFNwIDMCCt5IigFVxgeGBJESLohGtIS9gEzo1fA==
7368+
version "2.5.2"
7369+
resolved "https://registry.yarnpkg.com/needle/-/needle-2.5.2.tgz#cf1a8fce382b5a280108bba90a14993c00e4010a"
7370+
integrity sha512-LbRIwS9BfkPvNwNHlsA41Q29kL2L/6VaOJ0qisM5lLWsTV3nP15abO5ITL6L81zqFhzjRKDAYjpcBcwM0AVvLQ==
73667371
dependencies:
73677372
debug "^3.2.6"
73687373
iconv-lite "^0.4.4"

0 commit comments

Comments
 (0)