@gitbeaker/node
Advanced tools
Comparing version 17.0.1 to 17.0.2
@@ -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=(o=i.trys).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){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; |
@@ -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=(o=u.trys).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){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; |
{ | ||
"name": "@gitbeaker/node", | ||
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.", | ||
"version": "17.0.1", | ||
"version": "17.0.2", | ||
"author": { | ||
@@ -12,4 +12,4 @@ "name": "Justin Dalrymple" | ||
"dependencies": { | ||
"@gitbeaker/core": "^17.0.0", | ||
"@gitbeaker/requester-utils": "^17.0.0", | ||
"@gitbeaker/core": "^17.0.2", | ||
"@gitbeaker/requester-utils": "^17.0.2", | ||
"form-data": "^3.0.0", | ||
@@ -23,3 +23,3 @@ "got": "^10.7.0", | ||
"rollup-plugin-terser": "^5.3.0", | ||
"rollup-plugin-typescript2": "^0.26.0", | ||
"rollup-plugin-typescript2": "^0.27.0", | ||
"ts-node": "^8.8.1", | ||
@@ -51,3 +51,4 @@ "typescript": "^3.8.3" | ||
"build": "tsc && rollup -c" | ||
} | ||
}, | ||
"gitHead": "34d4ae9b3d273c65bb17855ad8a53a2c921f915e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11372
8