From d001c0856fe4907f5fde59eb95a46f7424d4a072 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Thu, 16 Nov 2023 10:30:19 -0600 Subject: [PATCH] chore(cleanup): cleanup dependencies fix(lockfile): update pnpm-lock.yml chore: remove empty constructor chore(lockfile): fix lockfile from installing peers --- package.json | 4 - pnpm-lock.yaml | 196 +++++--------------------------- src/utils/turbo_rates_oracle.ts | 2 - 3 files changed, 29 insertions(+), 173 deletions(-) diff --git a/package.json b/package.json index da5c0f7..f95b1c5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "price-calculator", "version": "1.3.0", - "type": "commonjs", "description": "ArDrive Price Calculator", "scripts": { "start": "vite", @@ -34,7 +33,6 @@ }, "devDependencies": { "@remcovaes/web-test-runner-vite-plugin": "^1.2.0", - "@rollup/pluginutils": "^5.0.5", "@testing-library/react": "^11.2.7", "@types/chai": "^4.3.5", "@types/chai-as-promised": "^7.1.5", @@ -66,8 +64,6 @@ "lint-staged": "^11.2.6", "prettier": "^2.8.8", "rimraf": "^3.0.2", - "rollup": "4.4.1", - "rollup-plugin-polyfill-node": "^0.12.0", "sinon": "^11.1.2", "tsc-files": "^1.1.4", "typescript": "^4.9.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f07bbc1..c1fb2b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,5 @@ lockfileVersion: '6.0' -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - dependencies: '@ardrive/turbo-sdk': specifier: ^1.1.0 @@ -27,10 +23,7 @@ dependencies: devDependencies: '@remcovaes/web-test-runner-vite-plugin': specifier: ^1.2.0 - version: 1.2.0(vite@4.5.0) - '@rollup/pluginutils': - specifier: ^5.0.5 - version: 5.0.5(rollup@4.4.1) + version: 1.2.1(vite@4.5.0) '@testing-library/react': specifier: ^11.2.7 version: 11.2.7(react-dom@17.0.2)(react@17.0.2) @@ -72,7 +65,7 @@ devDependencies: version: 4.33.0(eslint@7.32.0)(typescript@4.9.5) '@vitejs/plugin-react': specifier: ^4.0.3 - version: 4.1.1(vite@4.5.0) + version: 4.2.0(vite@4.5.0) '@web/test-runner': specifier: ^0.13.31 version: 0.13.31 @@ -124,12 +117,6 @@ devDependencies: rimraf: specifier: ^3.0.2 version: 3.0.2 - rollup: - specifier: 4.4.1 - version: 4.4.1 - rollup-plugin-polyfill-node: - specifier: ^0.12.0 - version: 0.12.0(rollup@4.4.1) sinon: specifier: ^11.1.2 version: 11.1.2 @@ -144,10 +131,10 @@ devDependencies: version: 4.5.0(@types/node@20.9.0) vite-plugin-node-stdlib-browser: specifier: ^0.2.1 - version: 0.2.1(node-stdlib-browser@1.2.0)(rollup@4.4.1)(vite@4.5.0) + version: 0.2.1(node-stdlib-browser@1.2.0)(rollup@2.79.1)(vite@4.5.0) vite-plugin-svgr: specifier: ^3.2.0 - version: 3.3.0(rollup@4.4.1)(typescript@4.9.5)(vite@4.5.0) + version: 3.3.0(rollup@2.79.1)(typescript@4.9.5)(vite@4.5.0) vite-tsconfig-paths: specifier: ^4.2.0 version: 4.2.1(typescript@4.9.5)(vite@4.5.0) @@ -184,7 +171,7 @@ packages: arbundles: 0.9.11 arweave: 1.14.4 axios: 1.6.2 - axios-retry: 3.9.0 + axios-retry: 3.9.1 winston: 3.11.0 transitivePeerDependencies: - bufferutil @@ -1090,15 +1077,15 @@ packages: dev: false optional: true - /@remcovaes/web-test-runner-vite-plugin@1.2.0(vite@4.5.0): - resolution: {integrity: sha512-TKzavbFvBC01nVvheYgBH3RDPygsCtXgMF/K/ZcWxbDmaKCvIoZhK+g2iEKhnMh+hCYcJJEXpb7fiFsgWcSTlA==} + /@remcovaes/web-test-runner-vite-plugin@1.2.1(vite@4.5.0): + resolution: {integrity: sha512-zXyTJa4D2Trym3qvBqf3AWEIkZQkm7iFuJbTmDkN/SlqalbP75C9jet+ckwfgtqpFek3SRzhEtapVelp0PU9UA==} peerDependencies: - vite: ^3.0.0 || ^4.0.0 + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 dependencies: vite: 4.5.0(@types/node@20.9.0) dev: true - /@rollup/plugin-inject@5.0.5(rollup@4.4.1): + /@rollup/plugin-inject@5.0.5(rollup@2.79.1): resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -1107,10 +1094,10 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.0.5(rollup@4.4.1) + '@rollup/pluginutils': 5.0.5(rollup@2.79.1) estree-walker: 2.0.2 magic-string: 0.30.5 - rollup: 4.4.1 + rollup: 2.79.1 dev: true /@rollup/plugin-node-resolve@13.3.0(rollup@2.79.1): @@ -1140,7 +1127,7 @@ packages: rollup: 2.79.1 dev: true - /@rollup/pluginutils@5.0.5(rollup@4.4.1): + /@rollup/pluginutils@5.0.5(rollup@2.79.1): resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==} engines: {node: '>=14.0.0'} peerDependencies: @@ -1152,104 +1139,8 @@ packages: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.4.1 - dev: true - - /@rollup/rollup-android-arm-eabi@4.4.1: - resolution: {integrity: sha512-Ss4suS/sd+6xLRu+MLCkED2mUrAyqHmmvZB+zpzZ9Znn9S8wCkTQCJaQ8P8aHofnvG5L16u9MVnJjCqioPErwQ==} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-android-arm64@4.4.1: - resolution: {integrity: sha512-sRSkGTvGsARwWd7TzC8LKRf8FiPn7257vd/edzmvG4RIr9x68KBN0/Ek48CkuUJ5Pj/Dp9vKWv6PEupjKWjTYA==} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-arm64@4.4.1: - resolution: {integrity: sha512-nz0AiGrrXyaWpsmBXUGOBiRDU0wyfSXbFuF98pPvIO8O6auQsPG6riWsfQqmCCC5FNd8zKQ4JhgugRNAkBJ8mQ==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-x64@4.4.1: - resolution: {integrity: sha512-Ogqvf4/Ve/faMaiPRvzsJEqajbqs00LO+8vtrPBVvLgdw4wBg6ZDXdkDAZO+4MLnrc8mhGV6VJAzYScZdPLtJg==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm-gnueabihf@4.4.1: - resolution: {integrity: sha512-9zc2tqlr6HfO+hx9+wktUlWTRdje7Ub15iJqKcqg5uJZ+iKqmd2CMxlgPpXi7+bU7bjfDIuvCvnGk7wewFEhCg==} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-gnu@4.4.1: - resolution: {integrity: sha512-phLb1fN3rq2o1j1v+nKxXUTSJnAhzhU0hLrl7Qzb0fLpwkGMHDem+o6d+ZI8+/BlTXfMU4kVWGvy6g9k/B8L6Q==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-musl@4.4.1: - resolution: {integrity: sha512-M2sDtw4tf57VPSjbTAN/lz1doWUqO2CbQuX3L9K6GWIR5uw9j+ROKCvvUNBY8WUbMxwaoc8mH9HmmBKsLht7+w==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-x64-gnu@4.4.1: - resolution: {integrity: sha512-mHIlRLX+hx+30cD6c4BaBOsSqdnCE4ok7/KDvjHYAHoSuveoMMxIisZFvcLhUnyZcPBXDGZTuBoalcuh43UfQQ==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-x64-musl@4.4.1: - resolution: {integrity: sha512-tB+RZuDi3zxFx7vDrjTNGVLu2KNyzYv+UY8jz7e4TMEoAj7iEt8Qk6xVu6mo3pgjnsHj6jnq3uuRsHp97DLwOA==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-arm64-msvc@4.4.1: - resolution: {integrity: sha512-Hdn39PzOQowK/HZzYpCuZdJC91PE6EaGbTe2VCA9oq2u18evkisQfws0Smh9QQGNNRa/T7MOuGNQoLeXhhE3PQ==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-ia32-msvc@4.4.1: - resolution: {integrity: sha512-tLpKb1Elm9fM8c5w3nl4N1eLTP4bCqTYw9tqUBxX8/hsxqHO3dxc2qPbZ9PNkdK4tg4iLEYn0pOUnVByRd2CbA==} - cpu: [ia32] - os: [win32] - requiresBuild: true + rollup: 2.79.1 dev: true - optional: true - - /@rollup/rollup-win32-x64-msvc@4.4.1: - resolution: {integrity: sha512-eAhItDX9yQtZVM3yvXS/VR3qPqcnXvnLyx1pLXl4JzyNMBNO3KC986t/iAg2zcMzpAp9JSvxB5VZGnBiNoA98w==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} @@ -1843,7 +1734,7 @@ packages: debug: 4.3.4(supports-color@5.5.0) eslint: 7.32.0 functional-red-black-tree: 1.0.1 - ignore: 5.2.4 + ignore: 5.3.0 regexpp: 3.2.0 semver: 7.5.4 tsutils: 3.21.0(typescript@4.9.5) @@ -1932,11 +1823,11 @@ packages: eslint-visitor-keys: 2.1.0 dev: true - /@vitejs/plugin-react@4.1.1(vite@4.5.0): - resolution: {integrity: sha512-Jie2HERK+uh27e+ORXXwEP5h0Y2lS9T2PRGbfebiHGlwzDO0dEnd2aNtOR/qjBlPb1YgxwAONeblL1xqLikLag==} + /@vitejs/plugin-react@4.2.0(vite@4.5.0): + resolution: {integrity: sha512-+MHTH/e6H12kRp5HUkzOGqPMksezRMmW+TNzlh/QXfI8rRf6l2Z2yH/v12no1UvTwhZgEDMuQ7g7rrfMseU6FQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: ^4.2.0 + vite: ^4.2.0 || ^5.0.0 dependencies: '@babel/core': 7.23.3 '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.23.3) @@ -2627,8 +2518,8 @@ packages: engines: {node: '>=4'} dev: true - /axios-retry@3.9.0: - resolution: {integrity: sha512-uK9K/GnlExfShu9dB4GuK0j+iGkIR+LRus3ILhE0zSVXY2q6Dxpemr50NPMs5kP7eOKv9Pz4VvUO40ps1F67dA==} + /axios-retry@3.9.1: + resolution: {integrity: sha512-8PJDLJv7qTTMMwdnbMvrLYuvB47M81wRtxQmEdV5w4rgbTXTt+vtPkXwajOfOdSyv/wZICJOC+/UhXH4aQ/R+w==} dependencies: '@babel/runtime': 7.23.2 is-retry-allowed: 2.2.0 @@ -2821,7 +2712,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001562 - electron-to-chromium: 1.4.583 + electron-to-chromium: 1.4.585 node-releases: 2.0.13 update-browserslist-db: 1.0.13(browserslist@4.22.1) @@ -3577,8 +3468,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: true - /electron-to-chromium@1.4.583: - resolution: {integrity: sha512-93y1gcONABZ7uqYe/JWDVQP/Pj/sQSunF0HVAPdlg/pfBnOyBMLlQUxWvkqcljJg1+W6cjvPuYD+r1Th9Tn8mA==} + /electron-to-chromium@1.4.585: + resolution: {integrity: sha512-B4yBlX0azdA3rVMxpYwLQfDpdwOgcnLCkpvSOd68iFmeedo+WYjaBJS3/W58LVD8CB2nf+o7C4K9xz1l09RkWg==} /elliptic@6.5.4: resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} @@ -4484,7 +4375,7 @@ packages: array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.3.2 - ignore: 5.2.4 + ignore: 5.3.0 merge2: 1.4.1 slash: 3.0.0 dev: true @@ -4669,8 +4560,8 @@ packages: engines: {node: '>= 4'} dev: true - /ignore@5.2.4: - resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} + /ignore@5.3.0: + resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==} engines: {node: '>= 4'} dev: true @@ -6497,15 +6388,6 @@ packages: inherits: 2.0.4 dev: true - /rollup-plugin-polyfill-node@0.12.0(rollup@4.4.1): - resolution: {integrity: sha512-PWEVfDxLEKt8JX1nZ0NkUAgXpkZMTb85rO/Ru9AQ69wYW8VUCfDgP4CGRXXWYni5wDF0vIeR1UoF3Jmw/Lt3Ug==} - peerDependencies: - rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 - dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.4.1) - rollup: 4.4.1 - dev: true - /rollup@2.79.1: resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} engines: {node: '>=10.0.0'} @@ -6522,26 +6404,6 @@ packages: fsevents: 2.3.3 dev: true - /rollup@4.4.1: - resolution: {integrity: sha512-idZzrUpWSblPJX66i+GzrpjKE3vbYrlWirUHteoAbjKReZwa0cohAErOYA5efoMmNCdvG9yrJS+w9Kl6csaH4w==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.4.1 - '@rollup/rollup-android-arm64': 4.4.1 - '@rollup/rollup-darwin-arm64': 4.4.1 - '@rollup/rollup-darwin-x64': 4.4.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.4.1 - '@rollup/rollup-linux-arm64-gnu': 4.4.1 - '@rollup/rollup-linux-arm64-musl': 4.4.1 - '@rollup/rollup-linux-x64-gnu': 4.4.1 - '@rollup/rollup-linux-x64-musl': 4.4.1 - '@rollup/rollup-win32-arm64-msvc': 4.4.1 - '@rollup/rollup-win32-ia32-msvc': 4.4.1 - '@rollup/rollup-win32-x64-msvc': 4.4.1 - fsevents: 2.3.3 - dev: true - /run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -7432,25 +7294,25 @@ packages: - terser dev: true - /vite-plugin-node-stdlib-browser@0.2.1(node-stdlib-browser@1.2.0)(rollup@4.4.1)(vite@4.5.0): + /vite-plugin-node-stdlib-browser@0.2.1(node-stdlib-browser@1.2.0)(rollup@2.79.1)(vite@4.5.0): resolution: {integrity: sha512-6u2i613Dkqj5KaTNIrnZvE6y3/awWAp0S5TjucTvGxdhetftB1Mgvblc+nwYzlw6sntPlac8UOC7ttXNh+LZKA==} peerDependencies: node-stdlib-browser: ^1.2.0 vite: ^2.0.0 || ^3.0.0 || ^4.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.4.1) + '@rollup/plugin-inject': 5.0.5(rollup@2.79.1) node-stdlib-browser: 1.2.0 vite: 4.5.0(@types/node@20.9.0) transitivePeerDependencies: - rollup dev: true - /vite-plugin-svgr@3.3.0(rollup@4.4.1)(typescript@4.9.5)(vite@4.5.0): + /vite-plugin-svgr@3.3.0(rollup@2.79.1)(typescript@4.9.5)(vite@4.5.0): resolution: {integrity: sha512-vWZMCcGNdPqgziYFKQ3Y95XP0d0YGp28+MM3Dp9cTa/px5CKcHHrIoPl2Jw81rgVm6/ZUNONzjXbZQZ7Kw66og==} peerDependencies: vite: ^2.6.0 || 3 || 4 dependencies: - '@rollup/pluginutils': 5.0.5(rollup@4.4.1) + '@rollup/pluginutils': 5.0.5(rollup@2.79.1) '@svgr/core': 8.1.0(typescript@4.9.5) '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0) vite: 4.5.0(@types/node@20.9.0) diff --git a/src/utils/turbo_rates_oracle.ts b/src/utils/turbo_rates_oracle.ts index 860bb4c..edeeb01 100644 --- a/src/utils/turbo_rates_oracle.ts +++ b/src/utils/turbo_rates_oracle.ts @@ -3,8 +3,6 @@ import { TurboFactory, TurboRatesResponse } from '@ardrive/turbo-sdk'; export class TurboRatesOracle implements RatesOracle { private turbo = TurboFactory.unauthenticated(); - constructor() {} // eslint-disable-line @typescript-eslint/no-empty-function - public async getTurboRates(): Promise { return this.turbo.getFiatRates(); }