Socket
Socket
Sign inDemoInstall

mockttp

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockttp - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

dist/util/fs.d.ts

@@ -6,2 +6,2 @@ /**

export declare function readFile(filename: string, encoding: null): Promise<Buffer>;
export declare function readFile(filename: string, encoding: string): Promise<string>;
export declare function readFile(filename: string, encoding: BufferEncoding): Promise<string>;
{
"name": "mockttp",
"version": "2.2.0",
"version": "2.2.1",
"description": "Mock HTTP server for testing HTTP clients and stubbing webservices",

@@ -140,3 +140,3 @@ "main": "dist/main.js",

"fetch-ponyfill": "^7.1.0",
"graphql": "^14.0.2",
"graphql": "^14.0.2 || ^15.5",
"graphql-subscriptions": "^1.1.0",

@@ -143,0 +143,0 @@ "http-encoding": "^1.4.0",

@@ -8,4 +8,4 @@ /**

export function readFile(filename: string, encoding: null): Promise<Buffer>;
export function readFile(filename: string, encoding: string): Promise<string>;
export function readFile(filename: string, encoding: string | null): Promise<string | Buffer> {
export function readFile(filename: string, encoding: BufferEncoding): Promise<string>;
export function readFile(filename: string, encoding: BufferEncoding | null): Promise<string | Buffer> {
return new Promise((resolve, reject) => {

@@ -12,0 +12,0 @@ fs.readFile(filename, encoding, (err, contents: string | Buffer) => {

Sorry, the diff of this file is not supported yet

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