puvox-library 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library_standard.js +2 -3
- package/package.json +1 -1
package/library_standard.js
CHANGED
@@ -1127,12 +1127,11 @@ const puvox_library =
|
|
1127
1127
|
resolver = resolve;
|
1128
1128
|
rejector = reject;
|
1129
1129
|
});
|
1130
|
-
|
1131
|
-
const readStream = fs.createReadStream(filePath);
|
1130
|
+
const readStream = this.file.fs().createReadStream(filePath);
|
1132
1131
|
let linesAmount = 0;
|
1133
1132
|
readStream.on('data', async function(chunk) {
|
1134
1133
|
const ch = chunk + '';
|
1135
|
-
const curLenth = self.
|
1134
|
+
const curLenth = self.occurences_amount(ch, '\n');
|
1136
1135
|
linesAmount = linesAmount + curLenth;
|
1137
1136
|
});
|
1138
1137
|
readStream.on('end', async function() {
|