@solana/rpc-transformers
Advanced tools
Comparing version 2.0.0-canary-20240901183813 to 2.0.0-canary-20240901184101
@@ -1,6 +0,6 @@ | ||
export * from './default-commitment'; | ||
export * from './params-transformer'; | ||
export * from './params-transformer-bigint-downcast'; | ||
export * from './params-transformer-integer-overflow'; | ||
export * from './params-transformer-options-object-position-config'; | ||
export * from './request-transformer-default-commitment'; | ||
export * from './request-transformer-options-object-position-config'; | ||
export * from './response-transformer'; | ||
@@ -7,0 +7,0 @@ export * from './response-transformer-allowed-numeric-values'; |
{ | ||
"name": "@solana/rpc-transformers", | ||
"version": "2.0.0-canary-20240901183813", | ||
"version": "2.0.0-canary-20240901184101", | ||
"description": "Reusable transformers for patching RPC inputs and outputs", | ||
@@ -57,7 +57,7 @@ "exports": { | ||
"dependencies": { | ||
"@solana/errors": "2.0.0-canary-20240901183813", | ||
"@solana/functional": "2.0.0-canary-20240901183813", | ||
"@solana/rpc-subscriptions-spec": "2.0.0-canary-20240901183813", | ||
"@solana/rpc-spec": "2.0.0-canary-20240901183813", | ||
"@solana/rpc-types": "2.0.0-canary-20240901183813" | ||
"@solana/errors": "2.0.0-canary-20240901184101", | ||
"@solana/functional": "2.0.0-canary-20240901184101", | ||
"@solana/rpc-subscriptions-spec": "2.0.0-canary-20240901184101", | ||
"@solana/rpc-types": "2.0.0-canary-20240901184101", | ||
"@solana/rpc-spec": "2.0.0-canary-20240901184101" | ||
}, | ||
@@ -64,0 +64,0 @@ "peerDependencies": { |
@@ -17,2 +17,15 @@ [![npm][npm-image]][npm-url] | ||
TODO | ||
## Functions | ||
### `getDefaultCommitmentTransformer(config)` | ||
Creates a transformer that adds the provided default commitment to the configuration object of the request when applicable. | ||
```ts | ||
import { getDefaultCommitmentTransformer, OPTIONS_OBJECT_POSITION_BY_METHOD } from '@solana/rpc-transformers'; | ||
const requestTransformer = getDefaultCommitmentTransformer({ | ||
defaultCommitment: 'confirmed', | ||
optionsObjectPositionByMethod: OPTIONS_OBJECT_POSITION_BY_METHOD, | ||
}); | ||
``` |
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
216532
1702
31
+ Added@solana/addresses@2.0.0-canary-20240901184101(transitive)
+ Added@solana/assertions@2.0.0-canary-20240901184101(transitive)
+ Added@solana/codecs-core@2.0.0-canary-20240901184101(transitive)
+ Added@solana/codecs-numbers@2.0.0-canary-20240901184101(transitive)
+ Added@solana/codecs-strings@2.0.0-canary-20240901184101(transitive)
+ Added@solana/errors@2.0.0-canary-20240901184101(transitive)
+ Added@solana/functional@2.0.0-canary-20240901184101(transitive)
+ Added@solana/rpc-spec@2.0.0-canary-20240901184101(transitive)
+ Added@solana/rpc-spec-types@2.0.0-canary-20240901184101(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-canary-20240901184101(transitive)
+ Added@solana/rpc-types@2.0.0-canary-20240901184101(transitive)
- Removed@solana/addresses@2.0.0-canary-20240901183813(transitive)
- Removed@solana/assertions@2.0.0-canary-20240901183813(transitive)
- Removed@solana/codecs-core@2.0.0-canary-20240901183813(transitive)
- Removed@solana/codecs-numbers@2.0.0-canary-20240901183813(transitive)
- Removed@solana/codecs-strings@2.0.0-canary-20240901183813(transitive)
- Removed@solana/errors@2.0.0-canary-20240901183813(transitive)
- Removed@solana/functional@2.0.0-canary-20240901183813(transitive)
- Removed@solana/rpc-spec@2.0.0-canary-20240901183813(transitive)
- Removed@solana/rpc-spec-types@2.0.0-canary-20240901183813(transitive)
- Removed@solana/rpc-subscriptions-spec@2.0.0-canary-20240901183813(transitive)
- Removed@solana/rpc-types@2.0.0-canary-20240901183813(transitive)
Updated@solana/rpc-subscriptions-spec@2.0.0-canary-20240901184101