New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

erebos-api-bzz-node

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erebos-api-bzz-node - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

8

lib/index.js

@@ -32,4 +32,5 @@ 'use strict';

const writeStreamTo = exports.writeStreamTo = (stream, filePath) => {
return new Promise((resolve, reject) => {
const writeStreamTo = exports.writeStreamTo = async (stream, filePath) => {
await (0, _fsExtra.ensureDir)(_path2.default.dirname(filePath));
await new Promise((resolve, reject) => {
stream.pipe((0, _fsExtra.createWriteStream)(filePath)).on('error', err => {

@@ -48,3 +49,3 @@ reject(err);

extract.on('entry', (header, stream, next) => {
if (header.type === 'file') {
if (header.type === 'file' && header.name.length > 0) {
const filePath = _path2.default.join(dirPath, header.name);

@@ -55,3 +56,2 @@ const fileWritten = writeStreamTo(stream, filePath).then(() => {

writeFiles.push(fileWritten);
stream.resume();
} else {

@@ -58,0 +58,0 @@ next();

{
"name": "erebos-api-bzz-node",
"version": "0.3.2",
"version": "0.3.3",
"description": "Bzz API for node",

@@ -5,0 +5,0 @@ "repository": "git@github.com:MainframeHQ/erebos.git",

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