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

stubborn-ws

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stubborn-ws - npm Package Compare versions

Comparing version 5.3.4 to 5.3.5

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [5.3.5](https://github.com/ybonnefond/stubborn/compare/v5.3.4...v5.3.5) (2021-06-11)
### Bug Fixes
* res.write throwing error if body is null ([d22119e](https://github.com/ybonnefond/stubborn/commit/d22119e4f263ba2f611cc93dc053bf33622264f3))
## [5.3.4](https://github.com/ybonnefond/stubborn/compare/v5.3.3...v5.3.4) (2021-02-20)

@@ -2,0 +9,0 @@

4

dist/src/debug/Debugger.d.ts

@@ -12,4 +12,4 @@ /// <reference types="node" />

path: string;
headers: import("http").IncomingHttpHeaders & Record<string, string>;
query: Record<string, string | string[]>;
headers: import("http").IncomingHttpHeaders & import("../@types").RequestHeaders;
query: import("../@types").RequestQuery;
body: import("../@types").RequestBody;

@@ -16,0 +16,0 @@ hash: string;

@@ -24,3 +24,3 @@ import { BodyDefinition, HeaderDefinition, HeadersDefinition, PathDefinition, QueryDefinition, QueryParameterDefinition, RequestInfo, ResponseHeaders, Template } from './@types';

query: symbol | Record<string, QueryParameterDefinition>;
body: string | number | boolean | symbol | RegExp | import("./@types").JsonObject | import("./@types").JsonArray | import("./@types").MatchFunction | import("./@types").BodyDefinitionObject | import("./@types").BodyDefinitionArray | null | undefined;
body: symbol | RegExp | import("./@types").JsonValue | import("./@types").MatchFunction | import("./@types").BodyDefinitionObject | import("./@types").BodyDefinitionArray | undefined;
};

@@ -27,0 +27,0 @@ /**

@@ -148,3 +148,6 @@ "use strict";

res.writeHead(route.getResponseStatusCode(), headers);
res.write(encodeBody(req, headers, body));
const data = encodeBody(req, headers, body);
if (data !== null) {
res.write(data);
}
res.end();

@@ -151,0 +154,0 @@ }

import { Stubborn } from '../../src/index';
export declare function init(): {
sb: Stubborn;
request: (path?: string, options?: {}) => import("got/dist/source").CancelableRequest<import("got/dist/source").Response<unknown>>;
request: (path?: string, options?: {}) => import("got").CancelableRequest<import("got").Response<unknown>>;
};
{
"name": "stubborn-ws",
"version": "5.3.4",
"version": "5.3.5",
"description": "Web server to mock external HTTP APIs in tests",

@@ -46,4 +46,4 @@ "homepage": "https://github.com/ybonnefond/stubborn#stubborn",

"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@commitlint/cli": "^12.0.0",
"@commitlint/config-conventional": "^12.0.0",
"@compodoc/compodoc": "^1.1.9",

@@ -50,0 +50,0 @@ "@octokit/rest": "^18.0.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