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.1.2 to 5.0.0

16

CHANGELOG.md

@@ -0,1 +1,17 @@

### 5.0.0
#### Breaking Changes
drop support for Node < 10
needed for isomorphic uses of global URLSearchParams
*See: [`7223986`](https://github.com/groupon/gofer/commit/7223986f6c8a316250e2152217391f4119df4d6b)*
#### Commits
* allow qs to be URLSearchParams - **[@dbushong](https://github.com/dbushong)** [#112](https://github.com/groupon/gofer/pull/112)
- [`7223986`](https://github.com/groupon/gofer/commit/7223986f6c8a316250e2152217391f4119df4d6b) **chore:** upgrade, update, & audit
- [`12ea54f`](https://github.com/groupon/gofer/commit/12ea54f94cdd562abf6bb533ec4625c7f83b2296) **feat:** support URLSearchParams for `qs`
### 4.1.2

@@ -2,0 +18,0 @@

1

lib/fetch.js

@@ -37,3 +37,2 @@ /*

const https = require('https');
const { URL, URLSearchParams } = require('url');

@@ -40,0 +39,0 @@ const request = require('./request');

@@ -37,3 +37,2 @@ /*

const https = require('https');
const { URL } = require('url');

@@ -40,0 +39,0 @@ const debug = require('debug')('gofer');

@@ -59,3 +59,3 @@ import { SecureContext } from 'tls';

auth?: string | { username: string; password: string };
qs?: { [name: string]: any };
qs?: { [name: string]: any } | URLSearchParams;
maxSockets?: number;

@@ -62,0 +62,0 @@ minStatusCode?: number;

@@ -43,2 +43,7 @@ /*

function updateSearch(query, qs, path = []) {
if (qs instanceof URLSearchParams) {
for (const [key, val] of qs.entries()) query.append(key, val);
return query;
}
for (const [key, val] of Object.entries(qs || {})) {

@@ -45,0 +50,0 @@ if (val == null) continue;

{
"name": "gofer",
"version": "4.1.2",
"version": "5.0.0",
"description": "A general purpose service client library",

@@ -28,7 +28,10 @@ "license": "BSD-3-Clause",

"posttest:nlm": "nlm verify",
"test:unit": "mocha"
"test:unit": "nyc mocha"
},
"engines": {
"node": ">=8.3.0"
"node": ">=10"
},
"mocha": {
"recursive": true
},
"nlm": {

@@ -58,6 +61,7 @@ "license": {

"form-data": "^1.0.0-rc4",
"mocha": "^7.0.1",
"mocha": "^7.1.0",
"mochify": "^6.6.0",
"nlm": "^3.6.3",
"nlm": "^4.0.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.0.0",
"prettier": "^1.19.1",

@@ -64,0 +68,0 @@ "self-signed": "^1.3.1"

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