npm and error messages

This commit is contained in:
2018-10-27 03:51:47 -05:00
parent 692ab70565
commit 025a403027
29601 changed files with 2759363 additions and 14 deletions

45
node_modules/webpack/lib/util/SortableSet.js generated vendored Normal file
View File

@@ -0,0 +1,45 @@
"use strict";
module.exports = class SortableSet extends Set {
constructor(initialIterable, defaultSort) {
super(initialIterable);
this._sortFn = defaultSort;
this._lastActiveSortFn = null;
}
/**
* @param {any} value - value to add to set
* @returns {SortableSet} - returns itself
*/
add(value) {
this._lastActiveSortFn = null;
super.add(value);
return this;
}
/**
* @param {Function} sortFn - function to sort the set
* @returns {void}
*/
sortWith(sortFn) {
if(this.size === 0 || sortFn === this._lastActiveSortFn) {
// already sorted - nothing to do
return;
}
const sortedArray = Array.from(this).sort(sortFn);
super.clear();
for(let i = 0; i < sortedArray.length; i += 1) {
this.add(sortedArray[i]);
}
this._lastActiveSortFn = sortFn;
}
/**
* @returns {void}
*/
sort() {
this.sortWith(this._sortFn);
}
};