@coinbase/coinbase-sdk
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -87,5 +87,7 @@ import { ApiClients, CoinbaseConfigureFromJsonOptions, CoinbaseOptions } from "./types"; | ||
* @param options.basePath - The base path for the API. Defaults to BASE_PATH. | ||
* @param options.source - Optional source string to be sent with the API requests. Defaults to `sdk`. | ||
* @param options.sourceVersion - Optional source version string to be sent with the API requests. | ||
* @returns A new instance of the Coinbase SDK. | ||
*/ | ||
static configure({ apiKeyName, privateKey, useServerSigner, debugging, basePath, }: CoinbaseOptions): Coinbase; | ||
static configure({ apiKeyName, privateKey, useServerSigner, debugging, basePath, source, sourceVersion, }: CoinbaseOptions): Coinbase; | ||
/** | ||
@@ -92,0 +94,0 @@ * Reads the API key and private key from a JSON file and initializes the Coinbase SDK. |
@@ -112,5 +112,7 @@ "use strict"; | ||
* @param options.basePath - The base path for the API. Defaults to BASE_PATH. | ||
* @param options.source - Optional source string to be sent with the API requests. Defaults to `sdk`. | ||
* @param options.sourceVersion - Optional source version string to be sent with the API requests. | ||
* @returns A new instance of the Coinbase SDK. | ||
*/ | ||
static configure({ apiKeyName, privateKey, useServerSigner = false, debugging = false, basePath = base_1.BASE_PATH, }) { | ||
static configure({ apiKeyName, privateKey, useServerSigner = false, debugging = false, basePath = base_1.BASE_PATH, source = "sdk", sourceVersion = undefined, }) { | ||
return new Coinbase({ | ||
@@ -122,2 +124,4 @@ apiKeyName, | ||
basePath, | ||
source, | ||
sourceVersion, | ||
}); | ||
@@ -124,0 +128,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"repository": "https://github.com/coinbase/coinbase-sdk-nodejs", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"main": "dist/index.js", | ||
@@ -10,0 +10,0 @@ "types": "dist/index.d.ts", |
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
1789063
38446