Skip to content

CT-382: Send BitGoJS version in BitGo Express user agent string#392

Merged
tylerlevine merged 2 commits into
masterfrom
CT-382-bitgojs-version-user-agent
Jun 27, 2019
Merged

CT-382: Send BitGoJS version in BitGo Express user agent string#392
tylerlevine merged 2 commits into
masterfrom
CT-382-bitgojs-version-user-agent

Conversation

@tylerlevine

Copy link
Copy Markdown
Contributor

No description provided.

@tylerlevine tylerlevine requested a review from dannydeezy as a code owner June 23, 2019 00:01
@codecov

codecov Bot commented Jun 23, 2019

Copy link
Copy Markdown

Codecov Report

Merging #392 into master will increase coverage by 22.33%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #392       +/-   ##
===========================================
+ Coverage   38.45%   60.79%   +22.33%     
===========================================
  Files          73       74        +1     
  Lines        9805     9812        +7     
  Branches     2138     2139        +1     
===========================================
+ Hits         3771     5965     +2194     
+ Misses       5393     2913     -2480     
- Partials      641      934      +293
Flag Coverage Δ
#integration 38.45% <ø> (ø) ⬆️
#unit 54.69% <ø> (?)
Impacted Files Coverage Δ
src/v2/trading/trade.ts 100% <0%> (ø)
src/v2/coins/bsv.ts 35.06% <0%> (+1.29%) ⬆️
src/keychains.ts 34% <0%> (+1.33%) ⬆️
src/v2/coinFactory.ts 94.84% <0%> (+2.06%) ⬆️
src/v2/coins/token.ts 71.52% <0%> (+2.64%) ⬆️
src/util.ts 64.78% <0%> (+2.81%) ⬆️
src/v2/coins/tbch.ts 78.57% <0%> (+3.57%) ⬆️
src/v2/coins/txlm.ts 78.57% <0%> (+3.57%) ⬆️
src/index.ts 96% <0%> (+4%) ⬆️
src/v2/coins/txrp.ts 76% <0%> (+4%) ⬆️
... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 642af07...ea00776. Read the comment docs.

dannydeezy
dannydeezy previously approved these changes Jun 25, 2019
@tylerlevine tylerlevine force-pushed the CT-382-bitgojs-version-user-agent branch 2 times, most recently from e13953b to e2d89e0 Compare June 25, 2019 20:22
@tylerlevine tylerlevine force-pushed the CT-382-bitgojs-version-user-agent branch from e2d89e0 to ea00776 Compare June 26, 2019 19:39
import { TlsConfigurationError, NodeEnvironmentError } from './errors';

const BITGOEXPRESS_USER_AGENT = 'BitGoExpress/' + pjson.version;
const BITGOEXPRESS_USER_AGENT = `BitGoExpress/${pjson.version} BitGoJS/${version}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean to have a space after ${pjson.version} ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is intentional. It's handled correctly by the user agent parsing code in the backend.

@tylerlevine tylerlevine requested a review from dannydeezy June 27, 2019 05:26
@tylerlevine tylerlevine merged commit 1f07cbc into master Jun 27, 2019
@0xabrarhussain 0xabrarhussain deleted the CT-382-bitgojs-version-user-agent branch October 14, 2021 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants