/
var
/
www
/
cobraambalaj
/
node_modules
/
webpack
/
lib
/
util
/
/var/www/cobraambalaj/node_modules/webpack/lib/util
mkdir
upload
Name
Size
Mode
Actions
ArrayHelpers.js
280
0644
edit
dl
rm
ArrayQueue.js
2092
0644
edit
dl
rm
AsyncQueue.js
8272
0644
edit
dl
rm
binarySearchBounds.js
1907
0644
edit
dl
rm
cleverMerge.js
16529
0644
edit
dl
rm
comparators.js
12280
0644
edit
dl
rm
compileBooleanMatcher.js
5822
0644
edit
dl
rm
createHash.js
4094
0644
edit
dl
rm
DataURI.js
702
0644
edit
dl
rm
deprecation.js
6327
0644
edit
dl
rm
deterministicGrouping.js
11413
0644
edit
dl
rm
extractUrlAndGlobal.js
416
0644
edit
dl
rm
findGraphRoots.js
6111
0644
edit
dl
rm
fs.js
9505
0644
edit
dl
rm
Hash.js
925
0644
edit
dl
rm
identifier.js
9248
0644
edit
dl
rm
internalSerializables.js
9703
0644
edit
dl
rm
IterableHelpers.js
962
0644
edit
dl
rm
LazyBucketSortedSet.js
5732
0644
edit
dl
rm
LazySet.js
4434
0644
edit
dl
rm
makeSerializable.js
660
0644
edit
dl
rm
MapHelpers.js
472
0644
edit
dl
rm
memoize.js
604
0644
edit
dl
rm
numberHash.js
1060
0644
edit
dl
rm
objectToMap.js
346
0644
edit
dl
rm
ParallelismFactorCalculator.js
1528
0644
edit
dl
rm
processAsyncTree.js
1468
0644
edit
dl
rm
propertyAccess.js
522
0644
edit
dl
rm
Queue.js
1048
0644
edit
dl
rm
registerExternalSerializer.js
7888
0644
edit
dl
rm
runtime.js
14613
0644
edit
dl
rm
Semaphore.js
1008
0644
edit
dl
rm
semver.js
15546
0644
edit
dl
rm
serialization.js
2502
0644
edit
dl
rm
SetHelpers.js
2316
0644
edit
dl
rm
smartGrouping.js
4598
0644
edit
dl
rm
SortableSet.js
3635
0644
edit
dl
rm
source.js
1759
0644
edit
dl
rm
StackedMap.js
3453
0644
edit
dl
rm
StackedSetMap.js
3453
0644
edit
dl
rm
StringXor.js
1062
0644
edit
dl
rm
TupleQueue.js
1317
0644
edit
dl
rm
TupleSet.js
2909
0644
edit
dl
rm
URLAbsoluteSpecifier.js
2553
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/node_modules/webpack/lib/util/SetHelpers.js
(2316B)
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** * intersect creates Set containing the intersection of elements between all sets * @template T * @param {Set<T>[]} sets an array of sets being checked for shared elements * @returns {Set<T>} returns a new Set containing the intersecting items */ const intersect = sets => { if (sets.length === 0) return new Set(); if (sets.length === 1) return new Set(sets[0]); let minSize = Infinity; let minIndex = -1; for (let i = 0; i < sets.length; i++) { const size = sets[i].size; if (size < minSize) { minIndex = i; minSize = size; } } const current = new Set(sets[minIndex]); for (let i = 0; i < sets.length; i++) { if (i === minIndex) continue; const set = sets[i]; for (const item of current) { if (!set.has(item)) { current.delete(item); } } } return current; }; /** * Checks if a set is the subset of another set * @template T * @param {Set<T>} bigSet a Set which contains the original elements to compare against * @param {Set<T>} smallSet the set whose elements might be contained inside of bigSet * @returns {boolean} returns true if smallSet contains all elements inside of the bigSet */ const isSubset = (bigSet, smallSet) => { if (bigSet.size < smallSet.size) return false; for (const item of smallSet) { if (!bigSet.has(item)) return false; } return true; }; /** * @template T * @param {Set<T>} set a set * @param {function(T): boolean} fn selector function * @returns {T | undefined} found item */ const find = (set, fn) => { for (const item of set) { if (fn(item)) return item; } }; /** * @template T * @param {Set<T>} set a set * @returns {T | undefined} first item */ const first = set => { const entry = set.values().next(); return entry.done ? undefined : entry.value; }; /** * @template T * @param {Set<T>} a first * @param {Set<T>} b second * @returns {Set<T>} combined set, may be identical to a or b */ const combine = (a, b) => { if (b.size === 0) return a; if (a.size === 0) return b; const set = new Set(a); for (const item of b) set.add(item); return set; }; exports.intersect = intersect; exports.isSubset = isSubset; exports.find = find; exports.first = first; exports.combine = combine;
Save
cmd:
run