Socket
Socket
Sign inDemoInstall

@gitbeaker/requester-utils

Package Overview
Dependencies
Maintainers
1
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitbeaker/requester-utils - npm Package Compare versions

Comparing version 24.1.0 to 24.2.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# v24.2.0 (Tue Oct 13 2020)
#### 🐛 Bug Fix
- Handling nesting of not query parameter [#1223](https://github.com/jdalrymple/gitbeaker/pull/1223) ([@jdalrymple](https://github.com/jdalrymple))
#### Authors: 1
- Justin Dalrymple ([@jdalrymple](https://github.com/jdalrymple))
---
# v23.7.0 (Tue Sep 29 2020)

@@ -2,0 +14,0 @@

10

dist/index.es.js

@@ -106,6 +106,8 @@ import { decamelizeKeys } from 'xcase';

// Utility methods
function formatQuery(options) {
return stringify(decamelizeKeys(options || {}), {
arrayFormat: 'bracket',
});
function formatQuery(params) {
if (params === void 0) { params = {}; }
var decamelized = decamelizeKeys(params);
if (decamelized.not)
decamelized.not = JSON.stringify(decamelized.not);
return stringify(decamelized, { arrayFormat: 'bracket' });
}

@@ -112,0 +114,0 @@ function defaultRequest(service, _a) {

@@ -110,6 +110,8 @@ 'use strict';

// Utility methods
function formatQuery(options) {
return queryString.stringify(xcase.decamelizeKeys(options || {}), {
arrayFormat: 'bracket',
});
function formatQuery(params) {
if (params === void 0) { params = {}; }
var decamelized = xcase.decamelizeKeys(params);
if (decamelized.not)
decamelized.not = JSON.stringify(decamelized.not);
return queryString.stringify(decamelized, { arrayFormat: 'bracket' });
}

@@ -116,0 +118,0 @@ function defaultRequest(service, _a) {

2

dist/types/RequesterUtils.d.ts

@@ -26,3 +26,3 @@ /// <reference types="node" />

};
export declare function formatQuery(options?: Record<string, unknown>): string;
export declare function formatQuery(params?: Record<string, unknown>): string;
export declare function defaultRequest(service: DefaultRequestService, { body, query, sudo, method }?: DefaultRequestOptions): DefaultRequestReturn;

@@ -29,0 +29,0 @@ export declare function createInstance(optionsHandler: any, requestHandler: any): RequesterType;

{
"name": "@gitbeaker/requester-utils",
"description": "Utility functions for requester implementatons used in @gitbeaker",
"version": "24.1.0",
"version": "24.2.0",
"author": {

@@ -48,3 +48,3 @@ "name": "Justin Dalrymple"

},
"gitHead": "166160163875b8d3cf80f53030d5efe6fb196f71"
"gitHead": "2fe9cb90722af89f848e08f889e21035acab1f40"
}
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