@melonproject/ea-common
Advanced tools
| (function (factory) { | ||
| typeof define === 'function' && define.amd ? define(factory) : | ||
| factory(); | ||
| }(function () { 'use strict'; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| })); | ||
| //# sourceMappingURL=bundle.umd.js.map |
| {"version":3,"file":"bundle.umd.js","sources":["index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;;;;CACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;;;;"} |
| export * from './types'; |
+2
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
+28
| import * as Rx from 'rxjs'; | ||
| import BigNumber from 'bignumber.js'; | ||
| export declare type Symbol = string; | ||
| export interface Token { | ||
| address: string; | ||
| decimals: number; | ||
| symbol: string; | ||
| } | ||
| export interface TokenAssetPair { | ||
| base: Token; | ||
| quote: Token; | ||
| } | ||
| export interface SymbolAssetPair { | ||
| base: Symbol; | ||
| quote: Symbol; | ||
| } | ||
| export declare type OrderbookObserver<O = {}, A extends Symbol | Token = Symbol> = (options?: O) => Rx.Observable<Orderbook<A>>; | ||
| export declare type OrderbookFetcher<O = {}, A extends Symbol | Token = Symbol> = (options?: O) => Promise<Orderbook<A>>; | ||
| export interface Orderbook<A extends Symbol | Token = Symbol> { | ||
| base: A; | ||
| quote: A; | ||
| asks: OrderbookEntry[]; | ||
| bids: OrderbookEntry[]; | ||
| } | ||
| export interface OrderbookEntry { | ||
| price: BigNumber; | ||
| volume: BigNumber; | ||
| } |
+2
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
+10
-9
| { | ||
| "name": "@melonproject/ea-common", | ||
| "version": "1.0.0-alpha.0", | ||
| "version": "2.0.2", | ||
| "description": "Common functionality for the exchange aggregator packages.", | ||
| "main": "./lib/index.js", | ||
| "module": "./lib/bundle.esm.js", | ||
| "typings": "./lib/index.d.ts", | ||
| "main": "./index.js", | ||
| "module": "./bundle.esm.js", | ||
| "typings": "./index.d.ts", | ||
| "author": "Melonport AG <team@melonport.com>", | ||
@@ -12,3 +12,4 @@ "license": "GPL-3.0", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| "access": "public", | ||
| "directory": "lib" | ||
| }, | ||
@@ -29,6 +30,5 @@ "contributors": [ | ||
| ], | ||
| "files": [ | ||
| "lib/" | ||
| ], | ||
| "scripts": { | ||
| "postversion": "cp package.json lib", | ||
| "postbuild": "cp package.json lib", | ||
| "prepare": "yarn build", | ||
@@ -54,2 +54,3 @@ "build": "rimraf lib && tsc --project . && rollup --config", | ||
| "commander": "^3.0.1", | ||
| "cp": "^0.2.0", | ||
| "debug": "^4.0.1", | ||
@@ -75,3 +76,3 @@ "jest": "^24.8.0", | ||
| }, | ||
| "gitHead": "67037d693007707f5eae7da602b5f0293eeb5868" | ||
| "gitHead": "a3de5afde8fd78706b84239ff9b3f97dc043c738" | ||
| } |
| (function (factory) { | ||
| typeof define === 'function' && define.amd ? define(factory) : | ||
| factory(); | ||
| }(function () { 'use strict'; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| })); | ||
| //# sourceMappingURL=bundle.umd.js.map |
| {"version":3,"file":"bundle.umd.js","sources":["index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;;;;CACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;;;;"} |
| export * from './types'; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import * as Rx from 'rxjs'; | ||
| import BigNumber from 'bignumber.js'; | ||
| export declare type Symbol = string; | ||
| export interface Token { | ||
| address: string; | ||
| decimals: number; | ||
| symbol: string; | ||
| } | ||
| export interface TokenAssetPair { | ||
| base: Token; | ||
| quote: Token; | ||
| } | ||
| export interface SymbolAssetPair { | ||
| base: Symbol; | ||
| quote: Symbol; | ||
| } | ||
| export declare type OrderbookObserver<O = {}, A extends Symbol | Token = Symbol> = (options?: O) => Rx.Observable<Orderbook<A>>; | ||
| export declare type OrderbookFetcher<O = {}, A extends Symbol | Token = Symbol> = (options?: O) => Promise<Orderbook<A>>; | ||
| export interface Orderbook<A extends Symbol | Token = Symbol> { | ||
| base: A; | ||
| quote: A; | ||
| asks: OrderbookEntry[]; | ||
| bids: OrderbookEntry[]; | ||
| } | ||
| export interface OrderbookEntry { | ||
| price: BigNumber; | ||
| volume: BigNumber; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
Not semver v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3857
2.04%1
-50%22
4.76%