Socket
Socket
Sign inDemoInstall

@web3-onboard/gas

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-onboard/gas - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1-alpha.1

2

dist/get.d.ts

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc