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 21.2.0 to 21.3.0

16

CHANGELOG.md

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

# v21.3.0 (Sun Jun 14 2020)
#### 🐛 Bug Fix
- Bump version to: 21.2.0 \[skip ci\] ([@jdalrymple](https://github.com/jdalrymple))
- Update CHANGELOG.md \[skip ci\] ([@jdalrymple](https://github.com/jdalrymple))
- Fixing package versions again \[skip ci\] ([@jdalrymple](https://github.com/jdalrymple))
- Updating CHANGELOG.md \[skip ci\] ([@jdalrymple](https://github.com/jdalrymple))
- v21.0.1 ([@jdalrymple](https://github.com/jdalrymple))
#### Authors: 1
- Justin Dalrymple ([@jdalrymple](https://github.com/jdalrymple))
---
# v21.2.0 (Sun Jun 14 2020)

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

4

dist/index.es.js

@@ -1,2 +0,2 @@

import{decamelizeKeys as t}from"xcase";import{stringify as r}from"query-string";
import t from"form-data";import{decamelizeKeys as r}from"xcase";import{stringify as o}from"query-string";
/*! *****************************************************************************

@@ -15,2 +15,2 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var o=function(t,r){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])})(t,r)};var n=function(){return(n=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++)for(var e in r=arguments[o])Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t}).apply(this,arguments)};function e(o){return r(t(o||{}),{arrayFormat:"bracket"})}function a(r,o){var n,a=void 0===o?{}:o,i=a.body,u=a.query,c=a.sudo,f=a.method,p=void 0===f?"get":f,s=r.headers;return c&&(s.sudo=c),"object"!=typeof i||i instanceof FormData?n=i:(n=JSON.stringify(t(i)),s["content-type"]="application/json"),{agent:void 0,headers:s,timeout:r.requestTimeout,method:p,searchParams:e(u),prefixUrl:r.url,body:n}}function i(t,r){var o={};return["get","post","put","delete","stream"].forEach((function(e){o[e]=function(o,a,i){var u=t(o,n(n({},i),{method:e}));return r(a,u)}})),o}function u(t,r){return function(t){function e(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.call(this,n(n({},o),r))||this}return function(t,r){function n(){this.constructor=t}o(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}(e,t),e}(t)}function c(t,r){var o={};return Object.entries(t).forEach((function(t){var n=function(t,r){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,e,a=o.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){e={error:t}}finally{try{n&&!n.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}return i}(t,2),e=n[0],a=n[1];o[e]=u(a,r)})),o}export{i as createInstance,a as defaultRequest,e as formatQuery,c as modifyServices};
***************************************************************************** */var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])})(t,r)};var e=function(){return(e=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++)for(var e in r=arguments[o])Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t}).apply(this,arguments)};function i(t){return o(r(t||{}),{arrayFormat:"bracket"})}function a(o,n){var e,a=void 0===n?{}:n,u=a.body,c=a.query,f=a.sudo,p=a.method,s=void 0===p?"get":p,l=o.headers;return f&&(l.sudo=f),"object"!=typeof u||u instanceof t?e=u:(e=JSON.stringify(r(u)),l["content-type"]="application/json"),{agent:void 0,headers:l,timeout:o.requestTimeout,method:s,searchParams:i(c),prefixUrl:o.url,body:e}}function u(t,r){var o={};return["get","post","put","delete","stream"].forEach((function(n){o[n]=function(o,i,a){var u=t(o,e(e({},a),{method:n}));return r(i,u)}})),o}function c(t,r){return function(t){function o(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.call(this,e(e({},o),r))||this}return function(t,r){function o(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}(o,t),o}(t)}function f(t,r){var o={};return Object.entries(t).forEach((function(t){var n=function(t,r){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,e,i=o.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){e={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(e)throw e.error}}return a}(t,2),e=n[0],i=n[1];o[e]=c(i,r)})),o}export{u as createInstance,a as defaultRequest,i as formatQuery,f as modifyServices};

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("xcase"),r=require("query-string"),e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};var o=function(){return(o=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}).apply(this,arguments)};function n(e){return r.stringify(t.decamelizeKeys(e||{}),{arrayFormat:"bracket"})}function i(t,r){return function(t){function n(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.call(this,o(o({},e),r))||this}return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}(n,t),n}(t)}exports.createInstance=function(t,r){var e={};return["get","post","put","delete","stream"].forEach((function(n){e[n]=function(e,i,a){var u=t(e,o(o({},a),{method:n}));return r(i,u)}})),e},exports.defaultRequest=function(r,e){var o,i=void 0===e?{}:e,a=i.body,u=i.query,c=i.sudo,f=i.method,s=void 0===f?"get":f,p=r.headers;return c&&(p.sudo=c),"object"!=typeof a||a instanceof FormData?o=a:(o=JSON.stringify(t.decamelizeKeys(a)),p["content-type"]="application/json"),{agent:void 0,headers:p,timeout:r.requestTimeout,method:s,searchParams:n(u),prefixUrl:r.url,body:o}},exports.formatQuery=n,exports.modifyServices=function(t,r){var e={};return Object.entries(t).forEach((function(t){var o=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,n,i=e.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return a}(t,2),n=o[0],a=o[1];e[n]=i(a,r)})),e};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("form-data"))&&"object"==typeof t&&"default"in t?t.default:t,e=require("xcase"),o=require("query-string"),n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};var i=function(){return(i=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}).apply(this,arguments)};function a(t){return o.stringify(e.decamelizeKeys(t||{}),{arrayFormat:"bracket"})}function u(t,r){return function(t){function e(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.call(this,i(i({},e),r))||this}return function(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}(e,t),e}(t)}exports.createInstance=function(t,r){var e={};return["get","post","put","delete","stream"].forEach((function(o){e[o]=function(e,n,a){var u=t(e,i(i({},a),{method:o}));return r(n,u)}})),e},exports.defaultRequest=function(t,o){var n,i=void 0===o?{}:o,u=i.body,c=i.query,f=i.sudo,s=i.method,l=void 0===s?"get":s,p=t.headers;return f&&(p.sudo=f),"object"!=typeof u||u instanceof r?n=u:(n=JSON.stringify(e.decamelizeKeys(u)),p["content-type"]="application/json"),{agent:void 0,headers:p,timeout:t.requestTimeout,method:l,searchParams:a(c),prefixUrl:t.url,body:n}},exports.formatQuery=a,exports.modifyServices=function(t,r){var e={};return Object.entries(t).forEach((function(t){var o=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,n,i=e.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return a}(t,2),n=o[0],i=o[1];e[n]=u(i,r)})),e};
/// <reference types="node" />
import { Agent } from 'https';
import FormData from 'form-data';
export interface RequesterType {

@@ -4,0 +5,0 @@ get(service: object, endpoint: string, options?: object): Promise<any>;

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

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

},
"gitHead": "a7e5c2886808e15fa91cc96e6717e9019087f6d5"
"gitHead": "54b17b6e56c735092078b971efbeae314875308b"
}
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