From a25d7b1617643105e07b867bd6b5d89a329934ca Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 24 Jun 2021 13:56:19 +0200 Subject: [PATCH] fix(nitro): use unenv 0.3.x (closes #266) --- packages/nitro/package.json | 2 +- packages/nitro/src/runtime/server/index.ts | 2 +- yarn.lock | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/nitro/package.json b/packages/nitro/package.json index febd201f79..c7eef3eb1a 100644 --- a/packages/nitro/package.json +++ b/packages/nitro/package.json @@ -62,7 +62,7 @@ "std-env": "^2.3.0", "table": "^6.7.1", "ufo": "^0.7.5", - "unenv": "^0.2.3", + "unenv": "^0.3.0", "unstorage": "^0.2.3", "upath": "^2.0.1", "vue": "3.1.1", diff --git a/packages/nitro/src/runtime/server/index.ts b/packages/nitro/src/runtime/server/index.ts index 19e88a5f10..86d3a3215b 100644 --- a/packages/nitro/src/runtime/server/index.ts +++ b/packages/nitro/src/runtime/server/index.ts @@ -2,7 +2,7 @@ import '../app/config' import { createApp, useBase } from 'h3' import { createFetch } from 'ohmyfetch' import destr from 'destr' -import { createCall, createFetch as createLocalFetch } from 'unenv/runtime/fetch' +import { createCall, createFetch as createLocalFetch } from 'unenv/runtime/fetch/index' import { timingMiddleware } from './timing' import { handleError } from './error' // @ts-ignore diff --git a/yarn.lock b/yarn.lock index aea4b1be4f..d53ae711cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1767,7 +1767,7 @@ __metadata: table: ^6.7.1 ufo: ^0.7.5 unbuild: ^0.3.1 - unenv: ^0.2.3 + unenv: ^0.3.0 unstorage: ^0.2.3 upath: ^2.0.1 vue: 3.1.1 @@ -13140,20 +13140,20 @@ __metadata: languageName: node linkType: hard -"unenv@npm:^0.2.3": - version: 0.2.3 - resolution: "unenv@npm:0.2.3" +"unenv@npm:^0.3.0": + version: 0.3.0 + resolution: "unenv@npm:0.3.0" dependencies: buffer: ^6.0.2 - defu: ^3.2.2 + defu: ^5.0.0 events: ^3.2.0 inherits: ^2.0.4 mime: ^2.4.6 node-fetch: ^2.6.1 process: ^0.11.10 upath: ^2.0.1 - util: ^0.12.3 - checksum: 75fe628ffca2694106baac8be25122bd6a159eb712f4ae89d9c53f5c6bf77ccac30fa5f2a6a2ee2bc372d55a3f97cddbd7c597396a47fa56b088fc8b7d30c96a + util: ^0.12.4 + checksum: 16c556f32e95a5371ab111ebc45be47bf124d0ce0dfa5252f3db7da9e6622a92e8809de2b55c106c65053eb005e126428b82ce236de3941480c410c3101c1667 languageName: node linkType: hard @@ -13284,7 +13284,7 @@ __metadata: languageName: node linkType: hard -"util@npm:^0.12.3": +"util@npm:^0.12.4": version: 0.12.4 resolution: "util@npm:0.12.4" dependencies: