Skip to content

Commit

Permalink
fix: missing cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 17, 2024
1 parent 7bbb138 commit 7037d67
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 37 deletions.
Binary file modified frontend/.yarn/install-state.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@autonomys/auto-drive": "^1.0.5",
"@autonomys/auto-drive": "^1.0.7",
"@headlessui/react": "^2.1.8",
"@heroicons/react": "^2.1.5",
"@ipld/dag-pb": "^4.1.2",
Expand All @@ -34,7 +34,7 @@
"zustand": "^5.0.0"
},
"devDependencies": {
"@autonomys/auto-dag-data": "^1.0.4",
"@autonomys/auto-dag-data": "^1.0.7",
"@next/eslint-plugin-next": "^15.0.2",
"@types/byte-size": "^8.1.2",
"@types/bytes": "^3",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/services/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const fetchFromApi = async (cid: string, password?: string) => {
download,
metadata?.type,
metadata.name!,
metadata.totalSize,
Number(metadata.totalSize),
);
};

Expand All @@ -100,6 +100,6 @@ const fetchFromCache = async (cid: string) => {
bufferToIterable(buffer),
metadata.type,
metadata.name!,
metadata.totalSize,
Number(metadata.totalSize),
);
};
45 changes: 12 additions & 33 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,12 @@ __metadata:
languageName: node
linkType: hard

"@autonomys/auto-dag-data@npm:^1.0.4":
version: 1.0.4
resolution: "@autonomys/auto-dag-data@npm:1.0.4"
dependencies:
"@ipld/dag-pb": "npm:^4.1.2"
blake3: "npm:1.1.0"
fflate: "npm:^0.8.2"
multiformats: "npm:^13.2.2"
protobufjs: "npm:^7.4.0"
protons: "npm:^7.6.0"
protons-runtime: "npm:^5.5.0"
checksum: 10c0/5ecac5648750fd086e2fcb2ef7987c117d24e7399adec7cc53766223940814d890da5ea79877a42fa8ef589d12a613f1b52ffdf85ec6a906272afd15beb9f1dd
languageName: node
linkType: hard

"@autonomys/auto-dag-data@npm:^1.0.5":
version: 1.0.5
resolution: "@autonomys/auto-dag-data@npm:1.0.5"
"@autonomys/auto-dag-data@npm:^1.0.7":
version: 1.0.7
resolution: "@autonomys/auto-dag-data@npm:1.0.7"
dependencies:
"@ipld/dag-pb": "npm:^4.1.2"
"@peculiar/webcrypto": "npm:^1.5.0"
"@webbuf/blake3": "npm:^3.0.26"
"@webbuf/fixedbuf": "npm:^3.0.26"
"@webbuf/webbuf": "npm:^3.0.26"
Expand All @@ -40,19 +26,19 @@ __metadata:
protobufjs: "npm:^7.4.0"
protons: "npm:^7.6.0"
protons-runtime: "npm:^5.5.0"
checksum: 10c0/f5008da92c88adf1aacff196d7ebc47fee6b04d52ce34bec26f0fdb6bf0e0f665d1a1fbd1c7b3a8e37ffd3f12c44214f8ae8f5b232000fd514fda5ec191fd03c
checksum: 10c0/6e11e11db4af0cefddb6fc5c11185c2cd03e29d48c33d13bec9c835f11653aca5932a7fd9f358df07134aad91a71c167c800afc83280b0439b7a861f453fe81f
languageName: node
linkType: hard

"@autonomys/auto-drive@npm:^1.0.5":
version: 1.0.5
resolution: "@autonomys/auto-drive@npm:1.0.5"
"@autonomys/auto-drive@npm:^1.0.7":
version: 1.0.7
resolution: "@autonomys/auto-drive@npm:1.0.7"
dependencies:
"@autonomys/auto-dag-data": "npm:^1.0.5"
"@autonomys/auto-dag-data": "npm:^1.0.7"
jszip: "npm:^3.10.1"
mime-types: "npm:^2.1.35"
zod: "npm:^3.23.8"
checksum: 10c0/65553dab901fc1d54364b3a7a0586a4456b1c45b101c1d7b86e5a2f6d84223b704f29d7a8b147cb652d0332c9c558ba6cafec92cd9a458a4487a03eff6e30ef6
checksum: 10c0/b12af9c2ef8b48bf8791ebb7794269864d9c874964448743178fb2acd4da17241ef1c31f276928979ce7673d04912a248fc32a3585f42062cd177c36bb9e1427
languageName: node
linkType: hard

Expand Down Expand Up @@ -1413,13 +1399,6 @@ __metadata:
languageName: node
linkType: hard

"blake3@npm:1.1.0":
version: 1.1.0
resolution: "blake3@npm:1.1.0"
checksum: 10c0/d235fee0f4421cd19ef699e8591b40b0066a4750b4c3f03108c3cd92130e167fa7743e1f2fc7155e3b037b31f56f8fb80ad2732de09814037e7ef0f9650be217
languageName: node
linkType: hard

"bluebird@npm:^3.7.2":
version: 3.7.2
resolution: "bluebird@npm:3.7.2"
Expand Down Expand Up @@ -2500,8 +2479,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "frontend@workspace:."
dependencies:
"@autonomys/auto-dag-data": "npm:^1.0.4"
"@autonomys/auto-drive": "npm:^1.0.5"
"@autonomys/auto-dag-data": "npm:^1.0.7"
"@autonomys/auto-drive": "npm:^1.0.7"
"@headlessui/react": "npm:^2.1.8"
"@heroicons/react": "npm:^2.1.5"
"@ipld/dag-pb": "npm:^4.1.2"
Expand Down

0 comments on commit 7037d67

Please sign in to comment.