Socket
Socket
Sign inDemoInstall

@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 17.0.3 to 18.0.0

13

CHANGELOG.md

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

# v18.0.0 (Tue Apr 21 2020)
#### 🐛 Bug Fix
- Testing with verbose logs ([@jdalrymple](https://github.com/jdalrymple))
- docs: Updating README badges ([@jdalrymple](https://github.com/jdalrymple))
#### Authors: 1
- Justin Dalrymple ([@jdalrymple](https://github.com/jdalrymple))
---
# v17.0.2 (Sun Apr 19 2020)

@@ -2,0 +15,0 @@

2

dist/index.es.js

@@ -15,2 +15,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";

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){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 s=o((function(e,t){var o=void 0===t?{}:t,i=o.body,u=o.query,s=o.sudo,c=o.method,l=a(e,{body:i,query:u,sudo:s,method:c});return"object"!=typeof i||i instanceof r||(l.json=n(i),delete l.body),l}),(function(e,r){return n=this,o=void 0,i=function(){var n,o,a,i,s;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,t(e,r)];case 1:return n=u.sent(),[3,3];case 2:throw(o=u.sent()).response&&(a=o.response.body,o.description=a.error||a.message),o;case 3:return i=n.statusCode,s=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:s,status:i}]}}))},new((a=void 0)||(a=Promise))((function(e,t){function r(e){try{s(i.next(e))}catch(e){t(e)}}function u(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){t.done?e(t.value):new a((function(e){e(t.value)})).then(r,u)}s((i=i.apply(n,o||[])).next())}));var n,o,a,i})),c={};Object.keys(e).forEach((function(t){c[t]=function(r){return new e[t](i({requester:s},r))}}));export default c;
***************************************************************************** */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;

@@ -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){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 c=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 n=this,o=void 0,u=function(){var n,o,a,u,c;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,r(e,t)];case 1:return n=i.sent(),[3,3];case 2:throw(o=i.sent()).response&&(a=o.response.body,o.description=a.error||a.message),o;case 3:return u=n.statusCode,c=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:c,status:u}]}}))},new((a=void 0)||(a=Promise))((function(e,t){function r(e){try{c(u.next(e))}catch(e){t(e)}}function i(e){try{c(u.throw(e))}catch(e){t(e)}}function c(t){t.done?e(t.value):new a((function(e){e(t.value)})).then(r,i)}c((u=u.apply(n,o||[])).next())}));var n,o,a,u})),s={};Object.keys(t).forEach((function(e){s[e]=function(r){return new t[e](u({requester:c},r))}})),module.exports=s;
"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;
{
"name": "@gitbeaker/node",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"version": "17.0.3",
"version": "18.0.0",
"author": {

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

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

@@ -51,3 +51,3 @@ "got": "^10.7.0",

},
"gitHead": "4be71d2d50c26d94fcb1f7505a751b1a2365f15b"
"gitHead": "1687dc466f1635b828f66d049a76a74d9fcb32bd"
}

@@ -23,15 +23,12 @@ <div align="center">

<img src="https://flat.badgen.net/dependabot/jdalrymple/gitbeaker?icon=dependabot" alt="Dependabot Badge" />
<a href="https://github.com/semantic-release/semantic-release">
<img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="Semantic Release">
<a href="https://github.com/intuit/auto">
<img src="https://img.shields.io/badge/release-auto.svg?colorA=888888&colorB=9B065A&label=auto" alt="Auto">
</a>
<a href="http://commitizen.github.io/cz-cli/">
<img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen">
<img src="https://img.shields.io/badge/code%20style-prettier-ff69b4.svg" alt="Prettier">
<a href="LICENSE.md">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Licence: MIT">
</a>
<img src="https://img.shields.io/badge/code%20style-prettier-ff69b4.svg" alt="Prettier">
<a href="https://packagephobia.now.sh/result?p=@gitbeaker/node">
<img src="https://packagephobia.now.sh/badge?p=@gitbeaker/node" alt="Install Size: Node">
</a>
<a href="LICENSE.md">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Licence: MIT">
</a>
</p>

@@ -38,0 +35,0 @@

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