node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

42
server/node_modules/request-ip/lib/is.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
"use strict";
var regexes = {
ipv4: /^(?:(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,
ipv6: /^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i
};
function not(func) {
return function () {
return !func.apply(null, Array.prototype.slice.call(arguments));
};
}
function existy(value) {
return value != null;
}
function ip(value) {
return existy(value) && regexes.ipv4.test(value) || regexes.ipv6.test(value);
}
function object(value) {
return Object(value) === value;
}
function string(value) {
return Object.prototype.toString.call(value) === '[object String]';
}
var is = {
existy: existy,
ip: ip,
object: object,
string: string,
not: {
existy: not(existy),
ip: not(ip),
object: not(object),
string: not(string)
}
};
module.exports = is;