Socket
Socket
Sign inDemoInstall

@platform/http.types

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platform/http.types - npm Package Compare versions

Comparing version 0.2.50 to 0.2.51

6

lib/types.client.d.ts

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc