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

@microtica/code-repository

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microtica/code-repository - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

27

js/bitbucket.js

@@ -6,2 +6,4 @@ "use strict";

const through = require("through2");
const unzip = require("unzip-stream");
const archiver = require("archiver");
class Bitbucket {

@@ -99,15 +101,16 @@ constructor(credentials) {

const output = through();
// const archive = archiver('zip', {
// zlib: { level: 9 }
// });
// archive.pipe(output);
const archive = archiver('zip', {
zlib: { level: 9 }
});
archive.pipe(output);
request(`https://${this.credentials.username}:${this.credentials.password}@bitbucket.org/${repoName}/get/${version}.zip`).pipe(stream);
// stream.pipe(unzip.Parse())
// .on('entry', (entry: Buffer & { path: string }) => {
// const name = entry.path.substring(entry.path.indexOf('/') + 1);
// if (!name) return;
// archive.append(entry, { name: entry.path.substring(entry.path.indexOf('/') + 1) })
// });
// stream.on('finish', () => archive.finalize());
return stream;
stream.pipe(unzip.Parse())
.on('entry', (entry) => {
const name = entry.path.substring(entry.path.indexOf('/') + 1);
if (!name)
return;
archive.append(entry, { name: entry.path.substring(entry.path.indexOf('/') + 1) });
});
stream.on('finish', () => archive.finalize());
return output;
}

@@ -114,0 +117,0 @@ }

{
"name": "@microtica/code-repository",
"version": "0.1.18",
"version": "0.1.19",
"description": "Integration module with git repository providers",

@@ -5,0 +5,0 @@ "keywords": [

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