@melonproject/ea-common
Advanced tools
| (function (factory) { | ||
| typeof define === 'function' && define.amd ? define(factory) : | ||
| factory(); | ||
| typeof define === 'function' && define.amd ? define(factory) : | ||
| factory(); | ||
| }(function () { 'use strict'; | ||
| function __export(m) { | ||
| for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
| } | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __export(require("./types")); | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| })); | ||
| //# sourceMappingURL=bundle.umd.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"bundle.umd.js","sources":["index.js"],"sourcesContent":["\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./types\"));\n"],"names":[],"mappings":";;;;;IACA,SAAS,QAAQ,CAAC,CAAC,EAAE;IACrB,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE,CAAC;IACD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9D,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;;;;"} | ||
| {"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;;;;"} |
+0
-4
| "use strict"; | ||
| function __export(m) { | ||
| for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
| } | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __export(require("./types")); |
+7
-12
@@ -0,1 +1,2 @@ | ||
| import * as Rx from 'rxjs'; | ||
| import BigNumber from 'bignumber.js'; | ||
@@ -6,15 +7,9 @@ export interface AssetPair { | ||
| } | ||
| export declare enum OrderbookEventType { | ||
| SNAPSHOT = "SNAPSHOT", | ||
| UPDATE = "UPDATE" | ||
| export declare type OrderbookObserver<O = {}> = (pairs: AssetPair[], options?: O) => Rx.Observable<OrderbookUpdate>; | ||
| export interface OrderbookUpdate { | ||
| base: string; | ||
| quote: string; | ||
| updates: OrderbookEntry[]; | ||
| snapshot?: boolean; | ||
| } | ||
| export declare type OrderbookEvent = OrderbookUpdateEvent | OrderbookSnapshotEvent; | ||
| export interface OrderbookUpdateEvent { | ||
| type: OrderbookEventType.UPDATE; | ||
| orders: OrderbookEntry[]; | ||
| } | ||
| export interface OrderbookSnapshotEvent { | ||
| type: OrderbookEventType.SNAPSHOT; | ||
| orders: OrderbookEntry[]; | ||
| } | ||
| export interface OrderbookEntry { | ||
@@ -21,0 +16,0 @@ price: BigNumber; |
+0
-5
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| var OrderbookEventType; | ||
| (function (OrderbookEventType) { | ||
| OrderbookEventType["SNAPSHOT"] = "SNAPSHOT"; | ||
| OrderbookEventType["UPDATE"] = "UPDATE"; | ||
| })(OrderbookEventType = exports.OrderbookEventType || (exports.OrderbookEventType = {})); |
+2
-2
| { | ||
| "name": "@melonproject/ea-common", | ||
| "version": "0.0.2-next.2+6862bbe", | ||
| "version": "0.0.2-next.3+608cd08", | ||
| "description": "Common functionality for the exchange aggregator packages.", | ||
@@ -71,3 +71,3 @@ "main": "./lib/index.js", | ||
| }, | ||
| "gitHead": "6862bbe9372a476e44011664b212e9d57cf91f71" | ||
| "gitHead": "608cd08647bcc9aee88440bc29a4ead575adcd05" | ||
| } |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3321
-23.14%29
-38.3%