Update Node_modules

This commit is contained in:
2019-07-02 16:05:15 +02:00
parent 95a0ff3913
commit 9dab5e2dbc
3495 changed files with 39728 additions and 465154 deletions
+788 -788
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -4,9 +4,14 @@ const fs = require('fs');
const path = require('path');
const bitfield = require('sparse-bitfield');
/* eslint-disable-next-line security/detect-non-literal-fs-filename */
const memory = fs.readFileSync(path.resolve(__dirname, '../code-points.mem'));
let offset = 0;
/**
* Loads each code points sequence from buffer.
* @returns {bitfield}
*/
function read() {
const size = memory.readUInt32BE(offset);
offset += 4;
@@ -31,4 +36,4 @@ module.exports = {
prohibited_characters,
bidirectional_r_al,
bidirectional_l,
}
};
+13 -7
View File
@@ -1,15 +1,21 @@
'use strict'
'use strict';
/**
* Create an array of numbers.
* @param {number} from
* @param {number} to
* @returns {number[]}
*/
function range(from, to) {
// TODO: make this inlined.
const list = new Array(to - from + 1)
const list = new Array(to - from + 1);
for(let i = 0; i < list.length; ++i) {
list[i] = from + i
for (let i = 0; i < list.length; i += 1) {
list[i] = from + i;
}
return list
return list;
}
module.exports = {
range
}
range,
};