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 5.2.0 to 5.2.1

7

CHANGELOG.md

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

### v5.2.1 (2022-02-28)
<a id="v5.2.1"></a>
#### 🐛 Bug Fixes
* [#128](https://github.com/groupon/gofer/pull/128) fix: export type for registerEndpoints ([@JimLiu](https://github.com/JimLiu))
### v5.2.0 (2021-07-13)

@@ -2,0 +9,0 @@ <a id="v5.2.0"></a>

14

lib/typedefs.d.ts

@@ -13,2 +13,12 @@ import { SecureContext } from 'tls';

type Fetch = (path: string, opts?: Gofer.FetchOpts, cb?: any) => FetchResponse;
type EndpointFnReturn =
| ((...args: any[]) => FetchResponse)
| {
[key: string]: (...args: any[]) => FetchResponse;
};
export type EndpointFn = (fetch: Fetch) => EndpointFnReturn;
declare class Gofer {

@@ -27,2 +37,4 @@ constructor(

): Gofer.FetchOpts;
registerEndpoint(name: string, endpointFn: EndpointFn): this;
registerEndpoints(endpoints: { [name: string]: EndpointFn }): this;

@@ -33,3 +45,3 @@ clone(): this;

fetch(path: string, opts?: Gofer.FetchOpts): FetchResponse;
fetch: Fetch;
get(path: string, opts?: Gofer.FetchOpts): FetchResponse;

@@ -36,0 +48,0 @@ post(path: string, opts?: Gofer.FetchOpts): FetchResponse;

2

package.json
{
"name": "gofer",
"version": "5.2.0",
"version": "5.2.1",
"description": "A general purpose service client library",

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

[![nlm-github](https://img.shields.io/badge/github-groupon%2Fgofer%2Fissues-F4D03F?logo=github&logoColor=white)](https://github.com/groupon/gofer/issues)
![nlm-node](https://img.shields.io/badge/node-%3E%3D10.13-blue?logo=node.js&logoColor=white)
![nlm-version](https://img.shields.io/badge/version-5.2.0-blue?logo=version&logoColor=white)
![nlm-version](https://img.shields.io/badge/version-5.2.1-blue?logo=version&logoColor=white)
[![Build Status](https://travis-ci.com/groupon/gofer.svg?branch=main)](https://travis-ci.com/groupon/gofer)

@@ -5,0 +5,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