@platform/http.types
Advanced tools
Comparing version 0.2.50 to 0.2.51
@@ -14,5 +14,5 @@ import { t, Observable } from './common'; | ||
headers: t.HttpHeaders; | ||
events$: Observable<t.HttpEvent>; | ||
before$: Observable<t.HttpBefore>; | ||
after$: Observable<t.HttpAfter>; | ||
$: Observable<t.HttpEvent>; | ||
req$: Observable<t.HttpMethodReq>; | ||
res$: Observable<t.HttpMethodRes>; | ||
}; | ||
@@ -19,0 +19,0 @@ export declare type HttpMethods = { |
@@ -1,2 +0,3 @@ | ||
import { t, IDuration } from './common'; | ||
import { t } from './common'; | ||
declare type Milliseconds = number; | ||
export declare type HttpRespondInput = t.HttpRespondPayload | (() => t.HttpRespondPayload) | (() => Promise<t.HttpRespondPayload>); | ||
@@ -10,9 +11,9 @@ export declare type HttpModify = { | ||
}; | ||
export declare type HttpEvent = HttpBeforeEvent | HttpAfterEvent; | ||
export declare type HttpBeforeEvent = { | ||
type: 'HTTP/before'; | ||
payload: HttpBefore; | ||
export declare type HttpEvent = HttpMethodReqEvent | HttpMethodResEvent; | ||
export declare type HttpMethodReqEvent = { | ||
type: 'HTTP/method:req'; | ||
payload: HttpMethodReq; | ||
}; | ||
export declare type HttpBefore = { | ||
uid: string; | ||
export declare type HttpMethodReq = { | ||
tx: string; | ||
method: t.HttpMethod; | ||
@@ -26,8 +27,8 @@ url: string; | ||
}; | ||
export declare type HttpAfterEvent = { | ||
type: 'HTTP/after'; | ||
payload: HttpAfter; | ||
export declare type HttpMethodResEvent = { | ||
type: 'HTTP/method:res'; | ||
payload: HttpMethodRes; | ||
}; | ||
export declare type HttpAfter = { | ||
uid: string; | ||
export declare type HttpMethodRes = { | ||
tx: string; | ||
method: t.HttpMethod; | ||
@@ -38,3 +39,4 @@ url: string; | ||
response: t.HttpResponse; | ||
elapsed: IDuration; | ||
elapsed: Milliseconds; | ||
}; | ||
export {}; |
{ | ||
"name": "@platform/http.types", | ||
"version": "0.2.50", | ||
"version": "0.2.51", | ||
"description": "Types for the @platform/http library.", | ||
@@ -9,3 +9,2 @@ "main": "lib/index", | ||
"test": "ts test", | ||
"tdd": "ts test --watch", | ||
"lint": "ts lint", | ||
@@ -16,8 +15,8 @@ "build": "ts build --no-esm", | ||
"dependencies": { | ||
"@platform/libs": "0.2.12", | ||
"@platform/types": "0.5.23" | ||
"@platform/libs": "0.2.13", | ||
"@platform/types": "0.5.24" | ||
}, | ||
"devDependencies": { | ||
"@platform/test": "0.2.8", | ||
"@platform/ts": "4.1.21" | ||
"@platform/test": "0.2.9", | ||
"@platform/ts": "4.1.22" | ||
}, | ||
@@ -24,0 +23,0 @@ "files": [ |
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
6736
159
+ Added@platform/libs@0.2.13(transitive)
+ Added@platform/types@0.5.24(transitive)
- Removed@platform/libs@0.2.12(transitive)
- Removed@platform/types@0.5.23(transitive)
Updated@platform/libs@0.2.13
Updated@platform/types@0.5.24