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

gofer

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gofer - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### 4.0.1
* various type declaration fixes - **[@dbushong](https://github.com/dbushong)** [#106](https://github.com/groupon/gofer/pull/106)
- [`5f5968f`](https://github.com/groupon/gofer/commit/5f5968fb262c2e7c33c985bcfe16a47dc635d22d) **fix:** various type declarations - see: [#104](https://github.com/groupon/gofer/issues/104), [#105](https://github.com/groupon/gofer/issues/105)
### 4.0.0

@@ -2,0 +8,0 @@

17

lib/typedefs.d.ts

@@ -1,3 +0,3 @@

import { SecureContext } from "tls";
import { ServerResponse } from "http";
import { SecureContext } from 'tls';
import { ServerResponse } from 'http';

@@ -22,6 +22,10 @@ type BodyMethods = {

addOptionMapper(mapper: (opts: Gofer.Opts) => Gofer.Opts): void;
getMergedOptions(
defaults?: Gofer.FetchOpts,
options?: Gofer.FetchOpts
): Gofer.FetchOpts;
clone(): Gofer;
clone(): this;
with(opts: Gofer.Opts): Gofer;
with(opts: Gofer.Opts): this;

@@ -57,8 +61,9 @@ fetch(path: string, opts?: Gofer.FetchOpts): FetchResponse;

secureContext?: SecureContext;
[opt: string]: any;
};
export type FetchOpts = Opts & {
endpointName: string;
endpointName?: string;
json?: object;
method?: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
method?: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
body?: string | Buffer | ReadableStream;

@@ -65,0 +70,0 @@ form?: { [name: string]: any };

{
"name": "gofer",
"version": "4.0.0",
"version": "4.0.1",
"description": "A general purpose service client library",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

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