@xyo-network/coingecko-crypto-market-plugin 2.64.10 → 2.65.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,10 +7,7 @@ const witness_1 = require("@xyo-network/witness");
7
7
  const lib_1 = require("./lib");
8
8
  const Schema_1 = require("./Schema");
9
9
  class CoingeckoCryptoMarketWitness extends witness_1.AbstractWitness {
10
- observe() {
11
- const _super = Object.create(null, {
12
- observe: { get: () => super.observe }
13
- });
10
+ observeHandler() {
14
11
  var _a, _b, _c, _d;
15
12
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
13
  const assets = yield (0, lib_1.pricesFromCoingecko)((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.coins) !== null && _b !== void 0 ? _b : [], (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.currencies) !== null && _d !== void 0 ? _d : []);
@@ -19,7 +16,7 @@ class CoingeckoCryptoMarketWitness extends witness_1.AbstractWitness {
19
16
  schema: coingecko_crypto_market_payload_plugin_1.CoingeckoCryptoMarketSchema,
20
17
  timestamp: Date.now(),
21
18
  };
22
- return _super.observe.call(this, [payload]);
19
+ return [payload];
23
20
  });
24
21
  }
25
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":";;;;AAAA,gHAA+H;AAG/H,kDAAqE;AAGrE,+BAA2C;AAC3C,qCAAmE;AAInE,MAAa,4BAEX,SAAQ,yBAAwB;IAGjB,OAAO;;;;;;YACpB,MAAM,MAAM,GAA2C,MAAM,IAAA,yBAAmB,EAAC,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,KAAK,mCAAI,EAAE,EAAE,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,UAAU,mCAAI,EAAE,CAAC,CAAA;YACzI,MAAM,OAAO,GAAiC;gBAC5C,MAAM;gBACN,MAAM,EAAE,oEAA2B;gBACnC,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAA;YAED,OAAO,OAAM,OAAO,YAAC,CAAC,OAAO,CAAC,EAAC;;KAChC;;AAdH,oEAeC;AAZiB,0CAAa,GAAG,CAAC,iDAAwC,CAAC,CAAA"}
1
+ {"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":";;;;AAAA,gHAA+H;AAG/H,kDAAqE;AAGrE,+BAA2C;AAC3C,qCAAmE;AAInE,MAAa,4BAEX,SAAQ,yBAAwB;IAGP,cAAc;;;YACrC,MAAM,MAAM,GAA2C,MAAM,IAAA,yBAAmB,EAAC,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,KAAK,mCAAI,EAAE,EAAE,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,UAAU,mCAAI,EAAE,CAAC,CAAA;YACzI,MAAM,OAAO,GAAiC;gBAC5C,MAAM;gBACN,MAAM,EAAE,oEAA2B;gBACnC,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAA;YAED,OAAO,CAAC,OAAO,CAAC,CAAA;;KACjB;;AAdH,oEAeC;AAZiB,0CAAa,GAAG,CAAC,iDAAwC,CAAC,CAAA"}