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

@openveo/api

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openveo/api - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 3.0.3 / 2016-09-26
- Debug tar extract on large files by changing dependency
# 3.0.2 / 2016-09-09

@@ -2,0 +6,0 @@

19

lib/fileSystem.js

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

var path = require('path');
var tar = require('tar');
var tar = require('tar-fs');

@@ -217,2 +217,3 @@ /**

var streamError;
var extractDone = false;

@@ -229,9 +230,7 @@ callback = callback || function(error) {

// Prepare the extractor with destination path
var extractor = tar.Extract(
{
path: path.normalize(destinationPath)
}
);
var extractor = tar.extract(path.normalize(destinationPath));
var onError = function(error) {
process.logger.error(error);
process.logger.debug('Extract error');
if (extractTimeout)

@@ -245,3 +244,5 @@ clearTimeout(extractTimeout);

// Handle extraction end
extractor.on('end', function() {
extractor.on('finish', function() {
extractDone = true;
process.logger.debug('extractor end');
if (extractTimeout)

@@ -261,6 +262,8 @@ clearTimeout(extractTimeout);

tarFileReadableStream.on('close', function(chunk) {
process.logger.debug('stream closed');
// In case of a broken archive, the readable stream close event is dispatched but not the close event of the
// writable stream, wait for 10 seconds and dispatch an error if writable stream is still not closed
extractTimeout = setTimeout(onError, 10000, new Error('Unexpected end of archive'));
if (!extractDone)
extractTimeout = setTimeout(onError, 30000, new Error('Unexpected end of archive'));

@@ -267,0 +270,0 @@ });

{
"name": "@openveo/api",
"version": "3.0.2",
"version": "3.0.3",
"description": "API for OpenVeo plugins",

@@ -22,3 +22,3 @@ "keywords": [

"dependencies": {
"tar": "2.2.1"
"tar-fs": "1.13.2"
},

@@ -25,0 +25,0 @@ "devDependencies": {

@@ -19,3 +19,3 @@ # OpenVeo API

Documentation is available on [Github pages](http://veo-labs.github.io/openveo-api/3.0.2).
Documentation is available on [Github pages](http://veo-labs.github.io/openveo-api/3.0.3).

@@ -22,0 +22,0 @@ # Contributors

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