Skip to content

Commit

Permalink
feat: update ufo to 0.5 (reducing bundle size)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 16, 2020
1 parent 5b0a82f commit 837707d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@nuxt/h2": "^0.0.14",
"@nuxt/ufo": "^0.3.1",
"@nuxt/ufo": "^0.5.0",
"@nuxtjs/eslint-config-typescript": "latest",
"@types/flat": "latest",
"@types/jest": "latest",
Expand Down
4 changes: 2 additions & 2 deletions src/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import destr from 'destr'
import { joinURL, withParams } from '@nuxt/ufo'
import { joinURL, withQuery } from '@nuxt/ufo'
import type { Fetch, RequestInfo, RequestInit, Response } from './types'
import { createFetchError } from './error'

Expand Down Expand Up @@ -29,7 +29,7 @@ export function createFetch ({ fetch }: CreateFetchOptions): $Fetch {
request = joinURL(opts.baseURL, request)
}
if (opts.params) {
request = withParams(request, opts.params)
request = withQuery(request, opts.params)
}
}
const response: FetchResponse<any> = await fetch(request, opts)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@
resolved "https://registry.yarnpkg.com/@nuxt/ufo/-/ufo-0.0.3.tgz#7673a54b81c020e7aea3a9e01e09a58c494a1eca"
integrity sha512-LQkuVafVNB9+ggRF7443AX1V1rEWRs32Frk7F2qnRLf8j/SzRzxEZ99jiZqxVho72zU7NcWQ6Jy62m4fkZC6Wg==

"@nuxt/ufo@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@nuxt/ufo/-/ufo-0.3.1.tgz#3dd07e8ddc1c1eb1b4fe54645f936fa9484228d0"
integrity sha512-AJ2+LO5MDQMZ31UPRQPQUz03zIlJ/huqrR+Mc4jzsFl/UihWniiB1FyhmitvIC19+Van5vK0x0Bhk5K/tmmBgA==
"@nuxt/ufo@^0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@nuxt/ufo/-/ufo-0.5.0.tgz#a84d5ce9dedee25b81fbbb4b44fef5ca2987af39"
integrity sha512-0My2z3nfJ8KTyz49/kyRBh0naoArsItDgfQP7qf38BfY8HAoiujFIANZyjpnq433UOU0wZqv0djHkydQX56FmQ==

"@nuxtjs/eslint-config-typescript@latest":
version "5.0.0"
Expand Down

0 comments on commit 837707d

Please sign in to comment.