Socket
Socket
Sign inDemoInstall

gitlab-fetch

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab-fetch - npm Package Compare versions

Comparing version 0.2.2-dev.8981775 to 0.2.2-dev.8982224

2

lib/apis/commit.js

@@ -20,3 +20,3 @@ "use strict";

return this.fetch('POST', undefined, {}, {
body: Object.assign({}, params, { branch, commit_message: commitMessage, actions }),
body: Object.assign({}, params, { branch_name: branch, commit_message: commitMessage, actions }),
});

@@ -23,0 +23,0 @@ }

@@ -83,3 +83,3 @@ "use strict";

if (response.status < 200 || response.status >= 300) {
debug_1.network(response);
debug_1.network(' => %O', body);
throw new Error(`Unexpected HTTP status (${response.status}) from ${response.url}`);

@@ -131,6 +131,11 @@ }

debug_1.network('%s %s', method, url);
let requestBody = undefined;
if (body !== undefined) {
requestBody = JSON.stringify(body);
headers.set('Content-Type', 'application/json');
}
const response = yield node_fetch_1.default(url, {
method,
headers,
body: body !== undefined ? JSON.stringify(body) : undefined,
body: requestBody,
});

@@ -137,0 +142,0 @@ debug_1.network('=> %d', response.status);

{
"name": "gitlab-fetch",
"version": "0.2.2-dev.8981775",
"version": "0.2.2-dev.8982224",
"author": "Jay Anslow <jay@anslow.me.uk>",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

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