@web3-onboard/gas
Advanced tools
Comparing version 2.1.0 to 2.1.1-alpha.1
@@ -1,3 +0,3 @@ | ||
import { RequestOptions, GasPlatformResponse } from './types'; | ||
import { RequestOptions, GasPlatformResponse } from './types.js'; | ||
declare function get(options: RequestOptions): Promise<GasPlatformResponse[]>; | ||
export default get; |
import { firstValueFrom, zip } from 'rxjs'; | ||
import { ajax } from 'rxjs/ajax'; | ||
import { getRequestUrl } from './utils'; | ||
import { validateRequest } from './validation'; | ||
import { getRequestUrl } from './utils.js'; | ||
import { validateRequest } from './validation.js'; | ||
function get(options) { | ||
@@ -6,0 +6,0 @@ const invalid = validateRequest(options); |
@@ -1,4 +0,4 @@ | ||
import get from './get'; | ||
import stream from './stream'; | ||
export * from './types'; | ||
import get from './get.js'; | ||
import stream from './stream.js'; | ||
export * from './types.js'; | ||
declare const _default: { | ||
@@ -5,0 +5,0 @@ get: typeof get; |
@@ -1,4 +0,4 @@ | ||
import get from './get'; | ||
import stream from './stream'; | ||
export * from './types'; | ||
import get from './get.js'; | ||
import stream from './stream.js'; | ||
export * from './types.js'; | ||
export default { | ||
@@ -5,0 +5,0 @@ get, |
import { Observable } from 'rxjs'; | ||
import { StreamOptions, GasPlatformResponse } from './types'; | ||
import { StreamOptions, GasPlatformResponse } from './types.js'; | ||
declare function stream(options: StreamOptions): Observable<GasPlatformResponse[]>; | ||
export default stream; |
import { timer, zip } from 'rxjs'; | ||
import { switchMap } from 'rxjs/operators'; | ||
import { ajax } from 'rxjs/ajax'; | ||
import { getRequestUrl } from './utils'; | ||
import { validateRequest } from './validation'; | ||
import { getRequestUrl } from './utils.js'; | ||
import { validateRequest } from './validation.js'; | ||
function stream(options) { | ||
@@ -7,0 +7,0 @@ const invalid = validateRequest(options); |
@@ -1,2 +0,2 @@ | ||
import { ChainId, RequestEndpoint } from './types'; | ||
import { ChainId, RequestEndpoint } from './types.js'; | ||
export declare function getRequestUrl({ chainId, endpoint, apiKey }: { | ||
@@ -3,0 +3,0 @@ chainId: ChainId; |
@@ -1,3 +0,3 @@ | ||
import { RequestOptions, StreamOptions } from './types'; | ||
import { RequestOptions, StreamOptions } from './types.js'; | ||
import { type ValidateReturn } from '@web3-onboard/common'; | ||
export declare const validateRequest: (request: RequestOptions | StreamOptions) => ValidateReturn; |
{ | ||
"name": "@web3-onboard/gas", | ||
"version": "2.1.0", | ||
"version": "2.1.1-alpha.1", | ||
"description": "Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@web3-onboard/common": "^2.2.0", | ||
"@web3-onboard/common": "^2.2.1-alpha.1", | ||
"rxjs": "^7.5.2", | ||
@@ -36,0 +36,0 @@ "joi": "^17.4.2" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
7089
1