flow like the river

This commit is contained in:
root 2025-11-07 00:06:12 +01:00
commit 013fe673f3
42435 changed files with 5764238 additions and 0 deletions

39
BACK_BACK/node_modules/@parcel/watcher/src/options.js generated vendored Executable file
View file

@ -0,0 +1,39 @@
function type(options) {
return Object.prototype.toString.call(options).slice(8, -1);
}
function encode(options) {
if (options && options.ignored) {
const ignoredType = type(options.ignored);
if (ignoredType !== 'Array') {
options.ignored = [options.ignored];
}
options.ignored.forEach((value, index) => {
const valueType = type(value);
if (valueType === 'RegExp') {
options.ignored[index] = value.source;
if (!options._regIndexs) {
options._regIndexs = [];
}
options._regIndexs.push(index);
}
});
}
return options;
}
function decode(options) {
if (options && options.ignored && options._regIndexs) {
for (let index of options._regIndexs) {
options.ignored[index] = new RegExp(options.ignored[index]);
}
delete options._regIndexs;
}
return options;
}
exports.encode = encode;
exports.decode = decode;