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 3.8.0 to 3.8.1

6

CHANGELOG.md

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

### 3.8.1
* add missing verbs & make types match - **[@dbushong](https://github.com/dbushong)** [#102](https://github.com/groupon/gofer/pull/102)
- [`4c52721`](https://github.com/groupon/gofer/commit/4c527214f91c02b014296fb79afe1b382e03337a) **fix:** add missing verbs & make types match
### 3.8.0

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

10

lib/gofer.js

@@ -138,6 +138,8 @@ /*

['get', 'put', 'post', 'patch', 'del', 'head'].forEach(function withVerb(verb) {
var httpMethod = verb === 'del' ? 'DELETE' : verb.toUpperCase();
Gofer.prototype[verb] = fetchWithDefaults({ method: httpMethod });
});
['get', 'put', 'post', 'patch', 'del', 'head', 'options', 'delete'].forEach(
function withVerb(verb) {
var httpMethod = verb === 'del' ? 'DELETE' : verb.toUpperCase();
Gofer.prototype[verb] = fetchWithDefaults({ method: httpMethod });
}
);
Gofer.prototype.fetch = Gofer.prototype.get;

@@ -144,0 +146,0 @@

9

lib/typedefs.d.ts

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

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

@@ -31,4 +31,5 @@ type BodyMethods = {

put(path: string, opts?: Gofer.FetchOpts): FetchResponse;
del(path: string, opts?: Gofer.FetchOpts): FetchResponse;
head(path: string, opts?: Gofer.FetchOpts): FetchResponse;
delete(path: string, opts?: Gofer.FetchOpts): FetchResponse;
head(path: string, opts?: Gofer.FetchOpts): FetchResponse;
patch(path: string, opts?: Gofer.FetchOpts): FetchResponse;

@@ -49,3 +50,3 @@ options(path: string, opts?: Gofer.FetchOpts): FetchResponse;

headers?: { [name: string]: string };
auth?: string | { username: string, password: string };
auth?: string | { username: string; password: string };
qs?: { [name: string]: any };

@@ -52,0 +53,0 @@ maxSockets?: number;

{
"name": "gofer",
"version": "3.8.0",
"version": "3.8.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