@trezor/blockchain-link
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,1 +1,6 @@ | ||
# 2.1.1 | ||
#### changes | ||
- Proxy agent in Ripple worker is set based on `RippleAPI._ALLOW_AGENT` flag, in order not to fail in standalone `trezor-connect` implementation (#4942) | ||
# 2.1.0 | ||
@@ -2,0 +7,0 @@ |
@@ -339,7 +339,10 @@ "use strict"; | ||
try { | ||
api = new ripple_lib_1.RippleAPI({ | ||
const options = { | ||
server: this.endpoints[0], | ||
connectionTimeout: this.settings.timeout || DEFAULT_TIMEOUT, | ||
agent: this.proxyAgent, | ||
}); | ||
}; | ||
if (ripple_lib_1.RippleAPI._ALLOW_AGENT) { | ||
options.agent = this.proxyAgent; | ||
} | ||
api = new ripple_lib_1.RippleAPI(options); | ||
api.connection.reconnect = () => new Promise(() => { }); | ||
@@ -346,0 +349,0 @@ await api.connect(); |
{ | ||
"name": "@trezor/blockchain-link", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Trezor <info@trezor.io>", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/trezor/trezor-suite/packages/blockchain-link", |
@@ -80,23 +80,2 @@ # @trezor/blockchain-link | ||
#### Prerequisites | ||
1. Make sure you have a npm account with write access to `@trezor/blockchain-link` package. | ||
1. Update CHANGELOG.md and list all changes since the last release. | ||
1. Bump the version in `packages/blockchain-link/package.json`. Use the [semver](https://semver.org/) convention. | ||
#### Production | ||
1. `cd packages/blockchain-link` cd into the root of `blockchain-link` package. | ||
1. `yarn build:lib` Build the library. | ||
1. `npm publish` Publish! | ||
#### Beta | ||
If you want to publish to npm as `beta` (from any branch) do the following: | ||
1. `cd packages/blockchain-link` cd into the root of `blockchain-link` package. | ||
1. Change the version in `packages/blockchain-link/package.json` from `X.X.X` to `X.X.(X + 1)-beta.1`. | ||
The `-beta.<n>` suffix is important because NPM registry doesn't allow overriding already published versions. | ||
With this suffix we can publish multiple beta versions for a single patch. | ||
1. `yarn build:lib` Build the library. | ||
1. `npm publish --tag beta` Publish! | ||
[Follow instructions](../../docs/releases/npm-packages.md) how to publish @trezor package to npm registry. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5795
219943
81