Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/utils

Package Overview
Dependencies
Maintainers
9
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/utils - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

2

dist/classes/HttpClient.d.ts

@@ -5,3 +5,3 @@ import { AxiosRequestConfig } from 'axios';

private config;
constructor(endpoint: string);
constructor(endpoint: string, options?: Record<string, any>);
setConfig(config: AxiosRequestConfig): HttpClient;

@@ -8,0 +8,0 @@ get<T, P>(endpoint: string, params?: T): Promise<P>;

@@ -8,10 +8,9 @@ "use strict";

class HttpClient {
constructor(endpoint) {
constructor(endpoint, options = {
headers: {
'Content-Type': 'application/json',
},
}) {
this.config = {};
this.client = axios_1.default.create({
baseURL: endpoint,
headers: {
'Content-Type': 'application/json',
},
});
this.client = axios_1.default.create(Object.assign({ baseURL: endpoint }, options));
this.config = {};

@@ -18,0 +17,0 @@ }

{
"name": "@injectivelabs/utils",
"description": "List of utils and helper functions that can be reused throughout Injective's projects.",
"version": "1.0.14",
"version": "1.0.15",
"author": {

@@ -43,3 +43,3 @@ "name": "Bojan Angjelkoski",

},
"gitHead": "377705969bf1dd34c5a344ba3999290ab79a1f21"
"gitHead": "554b7c6e44ef563b46b82491cb4757575c51e6c9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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