Skip to content

Commit

Permalink
chore: migrate to ofetch
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 15, 2022
1 parent 17d947b commit 9e4224c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 31 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"listhen": "^1.0.0",
"mkdir": "^0.0.2",
"mri": "^1.2.0",
"ohmyfetch": "^0.4.21",
"ofetch": "^1.0.0",
"ufo": "^1.0.0",
"ws": "^8.11.0"
},
Expand Down
38 changes: 12 additions & 26 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/drivers/cloudflare-kv-http.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { $fetch } from 'ohmyfetch'
import { $fetch } from 'ofetch'
import { defineDriver } from './utils'

const LOG_TAG = '[unstorage] [cloudflare-http] '
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/github.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineDriver } from './utils'
import { $fetch } from 'ohmyfetch'
import { $fetch } from 'ofetch'
import { withTrailingSlash, joinURL } from 'ufo'

export interface GithubOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/http.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineDriver } from './utils'
import { stringify } from './utils'
import { $fetch } from 'ohmyfetch'
import { $fetch } from 'ofetch'
import { joinURL } from 'ufo'

export interface HTTPOptions {
Expand Down
2 changes: 1 addition & 1 deletion test/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, expect } from "vitest";
import { listen } from "listhen";
import { $fetch } from "ohmyfetch";
import { $fetch } from "ofetch";
import { createStorage } from "../src";
import { createStorageServer } from "../src/server";

Expand Down

0 comments on commit 9e4224c

Please sign in to comment.