@solana/transaction-confirmation
Advanced tools
Comparing version 2.0.0-canary-20240807165603 to 2.0.0-canary-20240808004408
{ | ||
"name": "@solana/transaction-confirmation", | ||
"version": "2.0.0-canary-20240807165603", | ||
"version": "2.0.0-canary-20240808004408", | ||
"description": "Helpers for confirming Solana transactions", | ||
@@ -52,11 +52,12 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-canary-20240807165603", | ||
"@solana/codecs-strings": "2.0.0-canary-20240807165603", | ||
"@solana/errors": "2.0.0-canary-20240807165603", | ||
"@solana/keys": "2.0.0-canary-20240807165603", | ||
"@solana/rpc": "2.0.0-canary-20240807165603", | ||
"@solana/rpc-subscriptions": "2.0.0-canary-20240807165603", | ||
"@solana/rpc-types": "2.0.0-canary-20240807165603", | ||
"@solana/transaction-messages": "2.0.0-canary-20240807165603", | ||
"@solana/transactions": "2.0.0-canary-20240807165603" | ||
"@solana/addresses": "2.0.0-canary-20240808004408", | ||
"@solana/errors": "2.0.0-canary-20240808004408", | ||
"@solana/keys": "2.0.0-canary-20240808004408", | ||
"@solana/codecs-strings": "2.0.0-canary-20240808004408", | ||
"@solana/rpc": "2.0.0-canary-20240808004408", | ||
"@solana/promises": "2.0.0-canary-20240808004408", | ||
"@solana/rpc-types": "2.0.0-canary-20240808004408", | ||
"@solana/rpc-subscriptions": "2.0.0-canary-20240808004408", | ||
"@solana/transaction-messages": "2.0.0-canary-20240808004408", | ||
"@solana/transactions": "2.0.0-canary-20240808004408" | ||
}, | ||
@@ -63,0 +64,0 @@ "peerDependencies": { |
@@ -105,6 +105,7 @@ [![npm][npm-image]][npm-url] | ||
```ts | ||
import { safeRace } from '@solana/promises'; | ||
import { getTimeoutPromise } from '@solana/transaction-confirmation'; | ||
try { | ||
await Promise.race([getCustomTransactionConfirmationPromise(/* ... */), getTimeoutPromise({ commitment })]); | ||
await safeRace([getCustomTransactionConfirmationPromise(/* ... */), getTimeoutPromise({ commitment })]); | ||
} catch (e) { | ||
@@ -111,0 +112,0 @@ if (e instanceof DOMException && e.name === 'TimeoutError') { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
222841
180
11
+ Added@solana/addresses@2.0.0-canary-20240808004408(transitive)
+ Added@solana/assertions@2.0.0-canary-20240808004408(transitive)
+ Added@solana/codecs-core@2.0.0-canary-20240808004408(transitive)
+ Added@solana/codecs-data-structures@2.0.0-canary-20240808004408(transitive)
+ Added@solana/codecs-numbers@2.0.0-canary-20240808004408(transitive)
+ Added@solana/codecs-strings@2.0.0-canary-20240808004408(transitive)
+ Added@solana/errors@2.0.0-canary-20240808004408(transitive)
+ Added@solana/fast-stable-stringify@2.0.0-canary-20240808004408(transitive)
+ Added@solana/functional@2.0.0-canary-20240808004408(transitive)
+ Added@solana/instructions@2.0.0-canary-20240808004408(transitive)
+ Added@solana/keys@2.0.0-canary-20240808004408(transitive)
+ Added@solana/promises@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-api@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-parsed-types@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-spec@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-spec-types@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-subscriptions@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-subscriptions-api@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-subscriptions-transport-websocket@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-transformers@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-transport-http@2.0.0-canary-20240808004408(transitive)
+ Added@solana/rpc-types@2.0.0-canary-20240808004408(transitive)
+ Added@solana/transaction-messages@2.0.0-canary-20240808004408(transitive)
+ Added@solana/transactions@2.0.0-canary-20240808004408(transitive)
- Removed@solana/addresses@2.0.0-canary-20240807165603(transitive)
- Removed@solana/assertions@2.0.0-canary-20240807165603(transitive)
- Removed@solana/codecs-core@2.0.0-canary-20240807165603(transitive)
- Removed@solana/codecs-data-structures@2.0.0-canary-20240807165603(transitive)
- Removed@solana/codecs-numbers@2.0.0-canary-20240807165603(transitive)
- Removed@solana/codecs-strings@2.0.0-canary-20240807165603(transitive)
- Removed@solana/errors@2.0.0-canary-20240807165603(transitive)
- Removed@solana/fast-stable-stringify@2.0.0-canary-20240807165603(transitive)
- Removed@solana/functional@2.0.0-canary-20240807165603(transitive)
- Removed@solana/instructions@2.0.0-canary-20240807165603(transitive)
- Removed@solana/keys@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-api@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-parsed-types@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-spec@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-spec-types@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-subscriptions@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-subscriptions-api@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-subscriptions-spec@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-subscriptions-transport-websocket@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-transformers@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-transport-http@2.0.0-canary-20240807165603(transitive)
- Removed@solana/rpc-types@2.0.0-canary-20240807165603(transitive)
- Removed@solana/transaction-messages@2.0.0-canary-20240807165603(transitive)
- Removed@solana/transactions@2.0.0-canary-20240807165603(transitive)
Updated@solana/rpc-subscriptions@2.0.0-canary-20240808004408
Updated@solana/transaction-messages@2.0.0-canary-20240808004408