Skip to content

Commit 648f81d

Browse files
authored
Merge pull request #56 from tinymanorg/upgrade-package-versions
Upgrade dependency versions
2 parents dd66e5a + 113b95c commit 648f81d

File tree

11 files changed

+1979
-3240
lines changed

11 files changed

+1979
-3240
lines changed

.eslintrc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ module.exports = {
99
jest: true,
1010
es6: true
1111
},
12-
extends: ["@hipo/eslint-config-base", "@hipo/eslint-config-typescript", "prettier"],
12+
extends: [
13+
"@hipo/eslint-config-base",
14+
"@hipo/eslint-config-typescript",
15+
"prettier",
16+
"plugin:import/typescript"
17+
],
1318
parserOptions: {
1419
project: path.resolve(__dirname, "./tsconfig.json"),
1520
tsconfigRootDir: __dirname,

package-lock.json

Lines changed: 1947 additions & 3209 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tinyman",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Tinyman JS SDK",
55
"author": "Tinyman Core Team",
66
"license": "MIT",
@@ -25,32 +25,28 @@
2525
},
2626
"homepage": "https://github.com/tinymanorg/tinyman-js-sdk#readme",
2727
"devDependencies": {
28-
"@hipo/eslint-config-base": "^4.1.1",
29-
"@hipo/eslint-config-typescript": "^1.0.1",
28+
"@hipo/eslint-config-base": "^4.2.1",
29+
"@hipo/eslint-config-typescript": "^1.2.0",
3030
"@rollup/plugin-json": "^4.1.0",
31-
"@types/mocha": "^8.2.0",
3231
"@types/node": "^14.14.14",
33-
"@typescript-eslint/eslint-plugin": "^4.25.0",
34-
"@typescript-eslint/parser": "^4.25.0",
35-
"eslint": "^7.27.0",
36-
"eslint-config-prettier": "^8.3.0",
37-
"eslint-import-resolver-typescript": "^2.4.0",
38-
"eslint-plugin-import": "^2.23.3",
39-
"husky": "^6.0.0",
32+
"@typescript-eslint/eslint-plugin": "^5.22.0",
33+
"@typescript-eslint/parser": "^5.22.0",
34+
"eslint": "^8.14.0",
35+
"eslint-config-prettier": "^8.5.0",
36+
"eslint-import-resolver-typescript": "^2.7.1",
37+
"eslint-plugin-import": "^2.26.0",
38+
"husky": "^7.0.4",
4039
"js-sha512": "^0.8.0",
41-
"lint-staged": "^11.0.0",
42-
"mocha": "^8.3.0",
43-
"prettier": "^2.3.0",
44-
"rollup": "^2.70.2",
40+
"lint-staged": "^12.4.1",
41+
"prettier": "^2.6.2",
42+
"rollup": "^2.71.1",
4543
"rollup-plugin-eslint": "^7.0.0",
4644
"rollup-plugin-terser": "^7.0.2",
4745
"rollup-plugin-typescript2": "^0.31.2",
48-
"tmp": "^0.2.1",
49-
"ts-node": "^9.1.1",
5046
"typescript": "^4.1.3"
5147
},
5248
"dependencies": {
53-
"algosdk": "^1.12.0",
49+
"algosdk": "^1.16.0",
5450
"base64-js": "^1.5.1"
5551
},
5652
"lint-staged": {

src/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async function doBootstrap({
254254
return {
255255
liquidityTokenID
256256
};
257-
} catch (error) {
257+
} catch (error: any) {
258258
throw new TinymanError(
259259
error,
260260
"We encountered something unexpected while bootstraping the pool. Try again later."

src/burn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export async function burnLiquidity({
325325
txnID,
326326
groupID: getTxnGroupID(txGroup)
327327
};
328-
} catch (error) {
328+
} catch (error: any) {
329329
const parsedError = new TinymanError(
330330
error,
331331
"We encountered something unexpected while burning liquidity. Try again later."

src/mint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export async function mintLiquidity({
338338
txnID,
339339
groupID
340340
};
341-
} catch (error) {
341+
} catch (error: any) {
342342
const parsedError = new TinymanError(
343343
error,
344344
"We encountered something unexpected while minting liquidity. Try again later."

src/redeem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function redeemExcessAsset({
5555
txnID,
5656
groupID: getTxnGroupID(txGroup)
5757
};
58-
} catch (error) {
58+
} catch (error: any) {
5959
throw new TinymanError(
6060
error,
6161
"We encountered something unexpected while redeeming. Try again later."
@@ -160,15 +160,15 @@ export async function redeemAllExcessAsset({
160160
txnID,
161161
confirmedRound
162162
});
163-
} catch (error) {
163+
} catch (error: any) {
164164
reject(error);
165165
}
166166
})
167167
)
168168
);
169169

170170
return redeemTxnsPromise;
171-
} catch (error) {
171+
} catch (error: any) {
172172
throw new TinymanError(
173173
error,
174174
"We encountered something unexpected while redeeming. Try again later."

src/swap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ export async function issueSwap({
667667
}
668668

669669
return {...swapData, groupID: getTxnGroupID(txGroup), fees: sumUpTxnFees(txGroup)};
670-
} catch (error) {
670+
} catch (error: any) {
671671
const parsedError = new TinymanError(
672672
error,
673673
"We encountered something unexpected while swapping. Try again later."

src/util/account/accountUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function getAccountInformation(client: Algodv2, address: string) {
3030
...accountInfo,
3131
minimum_required_balance: calculateAccountMinimumRequiredBalance(accountInfo)
3232
});
33-
} catch (error) {
33+
} catch (error: any) {
3434
reject(new Error(error.message || "Failed to fetch account information"));
3535
}
3636
});

src/util/asset/assetUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function generateOptIntoAssetTxns({
2121
});
2222

2323
return [{txn: optInTxn, signers: [initiatorAddr]}];
24-
} catch (error) {
24+
} catch (error: any) {
2525
throw new TinymanError(
2626
error,
2727
"We encountered something unexpected while opting into this asset. Try again later."

0 commit comments

Comments
 (0)