Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-it

Package Overview
Dependencies
Maintainers
49
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-it - npm Package Compare versions

Comparing version 8.4.24-canary.0 to 8.4.24-canary.1

dist/_chunks-cjs/_commonjsHelpers.cjs

5

dist/index.browser.js

@@ -1,2 +0,2 @@

import { p as processOptions, v as validateOptions } from "./_chunks-es/defaultOptionsValidator.js";
import { p as processOptions, v as validateOptions, g as getDefaultExportFromCjs } from "./_chunks-es/_commonjsHelpers.js";
const middlewareReducer = (middleware) => function(hook, defaultValue, ...args) {

@@ -94,5 +94,2 @@ const bailEarly = hook === "onError";

}
function getDefaultExportFromCjs(x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
}
var trim = function(string) {

@@ -99,0 +96,0 @@ return string.replace(/^\s+|\s+$/g, "");

4

dist/index.react-server.js
import { c as createRequester } from "./_chunks-es/createRequester.js";
function getDefaultExportFromCjs(x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
}
import { g as getDefaultExportFromCjs } from "./_chunks-es/_commonjsHelpers.js";
var trim = function(string) {

@@ -6,0 +4,0 @@ return string.replace(/^\s+|\s+$/g, "");

@@ -1,3 +0,3 @@

import debugIt from "debug";
import { p, v } from "./_chunks-es/defaultOptionsValidator.js";
import { g as getDefaultExportFromCjs } from "./_chunks-es/_commonjsHelpers.js";
import { p, v } from "./_chunks-es/_commonjsHelpers.js";
function agent(opts) {

@@ -18,2 +18,301 @@ return {};

}
var browser = { exports: {} }, ms, hasRequiredMs;
function requireMs() {
if (hasRequiredMs)
return ms;
hasRequiredMs = 1;
var s = 1e3, m = s * 60, h = m * 60, d = h * 24, w = d * 7, y = d * 365.25;
ms = function(val, options) {
options = options || {};
var type = typeof val;
if (type === "string" && val.length > 0)
return parse(val);
if (type === "number" && isFinite(val))
return options.long ? fmtLong(val) : fmtShort(val);
throw new Error(
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
);
};
function parse(str) {
if (str = String(str), !(str.length > 100)) {
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
str
);
if (match) {
var n = parseFloat(match[1]), type = (match[2] || "ms").toLowerCase();
switch (type) {
case "years":
case "year":
case "yrs":
case "yr":
case "y":
return n * y;
case "weeks":
case "week":
case "w":
return n * w;
case "days":
case "day":
case "d":
return n * d;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
return n * h;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
return n * m;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
return n * s;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
return n;
default:
return;
}
}
}
}
function fmtShort(ms2) {
var msAbs = Math.abs(ms2);
return msAbs >= d ? Math.round(ms2 / d) + "d" : msAbs >= h ? Math.round(ms2 / h) + "h" : msAbs >= m ? Math.round(ms2 / m) + "m" : msAbs >= s ? Math.round(ms2 / s) + "s" : ms2 + "ms";
}
function fmtLong(ms2) {
var msAbs = Math.abs(ms2);
return msAbs >= d ? plural(ms2, msAbs, d, "day") : msAbs >= h ? plural(ms2, msAbs, h, "hour") : msAbs >= m ? plural(ms2, msAbs, m, "minute") : msAbs >= s ? plural(ms2, msAbs, s, "second") : ms2 + " ms";
}
function plural(ms2, msAbs, n, name) {
var isPlural = msAbs >= n * 1.5;
return Math.round(ms2 / n) + " " + name + (isPlural ? "s" : "");
}
return ms;
}
function setup(env) {
createDebug.debug = createDebug, createDebug.default = createDebug, createDebug.coerce = coerce, createDebug.disable = disable, createDebug.enable = enable, createDebug.enabled = enabled, createDebug.humanize = requireMs(), createDebug.destroy = destroy, Object.keys(env).forEach((key) => {
createDebug[key] = env[key];
}), createDebug.names = [], createDebug.skips = [], createDebug.formatters = {};
function selectColor(namespace) {
let hash = 0;
for (let i = 0; i < namespace.length; i++)
hash = (hash << 5) - hash + namespace.charCodeAt(i), hash |= 0;
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
}
createDebug.selectColor = selectColor;
function createDebug(namespace) {
let prevTime, enableOverride = null, namespacesCache, enabledCache;
function debug2(...args) {
if (!debug2.enabled)
return;
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms2 = curr - (prevTime || curr);
self2.diff = ms2, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), typeof args[0] != "string" && args.unshift("%O");
let index = 0;
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
if (match === "%%")
return "%";
index++;
const formatter = createDebug.formatters[format];
if (typeof formatter == "function") {
const val = args[index];
match = formatter.call(self2, val), args.splice(index, 1), index--;
}
return match;
}), createDebug.formatArgs.call(self2, args), (self2.log || createDebug.log).apply(self2, args);
}
return debug2.namespace = namespace, debug2.useColors = createDebug.useColors(), debug2.color = createDebug.selectColor(namespace), debug2.extend = extend, debug2.destroy = createDebug.destroy, Object.defineProperty(debug2, "enabled", {
enumerable: !0,
configurable: !1,
get: () => enableOverride !== null ? enableOverride : (namespacesCache !== createDebug.namespaces && (namespacesCache = createDebug.namespaces, enabledCache = createDebug.enabled(namespace)), enabledCache),
set: (v2) => {
enableOverride = v2;
}
}), typeof createDebug.init == "function" && createDebug.init(debug2), debug2;
}
function extend(namespace, delimiter) {
const newDebug = createDebug(this.namespace + (typeof delimiter > "u" ? ":" : delimiter) + namespace);
return newDebug.log = this.log, newDebug;
}
function enable(namespaces) {
createDebug.save(namespaces), createDebug.namespaces = namespaces, createDebug.names = [], createDebug.skips = [];
let i;
const split = (typeof namespaces == "string" ? namespaces : "").split(/[\s,]+/), len = split.length;
for (i = 0; i < len; i++)
split[i] && (namespaces = split[i].replace(/\*/g, ".*?"), namespaces[0] === "-" ? createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$")) : createDebug.names.push(new RegExp("^" + namespaces + "$")));
}
function disable() {
const namespaces = [
...createDebug.names.map(toNamespace),
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
].join(",");
return createDebug.enable(""), namespaces;
}
function enabled(name) {
if (name[name.length - 1] === "*")
return !0;
let i, len;
for (i = 0, len = createDebug.skips.length; i < len; i++)
if (createDebug.skips[i].test(name))
return !1;
for (i = 0, len = createDebug.names.length; i < len; i++)
if (createDebug.names[i].test(name))
return !0;
return !1;
}
function toNamespace(regexp) {
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
}
function coerce(val) {
return val instanceof Error ? val.stack || val.message : val;
}
function destroy() {
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
}
return createDebug.enable(createDebug.load()), createDebug;
}
var common = setup;
(function(module, exports) {
exports.formatArgs = formatArgs, exports.save = save, exports.load = load, exports.useColors = useColors, exports.storage = localstorage(), exports.destroy = /* @__PURE__ */ (() => {
let warned = !1;
return () => {
warned || (warned = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
};
})(), exports.colors = [
"#0000CC",
"#0000FF",
"#0033CC",
"#0033FF",
"#0066CC",
"#0066FF",
"#0099CC",
"#0099FF",
"#00CC00",
"#00CC33",
"#00CC66",
"#00CC99",
"#00CCCC",
"#00CCFF",
"#3300CC",
"#3300FF",
"#3333CC",
"#3333FF",
"#3366CC",
"#3366FF",
"#3399CC",
"#3399FF",
"#33CC00",
"#33CC33",
"#33CC66",
"#33CC99",
"#33CCCC",
"#33CCFF",
"#6600CC",
"#6600FF",
"#6633CC",
"#6633FF",
"#66CC00",
"#66CC33",
"#9900CC",
"#9900FF",
"#9933CC",
"#9933FF",
"#99CC00",
"#99CC33",
"#CC0000",
"#CC0033",
"#CC0066",
"#CC0099",
"#CC00CC",
"#CC00FF",
"#CC3300",
"#CC3333",
"#CC3366",
"#CC3399",
"#CC33CC",
"#CC33FF",
"#CC6600",
"#CC6633",
"#CC9900",
"#CC9933",
"#CCCC00",
"#CCCC33",
"#FF0000",
"#FF0033",
"#FF0066",
"#FF0099",
"#FF00CC",
"#FF00FF",
"#FF3300",
"#FF3333",
"#FF3366",
"#FF3399",
"#FF33CC",
"#FF33FF",
"#FF6600",
"#FF6633",
"#FF9900",
"#FF9933",
"#FFCC00",
"#FFCC33"
];
function useColors() {
return typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs) ? !0 : typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/) ? !1 : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
function formatArgs(args) {
if (args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff), !this.useColors)
return;
const c = "color: " + this.color;
args.splice(1, 0, c, "color: inherit");
let index = 0, lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, (match) => {
match !== "%%" && (index++, match === "%c" && (lastC = index));
}), args.splice(lastC, 0, c);
}
exports.log = console.debug || console.log || (() => {
});
function save(namespaces) {
try {
namespaces ? exports.storage.setItem("debug", namespaces) : exports.storage.removeItem("debug");
} catch {
}
}
function load() {
let r;
try {
r = exports.storage.getItem("debug");
} catch {
}
return !r && typeof process < "u" && "env" in process && (r = process.env.DEBUG), r;
}
function localstorage() {
try {
return localStorage;
} catch {
}
}
module.exports = common(exports);
const { formatters } = module.exports;
formatters.j = function(v2) {
try {
return JSON.stringify(v2);
} catch (error) {
return "[UnexpectedJSONParseError]: " + error.message;
}
};
})(browser, browser.exports);
var browserExports = browser.exports, debugIt = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
const SENSITIVE_HEADERS = ["cookie", "authorization"], hasOwn = Object.prototype.hasOwnProperty, redactKeys = (source, redacted) => {

@@ -343,6 +642,6 @@ const target = {};

return function(config = {}) {
const ms = config.ms || 1e3, maxFree = config.maxFree || 256;
const ms2 = config.ms || 1e3, maxFree = config.maxFree || 256;
return agent2({
keepAlive: !0,
keepAliveMsecs: ms,
keepAliveMsecs: ms2,
maxFreeSockets: maxFree

@@ -349,0 +648,0 @@ });

import { Agent } from "http";
import { Agent as Agent$1 } from "https";
import debugIt from "debug";
import { g as getDefaultExportFromCjs } from "./_chunks-es/_commonjsHelpers.js";
import require$$0 from "tty";
import require$$1 from "util";
import { p, v } from "./_chunks-es/defaultOptionsValidator.js";

@@ -33,2 +35,470 @@ import progressStream from "progress-stream";

}
var src = { exports: {} }, browser$1 = { exports: {} }, ms, hasRequiredMs;
function requireMs() {
if (hasRequiredMs)
return ms;
hasRequiredMs = 1;
var s = 1e3, m = s * 60, h = m * 60, d = h * 24, w = d * 7, y = d * 365.25;
ms = function(val, options) {
options = options || {};
var type = typeof val;
if (type === "string" && val.length > 0)
return parse(val);
if (type === "number" && isFinite(val))
return options.long ? fmtLong(val) : fmtShort(val);
throw new Error(
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
);
};
function parse(str) {
if (str = String(str), !(str.length > 100)) {
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
str
);
if (match) {
var n = parseFloat(match[1]), type = (match[2] || "ms").toLowerCase();
switch (type) {
case "years":
case "year":
case "yrs":
case "yr":
case "y":
return n * y;
case "weeks":
case "week":
case "w":
return n * w;
case "days":
case "day":
case "d":
return n * d;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
return n * h;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
return n * m;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
return n * s;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
return n;
default:
return;
}
}
}
}
function fmtShort(ms2) {
var msAbs = Math.abs(ms2);
return msAbs >= d ? Math.round(ms2 / d) + "d" : msAbs >= h ? Math.round(ms2 / h) + "h" : msAbs >= m ? Math.round(ms2 / m) + "m" : msAbs >= s ? Math.round(ms2 / s) + "s" : ms2 + "ms";
}
function fmtLong(ms2) {
var msAbs = Math.abs(ms2);
return msAbs >= d ? plural(ms2, msAbs, d, "day") : msAbs >= h ? plural(ms2, msAbs, h, "hour") : msAbs >= m ? plural(ms2, msAbs, m, "minute") : msAbs >= s ? plural(ms2, msAbs, s, "second") : ms2 + " ms";
}
function plural(ms2, msAbs, n, name) {
var isPlural = msAbs >= n * 1.5;
return Math.round(ms2 / n) + " " + name + (isPlural ? "s" : "");
}
return ms;
}
var common, hasRequiredCommon;
function requireCommon() {
if (hasRequiredCommon)
return common;
hasRequiredCommon = 1;
function setup(env) {
createDebug.debug = createDebug, createDebug.default = createDebug, createDebug.coerce = coerce, createDebug.disable = disable, createDebug.enable = enable, createDebug.enabled = enabled, createDebug.humanize = requireMs(), createDebug.destroy = destroy, Object.keys(env).forEach((key) => {
createDebug[key] = env[key];
}), createDebug.names = [], createDebug.skips = [], createDebug.formatters = {};
function selectColor(namespace) {
let hash = 0;
for (let i = 0; i < namespace.length; i++)
hash = (hash << 5) - hash + namespace.charCodeAt(i), hash |= 0;
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
}
createDebug.selectColor = selectColor;
function createDebug(namespace) {
let prevTime, enableOverride = null, namespacesCache, enabledCache;
function debug2(...args) {
if (!debug2.enabled)
return;
const self2 = debug2, curr = Number(/* @__PURE__ */ new Date()), ms2 = curr - (prevTime || curr);
self2.diff = ms2, self2.prev = prevTime, self2.curr = curr, prevTime = curr, args[0] = createDebug.coerce(args[0]), typeof args[0] != "string" && args.unshift("%O");
let index = 0;
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
if (match === "%%")
return "%";
index++;
const formatter = createDebug.formatters[format];
if (typeof formatter == "function") {
const val = args[index];
match = formatter.call(self2, val), args.splice(index, 1), index--;
}
return match;
}), createDebug.formatArgs.call(self2, args), (self2.log || createDebug.log).apply(self2, args);
}
return debug2.namespace = namespace, debug2.useColors = createDebug.useColors(), debug2.color = createDebug.selectColor(namespace), debug2.extend = extend, debug2.destroy = createDebug.destroy, Object.defineProperty(debug2, "enabled", {
enumerable: !0,
configurable: !1,
get: () => enableOverride !== null ? enableOverride : (namespacesCache !== createDebug.namespaces && (namespacesCache = createDebug.namespaces, enabledCache = createDebug.enabled(namespace)), enabledCache),
set: (v2) => {
enableOverride = v2;
}
}), typeof createDebug.init == "function" && createDebug.init(debug2), debug2;
}
function extend(namespace, delimiter) {
const newDebug = createDebug(this.namespace + (typeof delimiter > "u" ? ":" : delimiter) + namespace);
return newDebug.log = this.log, newDebug;
}
function enable(namespaces) {
createDebug.save(namespaces), createDebug.namespaces = namespaces, createDebug.names = [], createDebug.skips = [];
let i;
const split = (typeof namespaces == "string" ? namespaces : "").split(/[\s,]+/), len = split.length;
for (i = 0; i < len; i++)
split[i] && (namespaces = split[i].replace(/\*/g, ".*?"), namespaces[0] === "-" ? createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$")) : createDebug.names.push(new RegExp("^" + namespaces + "$")));
}
function disable() {
const namespaces = [
...createDebug.names.map(toNamespace),
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
].join(",");
return createDebug.enable(""), namespaces;
}
function enabled(name) {
if (name[name.length - 1] === "*")
return !0;
let i, len;
for (i = 0, len = createDebug.skips.length; i < len; i++)
if (createDebug.skips[i].test(name))
return !1;
for (i = 0, len = createDebug.names.length; i < len; i++)
if (createDebug.names[i].test(name))
return !0;
return !1;
}
function toNamespace(regexp) {
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
}
function coerce(val) {
return val instanceof Error ? val.stack || val.message : val;
}
function destroy() {
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
}
return createDebug.enable(createDebug.load()), createDebug;
}
return common = setup, common;
}
var hasRequiredBrowser$1;
function requireBrowser$1() {
return hasRequiredBrowser$1 || (hasRequiredBrowser$1 = 1, function(module, exports) {
exports.formatArgs = formatArgs, exports.save = save, exports.load = load, exports.useColors = useColors, exports.storage = localstorage(), exports.destroy = /* @__PURE__ */ (() => {
let warned = !1;
return () => {
warned || (warned = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
};
})(), exports.colors = [
"#0000CC",
"#0000FF",
"#0033CC",
"#0033FF",
"#0066CC",
"#0066FF",
"#0099CC",
"#0099FF",
"#00CC00",
"#00CC33",
"#00CC66",
"#00CC99",
"#00CCCC",
"#00CCFF",
"#3300CC",
"#3300FF",
"#3333CC",
"#3333FF",
"#3366CC",
"#3366FF",
"#3399CC",
"#3399FF",
"#33CC00",
"#33CC33",
"#33CC66",
"#33CC99",
"#33CCCC",
"#33CCFF",
"#6600CC",
"#6600FF",
"#6633CC",
"#6633FF",
"#66CC00",
"#66CC33",
"#9900CC",
"#9900FF",
"#9933CC",
"#9933FF",
"#99CC00",
"#99CC33",
"#CC0000",
"#CC0033",
"#CC0066",
"#CC0099",
"#CC00CC",
"#CC00FF",
"#CC3300",
"#CC3333",
"#CC3366",
"#CC3399",
"#CC33CC",
"#CC33FF",
"#CC6600",
"#CC6633",
"#CC9900",
"#CC9933",
"#CCCC00",
"#CCCC33",
"#FF0000",
"#FF0033",
"#FF0066",
"#FF0099",
"#FF00CC",
"#FF00FF",
"#FF3300",
"#FF3333",
"#FF3366",
"#FF3399",
"#FF33CC",
"#FF33FF",
"#FF6600",
"#FF6633",
"#FF9900",
"#FF9933",
"#FFCC00",
"#FFCC33"
];
function useColors() {
return typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs) ? !0 : typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/) ? !1 : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
function formatArgs(args) {
if (args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff), !this.useColors)
return;
const c = "color: " + this.color;
args.splice(1, 0, c, "color: inherit");
let index = 0, lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, (match) => {
match !== "%%" && (index++, match === "%c" && (lastC = index));
}), args.splice(lastC, 0, c);
}
exports.log = console.debug || console.log || (() => {
});
function save(namespaces) {
try {
namespaces ? exports.storage.setItem("debug", namespaces) : exports.storage.removeItem("debug");
} catch {
}
}
function load() {
let r;
try {
r = exports.storage.getItem("debug");
} catch {
}
return !r && typeof process < "u" && "env" in process && (r = process.env.DEBUG), r;
}
function localstorage() {
try {
return localStorage;
} catch {
}
}
module.exports = requireCommon()(exports);
const { formatters } = module.exports;
formatters.j = function(v2) {
try {
return JSON.stringify(v2);
} catch (error) {
return "[UnexpectedJSONParseError]: " + error.message;
}
};
}(browser$1, browser$1.exports)), browser$1.exports;
}
var node = { exports: {} }, browser, hasRequiredBrowser;
function requireBrowser() {
if (hasRequiredBrowser)
return browser;
hasRequiredBrowser = 1;
function getChromeVersion() {
const matches = /(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);
if (matches)
return Number.parseInt(matches.groups.chromeVersion, 10);
}
const colorSupport = getChromeVersion() >= 69 ? {
level: 1,
hasBasic: !0,
has256: !1,
has16m: !1
} : !1;
return browser = {
stdout: colorSupport,
stderr: colorSupport
}, browser;
}
var hasRequiredNode;
function requireNode() {
return hasRequiredNode || (hasRequiredNode = 1, function(module, exports) {
const tty = require$$0, util = require$$1;
exports.init = init, exports.log = log, exports.formatArgs = formatArgs, exports.save = save, exports.load = load, exports.useColors = useColors, exports.destroy = util.deprecate(
() => {
},
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
), exports.colors = [6, 2, 3, 4, 5, 1];
try {
const supportsColor = requireBrowser();
supportsColor && (supportsColor.stderr || supportsColor).level >= 2 && (exports.colors = [
20,
21,
26,
27,
32,
33,
38,
39,
40,
41,
42,
43,
44,
45,
56,
57,
62,
63,
68,
69,
74,
75,
76,
77,
78,
79,
80,
81,
92,
93,
98,
99,
112,
113,
128,
129,
134,
135,
148,
149,
160,
161,
162,
163,
164,
165,
166,
167,
168,
169,
170,
171,
172,
173,
178,
179,
184,
185,
196,
197,
198,
199,
200,
201,
202,
203,
204,
205,
206,
207,
208,
209,
214,
215,
220,
221
]);
} catch {
}
exports.inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
let val = process.env[key];
return /^(yes|on|true|enabled)$/i.test(val) ? val = !0 : /^(no|off|false|disabled)$/i.test(val) ? val = !1 : val === "null" ? val = null : val = Number(val), obj[prop] = val, obj;
}, {});
function useColors() {
return "colors" in exports.inspectOpts ? !!exports.inspectOpts.colors : tty.isatty(process.stderr.fd);
}
function formatArgs(args) {
const { namespace: name, useColors: useColors2 } = this;
if (useColors2) {
const c = this.color, colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c), prefix = ` ${colorCode};1m${name} \x1B[0m`;
args[0] = prefix + args[0].split(`
`).join(`
` + prefix), args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
} else
args[0] = getDate() + name + " " + args[0];
}
function getDate() {
return exports.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
}
function log(...args) {
return process.stderr.write(util.format(...args) + `
`);
}
function save(namespaces) {
namespaces ? process.env.DEBUG = namespaces : delete process.env.DEBUG;
}
function load() {
return process.env.DEBUG;
}
function init(debug2) {
debug2.inspectOpts = {};
const keys = Object.keys(exports.inspectOpts);
for (let i = 0; i < keys.length; i++)
debug2.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
}
module.exports = requireCommon()(exports);
const { formatters } = module.exports;
formatters.o = function(v2) {
return this.inspectOpts.colors = this.useColors, util.inspect(v2, this.inspectOpts).split(`
`).map((str) => str.trim()).join(" ");
}, formatters.O = function(v2) {
return this.inspectOpts.colors = this.useColors, util.inspect(v2, this.inspectOpts);
};
}(node, node.exports)), node.exports;
}
typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? src.exports = requireBrowser$1() : src.exports = requireNode();
var srcExports = src.exports, debugIt = /* @__PURE__ */ getDefaultExportFromCjs(srcExports);
const SENSITIVE_HEADERS = ["cookie", "authorization"], hasOwn = Object.prototype.hasOwnProperty, redactKeys = (source, redacted) => {

@@ -362,6 +832,6 @@ const target = {};

return function(config = {}) {
const ms = config.ms || 1e3, maxFree = config.maxFree || 256;
const ms2 = config.ms || 1e3, maxFree = config.maxFree || 256;
return agent2({
keepAlive: !0,
keepAliveMsecs: ms,
keepAliveMsecs: ms2,
maxFreeSockets: maxFree

@@ -368,0 +838,0 @@ });

{
"name": "get-it",
"version": "8.4.24-canary.0",
"version": "8.4.24-canary.1",
"description": "Generic HTTP request library for node, browsers and workers",

@@ -98,3 +98,2 @@ "keywords": [

"dependencies": {
"debug": "^4.3.4",
"decompress-response": "^7.0.0",

@@ -121,2 +120,3 @@ "follow-redirects": "^1.15.6",

"@vitest/coverage-v8": "^1.5.0",
"debug": "4.3.4",
"eslint": "^8.57.0",

@@ -123,0 +123,0 @@ "eslint-config-prettier": "^9.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc