From 2a3d78fce044ea658acdbbdaa87401fb50231427 Mon Sep 17 00:00:00 2001 From: Viki Val Date: Tue, 21 May 2024 11:57:44 +0200 Subject: [PATCH] :bookmark: minipfs@0.4.3-rc.2 --- minipfs/package.json | 4 ++-- minipfs/pnpm-lock.yaml | 30 +++++++++++++++++++++--------- minipfs/src/gateways.ts | 7 +++---- minipfs/src/magic.ts | 2 +- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/minipfs/package.json b/minipfs/package.json index f93d6aed..f1bf6907 100644 --- a/minipfs/package.json +++ b/minipfs/package.json @@ -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", @@ -28,7 +28,7 @@ "test": "vitest run" }, "dependencies": { - "ofetch": "^1.3.3" + "ofetch": "^1.3.4" }, "devDependencies": { "@nuxtjs/eslint-config-typescript": "latest", diff --git a/minipfs/pnpm-lock.yaml b/minipfs/pnpm-lock.yaml index 918321ff..5536b159 100644 --- a/minipfs/pnpm-lock.yaml +++ b/minipfs/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.1' +lockfileVersion: '6.0' settings: autoInstallPeers: true @@ -6,8 +6,8 @@ settings: dependencies: ofetch: - specifier: ^1.3.3 - version: 1.3.3 + specifier: ^1.3.4 + version: 1.3.4 devDependencies: '@nuxtjs/eslint-config-typescript': @@ -1236,7 +1236,7 @@ packages: execa: 8.0.1 mri: 1.2.0 node-fetch-native: 1.2.0 - ofetch: 1.3.3 + ofetch: 1.3.4 open: 9.1.0 pathe: 1.1.1 pkg-types: 1.0.3 @@ -1447,6 +1447,10 @@ packages: /destr@2.0.1: resolution: {integrity: sha512-M1Ob1zPSIvlARiJUkKqvAZ3VAqQY6Jcuth/pBKQ2b1dX/Qx0OnJ8Vux6J2H5PTMQeRzWrrbTu70VxBfv/OPDJA==} + dev: true + + /destr@2.0.3: + resolution: {integrity: sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==} /diff-sequences@29.4.3: resolution: {integrity: sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==} @@ -3085,6 +3089,10 @@ packages: /node-fetch-native@1.4.0: resolution: {integrity: sha512-F5kfEj95kX8tkDhUCYdV8dg3/8Olx/94zB8+ZNthFs6Bz31UpUi8Xh40TN3thLwXgrwXry1pEg9lJ++tLWTcqA==} + dev: true + + /node-fetch-native@1.6.4: + resolution: {integrity: sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==} /node-releases@2.0.6: resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==} @@ -3152,12 +3160,12 @@ packages: es-abstract: 1.20.1 dev: true - /ofetch@1.3.3: - resolution: {integrity: sha512-s1ZCMmQWXy4b5K/TW9i/DtiN8Ku+xCiHcjQ6/J/nDdssirrQNOoB165Zu8EqLMA2lln1JUth9a0aW9Ap2ctrUg==} + /ofetch@1.3.4: + resolution: {integrity: sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==} dependencies: - destr: 2.0.1 - node-fetch-native: 1.4.0 - ufo: 1.3.0 + destr: 2.0.3 + node-fetch-native: 1.6.4 + ufo: 1.5.3 /ohash@1.1.2: resolution: {integrity: sha512-9CIOSq5945rI045GFtcO3uudyOkYVY1nyfFxVQp+9BRgslr8jPNiSSrsFGg/BNTUFOLqx0P5tng6G32brIPw0w==} @@ -3872,6 +3880,10 @@ packages: /ufo@1.3.0: resolution: {integrity: sha512-bRn3CsoojyNStCZe0BG0Mt4Nr/4KF+rhFlnNXybgqt5pXHNFRlqinSoQaTrGyzE4X8aHplSb+TorH+COin9Yxw==} + dev: true + + /ufo@1.5.3: + resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} diff --git a/minipfs/src/gateways.ts b/minipfs/src/gateways.ts index 491b992b..679ce3ad 100644 --- a/minipfs/src/gateways.ts +++ b/minipfs/src/gateways.ts @@ -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}` + } diff --git a/minipfs/src/magic.ts b/minipfs/src/magic.ts index 0f573614..7684e598 100644 --- a/minipfs/src/magic.ts +++ b/minipfs/src/magic.ts @@ -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'