chore: migrate from @nuxt/ufo to ufo

This commit is contained in:
Pooya Parsa 2020-12-22 18:20:41 +01:00
parent 9681a8937d
commit 7529d65d75
13 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@
"index.d.ts"
],
"dependencies": {
"@nuxt/ufo": "^0.5.2",
"ufo": "^0.5.2",
"@nuxt/utils": "2.14.12",
"consola": "^2.15.0",
"create-require": "^1.1.1",

View File

@ -5,7 +5,7 @@ import defu from 'defu'
import consola from 'consola'
import destr from 'destr'
import { TARGETS, MODES, guardDir, isNonEmptyString, isPureObject, isUrl, getMainModule, getPKG } from '@nuxt/utils'
import { joinURL, normalizeURL, withTrailingSlash } from '@nuxt/ufo'
import { joinURL, normalizeURL, withTrailingSlash } from 'ufo'
import { defaultNuxtConfigFile, getDefaultNuxtConfig } from './config'
export function getNuxtConfig (_options) {

View File

@ -8,7 +8,7 @@
"dist"
],
"dependencies": {
"@nuxt/ufo": "^0.5.2",
"ufo": "^0.5.2",
"consola": "^2.15.0",
"create-require": "^1.1.1",
"fs-extra": "^9.0.1",

View File

@ -1,7 +1,7 @@
import path from 'path'
import { get } from 'lodash'
import consola from 'consola'
import { normalizeURL, withTrailingSlash, withoutTrailingSlash } from '@nuxt/ufo'
import { normalizeURL, withTrailingSlash, withoutTrailingSlash } from 'ufo'
import { r } from './resolve'
const routeChildren = function (route) {

View File

@ -2,7 +2,7 @@ export default {
build: true,
ignoreUnused: [
// used in vue-app
'@nuxt/ufo',
'ufo',
'node-fetch',
'unfetch',
'vue',

View File

@ -13,7 +13,7 @@
"index.d.ts"
],
"dependencies": {
"@nuxt/ufo": "^0.5.2",
"ufo": "^0.5.2",
"node-fetch": "^2.6.1",
"unfetch": "^4.2.0",
"vue": "^2.6.12",

View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import { parsePath, withoutTrailingSlash } from '@nuxt/ufo'
import { parsePath, withoutTrailingSlash } from 'ufo'
<% utilsImports = [
...(features.asyncData || features.fetch) ? [
'getMatchedComponentsInstances',

View File

@ -1,6 +1,6 @@
import Vue from 'vue'
import Router from 'vue-router'
import { normalizeURL, decode } from '@nuxt/ufo'
import { normalizeURL, decode } from 'ufo'
import { interopDefault } from './utils'<%= isTest ? '// eslint-disable-line no-unused-vars' : '' %>
import scrollBehavior from './router.scrollBehavior.js'

View File

@ -1,6 +1,6 @@
import { stringify } from 'querystring'
import Vue from 'vue'
import { normalizeURL } from '@nuxt/ufo'
import { normalizeURL } from 'ufo'
<% if (fetch.server) { %>import fetch from 'node-fetch'<% } %>
<% if (features.middleware) { %>import middleware from './middleware.js'<% } %>
import {

View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import { normalizeURL } from '@nuxt/ufo'
import { normalizeURL } from 'ufo'
// window.{{globals.loadedCallback}} hook
// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)

View File

@ -9,7 +9,7 @@
],
"dependencies": {
"@nuxt/devalue": "^1.2.4",
"@nuxt/ufo": "^0.5.2",
"ufo": "^0.5.2",
"@nuxt/utils": "2.14.12",
"consola": "^2.15.0",
"fs-extra": "^9.0.1",

View File

@ -3,7 +3,7 @@ import fs from 'fs-extra'
import consola from 'consola'
import { template } from 'lodash'
import { TARGETS, isModernRequest, urlJoin, waitFor } from '@nuxt/utils'
import { normalizeURL } from '@nuxt/ufo'
import { normalizeURL } from 'ufo'
import SPARenderer from './renderers/spa'
import SSRRenderer from './renderers/ssr'

View File

@ -4,7 +4,7 @@ import { format } from 'util'
import fs from 'fs-extra'
import consola from 'consola'
import { TARGETS, urlJoin } from '@nuxt/utils'
import { parsePath, withoutTrailingSlash } from '@nuxt/ufo'
import { parsePath, withoutTrailingSlash } from 'ufo'
import devalue from '@nuxt/devalue'
import { createBundleRenderer } from 'vue-server-renderer'
import BaseRenderer from './base'