Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

response-objects

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

response-objects - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

dist/index.d.ts
export interface BaseResponseObject<T> {
body: T;
status: number;
headers?: object;
headers?: Headers;
}

@@ -6,0 +6,0 @@ export interface ResponseObject<T> extends BaseResponseObject<T> {

{
"name": "response-objects",
"version": "3.0.1",
"version": "3.0.2",
"description": "simple value objects representing HTTP responses",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,3 +6,3 @@ import { STATUS_CODES } from "http";

function toJSON(this: {body: any, status: number, headers: object}) {
function toJSON(this: {body: any, status: number, headers: Headers}) {
return { body: this.body, status: this.status, headers: this.headers };

@@ -22,3 +22,3 @@ }

status: number;
headers?: object;
headers?: Headers;
}

@@ -25,0 +25,0 @@

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