Socket
Socket
Sign inDemoInstall

gitlab-fetch

Package Overview
Dependencies
17
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

CHANGELOG.md
# Changelog
## 1.0.1
* Fix `RepositoryApi#getFileContent`.
* Handle `text/plain` responses.
* Fix parsing of `Content-Length` header.
## 1.0.0

@@ -4,0 +9,0 @@ * Fix name of `ListProjectParams#order_by` parameter (was `#orderBy`)

5

lib/common/abstract-api.js

@@ -59,6 +59,7 @@ "use strict";

}
else if (response.size === 0) {
const contentSize = parseInt(response.headers.get('Content-Length'), 10) || 0;
if (contentSize === 0) {
return undefined;
}
else if (contentType === 'application/octet') {
else if (contentType === 'application/octet' || contentType === 'text/plain') {
return yield response.buffer();

@@ -65,0 +66,0 @@ }

2

package.json
{
"name": "gitlab-fetch",
"version": "1.0.0",
"version": "1.0.1",
"author": "Jay Anslow <jay@anslow.me.uk>",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc