From 260cd3ad118f612fe1a7787630d96fbdcb2ab810 Mon Sep 17 00:00:00 2001 From: Inesh Bose <56732164+ineshbose@users.noreply.github.com> Date: Fri, 5 May 2023 14:36:28 +0100 Subject: [PATCH 1/2] feat(http): add requrl --- src/http.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http.ts b/src/http.ts index 731917c..24ef2d0 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1,2 +1,3 @@ export * from 'h3' export { default as isHTTPS } from 'is-https' +export { default as getURL } from 'requrl' From c58c5bada664b7b0d09a8e5e94928b7ff58f9f18 Mon Sep 17 00:00:00 2001 From: Inesh Bose <56732164+ineshbose@users.noreply.github.com> Date: Tue, 9 May 2023 16:49:19 +0100 Subject: [PATCH 2/2] chore: update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9245798..ecab94e 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Subpath | Packages [`unkit/env`](#env) | [unjs/std-env](https://github.com/unjs/std-env) [`unkit/esm`](#esm) | [unjs/mlly](https://github.com/unjs/mlly) [`unkit/fetch`](#fetch) | [unjs/ohmyfetch](https://github.com/unjs/ohmyfetch) -[`unkit/http`](#http) | [unjs/h3](https://github.com/unjs/h3), [unjs/is-https](https://github.com/unjs/is-https) +[`unkit/http`](#http) | [unjs/h3](https://github.com/unjs/h3), [unjs/is-https](https://github.com/unjs/is-https), [unjs/requrl](https://github.com/unjs/requrl) [`unkit/object`](#object) | [unjs/defu](https://github.com/unjs/defu), [unjs/destr](https://github.com/unjs/destr) [`unkit/promise`](#promise) | [unjs/items-promise](https://github.com/unjs/items-promise) [`unkit/string`](#string) | [unjs/scule](https://github.com/unjs/scule) @@ -86,14 +86,14 @@ const { $fetch } = require('unkit/fetch') > Helpers for creating HTTP servers -👉 See [unjs/h3](https://github.com/unjs/h3) and [unjs/is-https](https://github.com/unjs/is-https) for more information. +👉 See [unjs/h3](https://github.com/unjs/h3), [unjs/is-https](https://github.com/unjs/is-https) and [unjs/requrl](https://github.com/unjs/requrl) for more information. ```js // ESM / Typescript -import { useBody, isHTTPS } from 'unkit/http' +import { useBody, isHTTPS, getURL } from 'unkit/http' // CommonJS -const { useBody, isHTTPS } = require('unkit/http') +const { useBody, isHTTPS, getURL } = require('unkit/http') ``` ### `/object`