Skip to content

Commit

Permalink
fix: http extra header field
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Oct 18, 2023
1 parent eb6a13d commit 517df4f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "1.1.0",
"version": "1.1.1",
"packageManager": "[email protected]",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-gopeed-ext/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-gopeed-ext",
"version": "1.1.0",
"version": "1.1.1",
"keywords": [
"gopeed"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/create-gopeed-ext/templates/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"gopeed": "^1.1.0",
"@gopeed/types": "^1.1.0",
"gopeed": "^1.1.1",
"@gopeed/types": "^1.1.1",
"prettier": "^3.0.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gopeed/rest",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gopeed/types",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down
8 changes: 4 additions & 4 deletions packages/gopeed-types/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
export type HttpHeaders = { [key: string]: string };
export type HttpHeader = { [key: string]: string };

/**
* HTTP request extra options
* @example {
* "method": "GET",
* "headers": {
* "header": {
* "Cookie": "xxx"
* }
* }
Expand All @@ -16,9 +16,9 @@ export interface HttpReqExtra {
*/
method?: HttpMethod;
/**
* HTTP request headers
* HTTP request header
*/
headers?: HttpHeaders;
header?: HttpHeader;
/**
* HTTP request body
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/gopeed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gopeed",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "dist/index.js",
"exports": {
Expand Down

0 comments on commit 517df4f

Please sign in to comment.