@pioneer-platform/markets 8.3.14 → 8.3.16
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.
- package/lib/index.js +6 -2
- package/package.json +10 -10
package/lib/index.js
CHANGED
|
@@ -177,8 +177,10 @@ var update_cache = function () {
|
|
|
177
177
|
if (!(j < assetsMatchSymbol.length)) return [3 /*break*/, 4];
|
|
178
178
|
asset = assetsMatchSymbol[j];
|
|
179
179
|
key = "coincap:" + asset.caip;
|
|
180
|
-
|
|
180
|
+
// No expiration - old price is better than no price
|
|
181
|
+
return [4 /*yield*/, redis.set(key, JSON.stringify(entry))];
|
|
181
182
|
case 2:
|
|
183
|
+
// No expiration - old price is better than no price
|
|
182
184
|
_b.sent();
|
|
183
185
|
log.info(tag, "saved: " + key);
|
|
184
186
|
populatedCaips_1.add(asset.caip);
|
|
@@ -228,8 +230,10 @@ var update_cache = function () {
|
|
|
228
230
|
if (!(_c < matchingAssets_1.length)) return [3 /*break*/, 4];
|
|
229
231
|
matchingAsset = matchingAssets_1[_c];
|
|
230
232
|
key = "coingecko:".concat(matchingAsset.caip);
|
|
231
|
-
|
|
233
|
+
// No expiration - old price is better than no price
|
|
234
|
+
return [4 /*yield*/, redis.set(key, JSON.stringify(coin))];
|
|
232
235
|
case 2:
|
|
236
|
+
// No expiration - old price is better than no price
|
|
233
237
|
_d.sent();
|
|
234
238
|
log.info(tag, "Saved ".concat(coin.symbol, " under ").concat(key));
|
|
235
239
|
populatedCaips_1.add(matchingAsset.caip);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/markets",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.16",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -14,14 +14,6 @@
|
|
|
14
14
|
"axios-retry": "^3.2.0",
|
|
15
15
|
"dotenv": "^8.2.0"
|
|
16
16
|
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"npm": "pnpm i",
|
|
19
|
-
"test": "pnpm run build && node __tests__/test-module.js",
|
|
20
|
-
"build": "tsc -p .",
|
|
21
|
-
"build:watch": "pnpm run build && onchange 'src/**/*.ts' -- pnpm run build",
|
|
22
|
-
"prepublish": "pnpm run build",
|
|
23
|
-
"refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
|
|
24
|
-
},
|
|
25
17
|
"devDependencies": {
|
|
26
18
|
"@types/jest": "^25.2.3",
|
|
27
19
|
"@types/node": "^18.16.0",
|
|
@@ -33,5 +25,13 @@
|
|
|
33
25
|
"ts-jest": "^29.0.5",
|
|
34
26
|
"typescript": "^5.0.4"
|
|
35
27
|
},
|
|
36
|
-
"gitHead": "aeae28273014ab69b42f22abec159c6693a56c40"
|
|
28
|
+
"gitHead": "aeae28273014ab69b42f22abec159c6693a56c40",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"npm": "pnpm i",
|
|
31
|
+
"test": "pnpm run build && node __tests__/test-module.js",
|
|
32
|
+
"build": "tsc -p .",
|
|
33
|
+
"build:watch": "pnpm run build && onchange 'src/**/*.ts' -- pnpm run build",
|
|
34
|
+
"prepublish": "pnpm run build",
|
|
35
|
+
"refresh": "rm -rf ./node_modules ./package-lock.json && pnpm install"
|
|
36
|
+
}
|
|
37
37
|
}
|