@replicode/parallax
Advanced tools
Comparing version 1.1.41 to 1.1.42
export interface ParallaxOptions { | ||
host_url: string; | ||
api_key: string; | ||
type: string; | ||
verified_wallets_only: boolean; | ||
} | ||
export declare const defaultParallaxOptions: ParallaxOptions; | ||
//# sourceMappingURL=parallax.options.d.ts.map |
@@ -5,4 +5,7 @@ "use strict"; | ||
exports.defaultParallaxOptions = { | ||
api_key: '' | ||
host_url: '', | ||
api_key: '', | ||
type: '', | ||
verified_wallets_only: false | ||
}; | ||
//# sourceMappingURL=parallax.options.js.map |
@@ -24,6 +24,6 @@ "use strict"; | ||
this.client = axios_1.default.create({ | ||
baseURL: "https://parallax.lol", | ||
baseURL: this.options.host_url, | ||
headers: { | ||
"X-API-Key": this.options.api_key, | ||
'X-EXTERNAL-TYPE': 'discord' | ||
'X-EXTERNAL-TYPE': this.options.type | ||
} | ||
@@ -30,0 +30,0 @@ }); |
{ | ||
"name": "@replicode/parallax", | ||
"version": "1.1.41", | ||
"version": "1.1.42", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
export interface ParallaxOptions { | ||
api_key:string; | ||
host_url: string | ||
api_key:string | ||
type: string | ||
verified_wallets_only: boolean | ||
} | ||
export const defaultParallaxOptions: ParallaxOptions = { | ||
api_key: '' | ||
host_url: '', | ||
api_key: '', | ||
type: '', | ||
verified_wallets_only: false | ||
}; |
@@ -23,6 +23,6 @@ import { Injectable, Logger } from '@nestjs/common'; | ||
this.client = axios.create({ | ||
baseURL: "https://parallax.lol", | ||
baseURL: this.options.host_url, | ||
headers: { | ||
"X-API-Key": this.options.api_key, | ||
'X-EXTERNAL-TYPE': 'discord' | ||
'X-EXTERNAL-TYPE': this.options.type | ||
} | ||
@@ -29,0 +29,0 @@ }); |
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
30475
670