@faasjs/request 0.0.2-beta.452 → 0.0.2-beta.454

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +2 -6
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as http from 'http';
2
2
  import { Logger } from '@faasjs/logger';
3
3
 
4
- declare type Request = {
4
+ type Request = {
5
5
  headers?: http.OutgoingHttpHeaders;
6
6
  method?: string;
7
7
  host?: string;
@@ -11,14 +11,14 @@ declare type Request = {
11
11
  [key: string]: any;
12
12
  };
13
13
  };
14
- declare type Response<T = any> = {
14
+ type Response<T = any> = {
15
15
  request?: Request;
16
16
  statusCode?: number;
17
17
  statusMessage?: string;
18
18
  headers: http.OutgoingHttpHeaders;
19
19
  body: T;
20
20
  };
21
- declare type RequestOptions = {
21
+ type RequestOptions = {
22
22
  headers?: http.OutgoingHttpHeaders;
23
23
  /**
24
24
  * The HTTP method to use when making the request. Defaults to GET.
@@ -54,7 +54,7 @@ declare type RequestOptions = {
54
54
  parse?: (body: string) => any;
55
55
  logger?: Logger;
56
56
  };
57
- declare type Mock = (url: string, options: RequestOptions) => Promise<Response>;
57
+ type Mock = (url: string, options: RequestOptions) => Promise<Response>;
58
58
  /**
59
59
  * Mock requests
60
60
  * @param handler {function | null} null to disable mock
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/request",
3
- "version": "0.0.2-beta.452",
3
+ "version": "0.0.2-beta.454",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,11 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@faasjs/logger": "^0.0.2-beta.452"
26
- },
27
- "devDependencies": {
28
- "tsup": "*",
29
- "typescript": "*"
25
+ "@faasjs/logger": "^0.0.2-beta.454"
30
26
  },
31
27
  "engines": {
32
28
  "npm": ">=8.0.0",