Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed May 21, 2024
1 parent 1541c3f commit 2a3d78f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
4 changes: 2 additions & 2 deletions minipfs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kodadot1/minipfs",
"version": "0.4.3-rc.1",
"version": "0.4.3-rc.2",
"description": "",
"repository": "kodadot/packages",
"license": "MIT",
Expand Down Expand Up @@ -28,7 +28,7 @@
"test": "vitest run"
},
"dependencies": {
"ofetch": "^1.3.3"
"ofetch": "^1.3.4"
},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "latest",
Expand Down
30 changes: 21 additions & 9 deletions minipfs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions minipfs/src/gateways.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export const getProperURI = (
}

export const getGatewayURI =
(uri: IPFS_PATH | IPNS_PATH) =>
(provider: IPFSProviders): HTTPS_URI => {
return `${ipfsProviders[provider]}${uri}`
}
(uri: IPFS_PATH | IPNS_PATH) => (provider: IPFSProviders): HTTPS_URI => {
return `${ipfsProviders[provider]}${uri}`
}
2 changes: 1 addition & 1 deletion minipfs/src/magic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AvailableProviders, IPFSProviders, getProperURI } from './gateways'
import { AvailableProviders, getProperURI, IPFSProviders } from './gateways'
import { obtain, obtainFast } from './obtain'
import { competition } from './race'
import { sanitize } from './sanitize'
Expand Down

0 comments on commit 2a3d78f

Please sign in to comment.