Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gitbeaker/node

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitbeaker/node - npm Package Compare versions

Comparing version 18.1.0 to 18.2.0

12

CHANGELOG.md

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

# v18.2.0 (Wed Apr 22 2020)
#### 🐛 Bug Fix
- Updating agent property based on new changes in Got [#712](https://github.com/jdalrymple/gitbeaker/pull/712) ([@jdalrymple](https://github.com/jdalrymple))
#### Authors: 1
- Justin Dalrymple ([@jdalrymple](https://github.com/jdalrymple))
---
# v18.1.0 (Wed Apr 22 2020)

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

4

dist/index.es.js

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

import*as e from"@gitbeaker/core";import t from"got";import r from"form-data";import{decamelizeKeys as n}from"xcase";import{createInstance as o,defaultRequest as a}from"@gitbeaker/requester-utils";
import*as e from"@gitbeaker/core";import t from"got";import r from"form-data";import{decamelizeKeys as n}from"xcase";import{Agent as o}from"https";import{createInstance as a,defaultRequest as i}from"@gitbeaker/requester-utils";
/*! *****************************************************************************

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

and limitations under the License.
***************************************************************************** */var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}s((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var c=o((function(e,t){var o=void 0===t?{}:t,i=o.body,u=o.query,s=o.sudo,c=o.method,f=a(e,{body:i,query:u,sudo:s,method:c});return"object"!=typeof i||i instanceof r||(f.json=n(i),delete f.body),f}),(function(e,r){return u(this,void 0,void 0,(function(){var n,o,a,i,u;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,t(e,r)];case 1:return n=s.sent(),[3,3];case 2:throw(o=s.sent()).response&&(a=o.response.body,o.description=a.error||a.message),o;case 3:return i=n.statusCode,u=n.headers,[2,{body:function(e){switch(e.headers["content-type"]||""){case"application/json":return 0===e.body.length?{}:JSON.parse(e.body.toString());case"application/octet-stream":case"binary/octet-stream":case"application/gzip":return Buffer.from(e.body);default:return e.body||""}}(n),headers:u,status:i}]}}))}))})),f={};Object.keys(e).forEach((function(t){f[t]=function(r){return new e[t](i({requester:c},r))}}));export default f;
***************************************************************************** */var u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}s((n=n.apply(e,t||[])).next())}))}function c(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var f=a((function(e,t){var a=void 0===t?{}:t,u=a.body,s=a.query,c=a.sudo,f=a.method,l=i(e,{body:u,query:s,sudo:c,method:f});return"object"!=typeof u||u instanceof r||(l.json=n(u),delete l.body),e.url.includes("https")&&(l.agent={https:new o({rejectUnauthorized:e.rejectUnauthorized})}),l}),(function(e,r){return s(this,void 0,void 0,(function(){var n,o,a,i,u;return c(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,t(e,r)];case 1:return n=s.sent(),[3,3];case 2:throw(o=s.sent()).response&&(a=o.response.body,o.description=a.error||a.message),o;case 3:return i=n.statusCode,u=n.headers,[2,{body:function(e){switch(e.headers["content-type"]||""){case"application/json":return 0===e.body.length?{}:JSON.parse(e.body.toString());case"application/octet-stream":case"binary/octet-stream":case"application/gzip":return Buffer.from(e.body);default:return e.body||""}}(n),headers:u,status:i}]}}))}))})),l={};Object.keys(e).forEach((function(t){l[t]=function(r){return new e[t](u({requester:f},r))}}));export default l;

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

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("@gitbeaker/core"),r=e(require("got")),n=e(require("form-data")),o=require("xcase"),a=require("@gitbeaker/requester-utils"),u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,i)}c((n=n.apply(e,t||[])).next())}))}function c(e,t){var r,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}var s=a.createInstance((function(e,t){var r=void 0===t?{}:t,u=r.body,i=r.query,c=r.sudo,s=r.method,l=a.defaultRequest(e,{body:u,query:i,sudo:c,method:s});return"object"!=typeof u||u instanceof n||(l.json=o.decamelizeKeys(u),delete l.body),l}),(function(e,t){return i(this,void 0,void 0,(function(){var n,o,a,u,i;return c(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,r(e,t)];case 1:return n=c.sent(),[3,3];case 2:throw(o=c.sent()).response&&(a=o.response.body,o.description=a.error||a.message),o;case 3:return u=n.statusCode,i=n.headers,[2,{body:function(e){switch(e.headers["content-type"]||""){case"application/json":return 0===e.body.length?{}:JSON.parse(e.body.toString());case"application/octet-stream":case"binary/octet-stream":case"application/gzip":return Buffer.from(e.body);default:return e.body||""}}(n),headers:i,status:u}]}}))}))})),l={};Object.keys(t).forEach((function(e){l[e]=function(r){return new t[e](u({requester:s},r))}})),module.exports=l;
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("@gitbeaker/core"),r=e(require("got")),n=e(require("form-data")),o=require("xcase"),a=require("https"),u=require("@gitbeaker/requester-utils"),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function c(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,i)}c((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}var l=u.createInstance((function(e,t){var r=void 0===t?{}:t,i=r.body,c=r.query,s=r.sudo,l=r.method,f=u.defaultRequest(e,{body:i,query:c,sudo:s,method:l});return"object"!=typeof i||i instanceof n||(f.json=o.decamelizeKeys(i),delete f.body),e.url.includes("https")&&(f.agent={https:new a.Agent({rejectUnauthorized:e.rejectUnauthorized})}),f}),(function(e,t){return c(this,void 0,void 0,(function(){var n,o,a,u,i;return s(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,r(e,t)];case 1:return n=c.sent(),[3,3];case 2:throw(o=c.sent()).response&&(a=o.response.body,o.description=a.error||a.message),o;case 3:return u=n.statusCode,i=n.headers,[2,{body:function(e){switch(e.headers["content-type"]||""){case"application/json":return 0===e.body.length?{}:JSON.parse(e.body.toString());case"application/octet-stream":case"binary/octet-stream":case"application/gzip":return Buffer.from(e.body);default:return e.body||""}}(n),headers:i,status:u}]}}))}))})),f={};Object.keys(t).forEach((function(e){f[e]=function(r){return new t[e](i({requester:l},r))}})),module.exports=f;
{
"name": "@gitbeaker/node",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"version": "18.1.0",
"version": "18.2.0",
"author": {

@@ -12,4 +12,4 @@ "name": "Justin Dalrymple"

"dependencies": {
"@gitbeaker/core": "^18.1.0",
"@gitbeaker/requester-utils": "^18.1.0",
"@gitbeaker/core": "^18.2.0",
"@gitbeaker/requester-utils": "^18.2.0",
"form-data": "^3.0.0",

@@ -53,3 +53,3 @@ "got": "^11.0.1",

},
"gitHead": "4b4b064004b7526aabac42c6fd7f750ab09cde42"
"gitHead": "c4c8f9543981958379444b90a718d5232e349bf6"
}
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