sync-request-curl
Advanced tools
Comparing version 1.2.0 to 1.2.1
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'; | ||
import { IncomingHttpHeaders } from 'http'; | ||
export type HttpVerb = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; | ||
@@ -19,5 +19,5 @@ export type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; | ||
statusCode: number; | ||
headers: OutgoingHttpHeaders; | ||
headers: IncomingHttpHeaders; | ||
body: string | Buffer; | ||
getBody: GetBody; | ||
} |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'; | ||
import { IncomingHttpHeaders } from 'http'; | ||
export type HttpVerb = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; | ||
@@ -19,5 +19,5 @@ export type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; | ||
statusCode: number; | ||
headers: OutgoingHttpHeaders; | ||
headers: IncomingHttpHeaders; | ||
body: string | Buffer; | ||
getBody: GetBody; | ||
} |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"files": [ | ||
@@ -10,0 +10,0 @@ "dist" |
@@ -98,5 +98,5 @@ # sync-request-curl | ||
statusCode: number; | ||
headers: OutgoingHttpHeaders; | ||
headers: IncomingHttpHeaders; | ||
body: string | Buffer; | ||
getBody: (encoding?: BufferEncoding) => string | Buffer; | ||
getBody: (encoding?: BufferEncoding) => string | Buffer; // simplified | ||
} | ||
@@ -103,0 +103,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26448