Comparing version 0.2.10 to 0.3.0
@@ -0,0 +0,0 @@ import { IntervalEnum } from "../constants"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare const API_BASE = "https://api.nomics.com"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { CurrencyTickerInterval, ICurrenciesTickerOptions, IRawCurrencyTicker } from "./api/currencies_ticker"; | ||
import { IExchangesTickerOptions } from "./api/exchanges_ticker"; | ||
import { IntervalEnum } from "./constants"; | ||
@@ -19,3 +20,4 @@ export { IRawCurrencyTicker, CurrencyTickerInterval }; | ||
currenciesTicker(options?: ICurrenciesTickerOptions): Promise<IRawCurrencyTicker[]>; | ||
exchangesTicker(options?: IExchangesTickerOptions): Promise<import("./api/exchanges_ticker").IRawExchangeTicker[]>; | ||
} | ||
export default Nomics; |
@@ -7,2 +7,3 @@ "use strict"; | ||
var currencies_ticker_1 = __importDefault(require("./api/currencies_ticker")); | ||
var exchanges_ticker_1 = __importDefault(require("./api/exchanges_ticker")); | ||
var constants_1 = require("./constants"); | ||
@@ -34,2 +35,5 @@ exports.IntervalEnum = constants_1.IntervalEnum; | ||
}; | ||
Nomics.prototype.exchangesTicker = function (options) { | ||
return exchanges_ticker_1.default(this.apiKey, options); | ||
}; | ||
Nomics.baseUrl = constants_1.API_BASE; | ||
@@ -36,0 +40,0 @@ return Nomics; |
export declare const fetchJSON: (path: string) => Promise<any>; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare const isEmpty: (str?: any) => boolean; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare const objToUrlParams: (obj: any) => string; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "nomics", | ||
"version": "0.2.10", | ||
"version": "0.3.0", | ||
"description": "", | ||
@@ -20,2 +20,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@babel/runtime-corejs2": "^7.5.5", | ||
"@types/jest": "^24.0.0", | ||
@@ -31,3 +32,7 @@ "jest": "^24.8.0", | ||
"cross-fetch": "^3.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/nomics-crypto/nomics-javascript" | ||
} | ||
} |
@@ -6,2 +6,5 @@ import currenciesTicker, { | ||
} from "./api/currencies_ticker"; | ||
import exchangesTicker, { | ||
IExchangesTickerOptions | ||
} from "./api/exchanges_ticker"; | ||
import { API_BASE, IntervalEnum } from "./constants"; | ||
@@ -51,4 +54,8 @@ import { isEmpty } from "./utils/str"; | ||
} | ||
public exchangesTicker(options?: IExchangesTickerOptions) { | ||
return exchangesTicker(this.apiKey, options); | ||
} | ||
} | ||
export default Nomics; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
191582
40
782
0
0
8