coingecko-api-v3
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -5,2 +5,9 @@ # Changelog | ||
### 0.0.22 (2023-03-03) | ||
### Features | ||
* add extraHTTPSOptions ([#32](https://github.com/samuraitruong/coingecko-api-v3/issues/32)) ([75c42cf](https://github.com/samuraitruong/coingecko-api-v3/commit/75c42cf42938140657f3593478e1752b23332045)) | ||
### 0.0.21 (2023-03-02) | ||
@@ -7,0 +14,0 @@ |
@@ -56,12 +56,6 @@ "use strict"; | ||
const { host, pathname, search } = new URL(url); | ||
const options = { | ||
host, | ||
path: pathname + search, | ||
method: "GET", | ||
headers: { | ||
const options = Object.assign({ host, path: pathname + search, method: "GET", headers: { | ||
"Content-Type": "application/json", | ||
Accept: "application/json", | ||
}, | ||
timeout: this.options.timeout, // in ms | ||
}; | ||
}, timeout: this.options.timeout }, this.options.extraHTTPSOptions); | ||
const parseJson = (input) => { | ||
@@ -68,0 +62,0 @@ try { |
@@ -0,1 +1,3 @@ | ||
/// <reference types="node" /> | ||
import { RequestOptions } from 'https'; | ||
import { PLATFORMS } from './Enum'; | ||
@@ -550,2 +552,3 @@ export interface PingResponse { | ||
autoRetry?: boolean; | ||
extraHTTPSOptions?: RequestOptions; | ||
} | ||
@@ -552,0 +555,0 @@ export interface HttpResponse<T> { |
{ | ||
"name": "coingecko-api-v3", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "The nodejs api library for accessing coingecko api v3 , develop with typescript", | ||
@@ -58,6 +58,6 @@ "main": "dist/index.js", | ||
}, | ||
"packageManager": "yarn@3.2.4", | ||
"dependencies": { | ||
"https": "^1.0.0" | ||
}, | ||
"packageManager": "yarn@3.2.4" | ||
} | ||
} |
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
97619
2169