diff --git a/README.md b/README.md new file mode 120000 index 0000000..ac3a5f1 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +./packages/core/readme.md \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index aa2df29..1bfd674 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "undios", - "description": "Axios-style HTTP client service for Cordis", - "version": "0.1.0", + "description": "Fetch-based axios-style HTTP client", + "version": "0.1.1", "type": "module", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -31,22 +31,22 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/cordiverse/cordis.git", - "directory": "packages/http" + "url": "git+https://github.com/cordiverse/undios.git", + "directory": "packages/core" }, "bugs": { - "url": "https://github.com/cordiverse/cordis/issues" + "url": "https://github.com/cordiverse/undios/issues" }, - "homepage": "https://github.com/cordiverse/cordis", + "homepage": "https://github.com/cordiverse/undios", "keywords": [ - "cordis", "http", "fetch", "axios", + "http", "undici", "client", "request", - "service", + "cordis", "plugin" ], "devDependencies": { @@ -59,8 +59,6 @@ "dependencies": { "cosmokit": "^1.5.2", "file-type": "^16.5.4", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.2", "ws": "^8.16.0" } } diff --git a/packages/core/readme.md b/packages/core/readme.md index 8bd3600..d534244 100644 --- a/packages/core/readme.md +++ b/packages/core/readme.md @@ -1,3 +1,11 @@ -# @cordisjs/plugin-http +# Undios -Axios-style HTTP client service for Cordis. +Fetch-based axios-style HTTP client. + +> "und" comes from undici, an HTTP/1.1 client officially supported by Node.js team. +> "ios" comes from axios, a popular HTTP client for browser and Node.js. + +## Features + +- Browser and Node.js support +- Proxy agents (HTTP / HTTPS / SOCKS) diff --git a/packages/proxy-agent/package.json b/packages/proxy-agent/package.json index 803fe71..d8b81c2 100644 --- a/packages/proxy-agent/package.json +++ b/packages/proxy-agent/package.json @@ -1,7 +1,7 @@ { "name": "undios-proxy-agent", "description": "Proxy agent support for undios", - "version": "0.1.0", + "version": "0.1.1", "type": "module", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -21,30 +21,33 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/cordiverse/http.git", - "directory": "packages/socks" + "url": "git+https://github.com/cordiverse/undios.git", + "directory": "packages/proxy-agent" }, "bugs": { - "url": "https://github.com/cordiverse/http/issues" + "url": "https://github.com/cordiverse/undios/issues" }, - "homepage": "https://github.com/cordiverse/http", + "homepage": "https://github.com/cordiverse/undios", "keywords": [ - "cordis", "http", + "client", + "undici", "fetch", + "axios", "socks", + "http", + "https", "proxy", "agent", "request", - "service", - "plugin", - "undici" + "cordis", + "plugin" ], "devDependencies": { "cordis": "^3.10.0" }, "peerDependencies": { - "@cordisjs/plugin-http": "^0.1.0", + "undios": "^0.1.0", "cordis": "^3.10.0" }, "dependencies": { diff --git a/packages/proxy-agent/readme.md b/packages/proxy-agent/readme.md index 96fcece..f49ab0a 100644 --- a/packages/proxy-agent/readme.md +++ b/packages/proxy-agent/readme.md @@ -1 +1,3 @@ -# @cordisjs/plugin-http-socks +# undios-proxy-agent + +Supports HTTP, HTTPS, and SOCKS proxy agents for [undios](https://github.com/cordiverse/undios).