chore: generate

This commit is contained in:
Fernandez Ludovic 2026-01-12 14:41:38 +01:00
parent 173a885238
commit 4e5cb9fb13
2 changed files with 132 additions and 90 deletions

111
dist/post_run/index.js generated vendored
View file

@ -27677,14 +27677,17 @@ function useColors() {
return false; return false;
} }
let m;
// Is webkit? http://stackoverflow.com/a/16459606/376773 // Is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
// eslint-disable-next-line no-return-assign
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
// Is firebug? http://stackoverflow.com/a/398120/376773 // Is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
// Is firefox >= v31? // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
// Double check webkit in userAgent just in case we are in a worker // Double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
} }
@ -27768,7 +27771,7 @@ function save(namespaces) {
function load() { function load() {
let r; let r;
try { try {
r = exports.storage.getItem('debug'); r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
} catch (error) { } catch (error) {
// Swallow // Swallow
// XXX (@Qix-) should we be logging these? // XXX (@Qix-) should we be logging these?
@ -27994,26 +27997,64 @@ function setup(env) {
createDebug.names = []; createDebug.names = [];
createDebug.skips = []; createDebug.skips = [];
let i; const split = (typeof namespaces === 'string' ? namespaces : '')
const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); .trim()
const len = split.length; .replace(/\s+/g, ',')
.split(',')
.filter(Boolean);
for (i = 0; i < len; i++) { for (const ns of split) {
if (!split[i]) { if (ns[0] === '-') {
// ignore empty strings createDebug.skips.push(ns.slice(1));
continue;
}
namespaces = split[i].replace(/\*/g, '.*?');
if (namespaces[0] === '-') {
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
} else { } else {
createDebug.names.push(new RegExp('^' + namespaces + '$')); createDebug.names.push(ns);
} }
} }
} }
/**
* Checks if the given string matches a namespace template, honoring
* asterisks as wildcards.
*
* @param {String} search
* @param {String} template
* @return {Boolean}
*/
function matchesTemplate(search, template) {
let searchIndex = 0;
let templateIndex = 0;
let starIndex = -1;
let matchIndex = 0;
while (searchIndex < search.length) {
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
// Match character or proceed with wildcard
if (template[templateIndex] === '*') {
starIndex = templateIndex;
matchIndex = searchIndex;
templateIndex++; // Skip the '*'
} else {
searchIndex++;
templateIndex++;
}
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
// Backtrack to the last '*' and try to match more characters
templateIndex = starIndex + 1;
matchIndex++;
searchIndex = matchIndex;
} else {
return false; // No match
}
}
// Handle trailing '*' in template
while (templateIndex < template.length && template[templateIndex] === '*') {
templateIndex++;
}
return templateIndex === template.length;
}
/** /**
* Disable debug output. * Disable debug output.
* *
@ -28022,8 +28063,8 @@ function setup(env) {
*/ */
function disable() { function disable() {
const namespaces = [ const namespaces = [
...createDebug.names.map(toNamespace), ...createDebug.names,
...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) ...createDebug.skips.map(namespace => '-' + namespace)
].join(','); ].join(',');
createDebug.enable(''); createDebug.enable('');
return namespaces; return namespaces;
@ -28037,21 +28078,14 @@ function setup(env) {
* @api public * @api public
*/ */
function enabled(name) { function enabled(name) {
if (name[name.length - 1] === '*') { for (const skip of createDebug.skips) {
return true; if (matchesTemplate(name, skip)) {
}
let i;
let len;
for (i = 0, len = createDebug.skips.length; i < len; i++) {
if (createDebug.skips[i].test(name)) {
return false; return false;
} }
} }
for (i = 0, len = createDebug.names.length; i < len; i++) { for (const ns of createDebug.names) {
if (createDebug.names[i].test(name)) { if (matchesTemplate(name, ns)) {
return true; return true;
} }
} }
@ -28059,19 +28093,6 @@ function setup(env) {
return false; return false;
} }
/**
* Convert regexp to namespace
*
* @param {RegExp} regxep
* @return {String} namespace
* @api private
*/
function toNamespace(regexp) {
return regexp.toString()
.substring(2, regexp.toString().length - 2)
.replace(/\.\*\?$/, '*');
}
/** /**
* Coerce `val`. * Coerce `val`.
* *
@ -28313,11 +28334,11 @@ function getDate() {
} }
/** /**
* Invokes `util.format()` with the specified arguments and writes to stderr. * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
*/ */
function log(...args) { function log(...args) {
return process.stderr.write(util.format(...args) + '\n'); return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
} }
/** /**
@ -29867,7 +29888,7 @@ var y = d * 365.25;
* @api public * @api public
*/ */
module.exports = function(val, options) { module.exports = function (val, options) {
options = options || {}; options = options || {};
var type = typeof val; var type = typeof val;
if (type === 'string' && val.length > 0) { if (type === 'string' && val.length > 0) {

111
dist/run/index.js generated vendored
View file

@ -27677,14 +27677,17 @@ function useColors() {
return false; return false;
} }
let m;
// Is webkit? http://stackoverflow.com/a/16459606/376773 // Is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
// eslint-disable-next-line no-return-assign
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
// Is firebug? http://stackoverflow.com/a/398120/376773 // Is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
// Is firefox >= v31? // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
// Double check webkit in userAgent just in case we are in a worker // Double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
} }
@ -27768,7 +27771,7 @@ function save(namespaces) {
function load() { function load() {
let r; let r;
try { try {
r = exports.storage.getItem('debug'); r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
} catch (error) { } catch (error) {
// Swallow // Swallow
// XXX (@Qix-) should we be logging these? // XXX (@Qix-) should we be logging these?
@ -27994,26 +27997,64 @@ function setup(env) {
createDebug.names = []; createDebug.names = [];
createDebug.skips = []; createDebug.skips = [];
let i; const split = (typeof namespaces === 'string' ? namespaces : '')
const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); .trim()
const len = split.length; .replace(/\s+/g, ',')
.split(',')
.filter(Boolean);
for (i = 0; i < len; i++) { for (const ns of split) {
if (!split[i]) { if (ns[0] === '-') {
// ignore empty strings createDebug.skips.push(ns.slice(1));
continue;
}
namespaces = split[i].replace(/\*/g, '.*?');
if (namespaces[0] === '-') {
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
} else { } else {
createDebug.names.push(new RegExp('^' + namespaces + '$')); createDebug.names.push(ns);
} }
} }
} }
/**
* Checks if the given string matches a namespace template, honoring
* asterisks as wildcards.
*
* @param {String} search
* @param {String} template
* @return {Boolean}
*/
function matchesTemplate(search, template) {
let searchIndex = 0;
let templateIndex = 0;
let starIndex = -1;
let matchIndex = 0;
while (searchIndex < search.length) {
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
// Match character or proceed with wildcard
if (template[templateIndex] === '*') {
starIndex = templateIndex;
matchIndex = searchIndex;
templateIndex++; // Skip the '*'
} else {
searchIndex++;
templateIndex++;
}
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
// Backtrack to the last '*' and try to match more characters
templateIndex = starIndex + 1;
matchIndex++;
searchIndex = matchIndex;
} else {
return false; // No match
}
}
// Handle trailing '*' in template
while (templateIndex < template.length && template[templateIndex] === '*') {
templateIndex++;
}
return templateIndex === template.length;
}
/** /**
* Disable debug output. * Disable debug output.
* *
@ -28022,8 +28063,8 @@ function setup(env) {
*/ */
function disable() { function disable() {
const namespaces = [ const namespaces = [
...createDebug.names.map(toNamespace), ...createDebug.names,
...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) ...createDebug.skips.map(namespace => '-' + namespace)
].join(','); ].join(',');
createDebug.enable(''); createDebug.enable('');
return namespaces; return namespaces;
@ -28037,21 +28078,14 @@ function setup(env) {
* @api public * @api public
*/ */
function enabled(name) { function enabled(name) {
if (name[name.length - 1] === '*') { for (const skip of createDebug.skips) {
return true; if (matchesTemplate(name, skip)) {
}
let i;
let len;
for (i = 0, len = createDebug.skips.length; i < len; i++) {
if (createDebug.skips[i].test(name)) {
return false; return false;
} }
} }
for (i = 0, len = createDebug.names.length; i < len; i++) { for (const ns of createDebug.names) {
if (createDebug.names[i].test(name)) { if (matchesTemplate(name, ns)) {
return true; return true;
} }
} }
@ -28059,19 +28093,6 @@ function setup(env) {
return false; return false;
} }
/**
* Convert regexp to namespace
*
* @param {RegExp} regxep
* @return {String} namespace
* @api private
*/
function toNamespace(regexp) {
return regexp.toString()
.substring(2, regexp.toString().length - 2)
.replace(/\.\*\?$/, '*');
}
/** /**
* Coerce `val`. * Coerce `val`.
* *
@ -28313,11 +28334,11 @@ function getDate() {
} }
/** /**
* Invokes `util.format()` with the specified arguments and writes to stderr. * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
*/ */
function log(...args) { function log(...args) {
return process.stderr.write(util.format(...args) + '\n'); return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
} }
/** /**
@ -29867,7 +29888,7 @@ var y = d * 365.25;
* @api public * @api public
*/ */
module.exports = function(val, options) { module.exports = function (val, options) {
options = options || {}; options = options || {};
var type = typeof val; var type = typeof val;
if (type === 'string' && val.length > 0) { if (type === 'string' && val.length > 0) {