New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

split-file

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

split-file - npm Package Compare versions

Comparing version
2.1.0
to
2.1.1
+1
-0
.travis.yml

@@ -6,3 +6,4 @@ language: node_js

- "7"
- "10"
sudo: false
+4
-4
{
"name": "split-file",
"version": "2.1.0",
"version": "2.1.1",
"private": false,

@@ -28,8 +28,8 @@ "description": "Splitting and merging files with NodeJS",

"dependencies": {
"bluebird": "^3.4.7"
"bluebird": "^3.5.3"
},
"devDependencies": {
"jest": "^19.0.2",
"mocha": "^3.2.0"
"jest": "^24.1.0",
"mocha": "^6.0.2"
}
}

@@ -97,3 +97,3 @@ /*!

var parts = Math.ceil(totalSize / maxSize);
var splitSize = maxSize;
var splitSize = Math.round(maxSize);

@@ -105,5 +105,2 @@ // If size of the parts is 0 then you have more parts than bytes.

// Get last split size, this is different from the others because it uses scrap value.
var lastSplitSize = totalSize - (splitSize * parts);
// Capture the partinfo in here:

@@ -123,8 +120,7 @@ var partInfo = [];

};
if (i === parts) {
partInfo[i].end = (i * splitSize) + lastSplitSize;
}
}
// recalculate the size of the last chunk
partInfo[partInfo.length - 1].end = totalSize;
return self.__splitFile(file, partInfo);

@@ -131,0 +127,0 @@ });

Sorry, the diff of this file is not supported yet