Skip to content

Commit

Permalink
fix: update ipfs car and client (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored Feb 17, 2022
1 parent 5b50fff commit 2b61549
Show file tree
Hide file tree
Showing 9 changed files with 622 additions and 767 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"singleQuote": true
},
"devDependencies": {
"lint-staged": "^12.1.2",
"lint-staged": "^12.3.4",
"npm-run-all": "^4.1.5",
"prettier": "2.5.1",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@supabase/postgrest-js": "^0.34.1",
"ipfs-car": "^0.6.1",
"merge-options": "^3.0.4",
"multiformats": "^9.4.10",
"multiformats": "^9.6.4",
"nanoid": "^3.1.30",
"regexparam": "^2.0.0",
"toucan-js": "^2.4.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"build:esm": "rollup --config rollup.esm.config.js",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && npx codecov",
"typedoc": "typedoc ./src/lib.js ./src/lib/interface.ts --out ../../docs/client --excludeExternals --internalNamespace _",
"prepublishOnly": "npm run build"
"prepare": "npm run build"
},
"dependencies": {
"@ipld/car": "^3.2.3",
Expand All @@ -59,7 +59,7 @@
"@web-std/form-data": "^3.0.0",
"carbites": "^1.0.6",
"ipfs-car": "^0.6.2",
"multiformats": "^9.6.3",
"multiformats": "^9.6.4",
"p-retry": "^4.6.1",
"streaming-iterables": "^6.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dotenv": "^10.0.0",
"form-data": "^4.0.0",
"limiter": "2.0.1",
"nft.storage": "^3.3.0",
"nft.storage": "^6.0.0",
"node-fetch": "^2.6.1",
"p-retry": "^4.6.1",
"p-settle": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
},
"dependencies": {
"itty-router": "^2.4.5",
"multiformats": "^9.5.2",
"multiformats": "^9.6.4",
"nanoid": "^3.1.30",
"p-any": "^4.0.0",
"p-map": "^5.3.0",
"p-some": "^5.0.0",
"p-settle": "^5.0.0",
"p-some": "^5.0.0",
"toucan-js": "^2.5.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/niftysave/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"ipld-in-memory": "^8.0.0",
"mocha": "^9.1.3",
"multicodec": "^3.0.1",
"multiformats": "^9.4.10",
"multiformats": "^9.6.4",
"multihashing-async": "^2.1.4",
"nft.storage": "^5.1.0",
"nft.storage": "^6.0.0",
"subprogram": "^1.2.0",
"yargs": "^17.3.0"
},
Expand Down
18 changes: 9 additions & 9 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "(Apache-2.0 OR MIT)",
"scripts": {
"dev": "next dev -p 4000",
"build": "next build && next-sitemap && next export",
"build": "yarn workspace nft.storage prepare && next build && next-sitemap && next export",
"start": "next start",
"test": "eslint './**/*.js' && tsc --build",
"lint:fix": "eslint './**/*.js' --fix-dry-run",
Expand All @@ -18,33 +18,33 @@
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.1",
"gray-matter": "^4.0.3",
"ipfs-car": "0.4.3",
"ipfs-car": "0.6.2",
"magic-sdk": "^6.2.1",
"next-mdx-remote": "^4.0.0-rc.1",
"nft.storage": "^3.3.0",
"nextra": "^2.0.0-beta.5",
"nextra-theme-docs": "^2.0.0-beta.5",
"nft.storage": "^6.0.0",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-import": "^14.0.2",
"postcss-preset-env": "^7.0.1",
"postcss-preset-env": "^7.3.3",
"querystring-browser": "^1.0.4",
"rc-tooltip": "^5.1.1",
"nextra": "^2.0.0-beta.5",
"nextra-theme-docs": "^2.0.0-beta.5",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-icons": "^4.3.1",
"react-if": "^4.0.1",
"react-query": "^3.34.3",
"react-query": "^3.34.15",
"react-tiny-popover": "^7.0.1",
"swagger-ui-react": "^4.1.3",
"tachyons": "^4.12.0"
},
"devDependencies": {
"@next/bundle-analyzer": "^12.0.7",
"@sentry/nextjs": "^6.16.1",
"@sentry/nextjs": "^6.17.7",
"@types/bytes": "^3.1.1",
"@types/react": "^17.0.34",
"eslint": "^8.4.1",
"eslint-config-next": "12.0.7",
"eslint-config-next": "12.0.10",
"eslint-config-prettier": "^8.2.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.25.3",
Expand Down
5 changes: 4 additions & 1 deletion packages/website/pages/new-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export default function NewFile() {
if (isCar) {
car = file
} else {
;({ car } = await packToBlob({ input: [file] }))
;({ car } = await packToBlob({
input: [file],
wrapWithDirectory: false,
}))
}
let totalBytesSent = 0
await client.storeCar(car, {
Expand Down
Loading

0 comments on commit 2b61549

Please sign in to comment.