Skip to content

Commit

Permalink
build: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
outaTiME committed Feb 25, 2024
1 parent ad5a1da commit 61c4c1a
Show file tree
Hide file tree
Showing 5 changed files with 1,066 additions and 557 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@commitlint/config-conventional": "^18.6.2",
"aws-cdk-lib": "2.124.0",
"constructs": "10.3.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-universe": "^12.0.0",
"husky": "^9.0.11",
"lerna": "^8.1.2",
Expand Down
16 changes: 8 additions & 8 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
"version": "3.14.0",
"dependencies": {
"@ambito-dolar/core": "^3.8.3",
"@atproto/api": "^0.10.0",
"@aws-sdk/client-dynamodb": "^3.515.0",
"@aws-sdk/client-s3": "^3.515.0",
"@aws-sdk/client-sns": "^3.515.0",
"@aws-sdk/lib-dynamodb": "^3.515.0",
"@atproto/api": "^0.10.1",
"@aws-sdk/client-dynamodb": "^3.521.0",
"@aws-sdk/client-s3": "^3.521.0",
"@aws-sdk/client-sns": "^3.521.0",
"@aws-sdk/lib-dynamodb": "^3.521.0",
"@sentry/integrations": "7.69.0",
"@sentry/serverless": "7.69.0",
"@shelf/dynamodb-parallel-scan": "^3.7.0",
"@sparticuz/chromium": "~121.0.0",
"@sparticuz/chromium": "~122.0.0",
"async": "^3.2.5",
"boolean": "^3.2.0",
"expo-server-sdk": "^3.7.0",
"google-auth-library": "^9.6.3",
"instagram-private-api": "^1.45.3",
"joi": "^17.12.2",
"lodash": "^4.17.21",
"masto": "^6.5.4",
"masto": "^6.6.1",
"object-hash": "^3.0.0",
"pretty-ms": "^9.0.0",
"puppeteer-core": "~21.9.0",
"puppeteer-core": "~22.2.0",
"reddit": "^1.2.1",
"semver": "^7.6.0",
"sharp": "^0.32.6",
Expand Down
2 changes: 0 additions & 2 deletions packages/api/src/libs/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ const isSemverLt = (v1, v2) => semverLt(v1, v2);

const isSemverGte = (v1, v2) => semverGte(v1, v2);

// FIXME: save the last notified rate and compare its variation
const getVariationThreshold = (type, prev_rate, rate) => {
const realtime_types = [
AmbitoDolar.CCL_TYPE,
Expand All @@ -154,7 +153,6 @@ const getVariationThreshold = (type, prev_rate, rate) => {
if (realtime_types.includes(type)) {
// flexible variation of 2% between notifications
return ((prev_rate + rate) / 2) * 0.02;
// return 2.75;
}
return 0.05;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/subscribers/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const getNewRates = (rates, new_rates) =>
const rate_change_percent = AmbitoDolar.getNumber(
(rate_last_max / rate_close - 1) * 100,
);
// always use last notified value
// handles variations between notifications regardless of the exchange rate day
let notification_rate = rate?.[4] ?? rate_last_max;
// truncate decimals
const value_diff = AmbitoDolar.getNumber(
Expand Down
Loading

0 comments on commit 61c4c1a

Please sign in to comment.