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

@gitbeaker/rest

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitbeaker/rest - npm Package Compare versions

Comparing version 38.3.0 to 38.4.0

12

dist/index.js

@@ -53,3 +53,3 @@ 'use strict';

}
return response.arrayBuffer();
return response.blob();
}

@@ -89,6 +89,11 @@ function delay(ms) {

}
function getConditionalMode(endpoint) {
if (endpoint.includes("repository/archive"))
return "same-origin";
return void 0;
}
async function defaultRequestHandler(endpoint, options) {
const retryCodes = [429, 502];
const maxRetries = 10;
const { prefixUrl, asStream, searchParams, ...opts } = options;
const { prefixUrl, asStream, searchParams, ...opts } = options || {};
let baseUrl;

@@ -99,4 +104,5 @@ if (prefixUrl)

url.search = searchParams || "";
const mode = getConditionalMode(endpoint);
for (let i = 0; i < maxRetries; i += 1) {
const response = await fetch(url, { ...opts, mode: "cors" });
const response = await fetch(url, { ...opts, mode });
if (response.ok)

@@ -103,0 +109,0 @@ return parseResponse(response, asStream);

{
"name": "@gitbeaker/rest",
"version": "38.3.0",
"version": "38.4.0",
"description": "Cross Platform implementation of the GitLab API",

@@ -59,4 +59,4 @@ "license": "MIT",

"dependencies": {
"@gitbeaker/core": "^38.3.0",
"@gitbeaker/requester-utils": "^38.3.0"
"@gitbeaker/core": "^38.4.0",
"@gitbeaker/requester-utils": "^38.4.0"
},

@@ -70,3 +70,3 @@ "devDependencies": {

},
"gitHead": "81fb16c89d0909431c828a219dae199458ea0b3f"
"gitHead": "83fb26bce5f4cc9c07ad75dda64f1e3e7fbf2e47"
}

@@ -403,2 +403,3 @@ <div align="center">

<td align="center" valign="top" width="3.84%"><a href="http://merorafael.info/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/3404989?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Rafael Mello"/></td>
<td align="center" valign="top" width="3.84%"><a href="https://github.com/tbazin"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9104039?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Théis Bazin"/></td>
</tr>

@@ -405,0 +406,0 @@ </p>

Sorry, the diff of this file is not supported yet

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