split-file
Advanced tools
+1
-0
@@ -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" | ||
| } | ||
| } |
+4
-8
@@ -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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
12769
-1.18%6
-14.29%256
-1.16%Updated