devbcn-mcp-server 0.0.0-202511200533 → 0.0.0-202511210348
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +5 -3
- package/dist/index.js +319 -150
- package/package.json +1 -1
package/bun.lock
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
"hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],
|
|
91
91
|
|
|
92
|
-
"http-errors": ["http-errors@2.0.
|
|
92
|
+
"http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],
|
|
93
93
|
|
|
94
94
|
"iconv-lite": ["iconv-lite@0.7.0", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ=="],
|
|
95
95
|
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
"mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
|
113
113
|
|
|
114
|
-
"mime-types": ["mime-types@3.0.
|
|
114
|
+
"mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
|
115
115
|
|
|
116
116
|
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
|
|
117
117
|
|
|
@@ -185,6 +185,8 @@
|
|
|
185
185
|
|
|
186
186
|
"body-parser/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
|
|
187
187
|
|
|
188
|
-
"http-errors
|
|
188
|
+
"raw-body/http-errors": ["http-errors@2.0.0", "", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="],
|
|
189
|
+
|
|
190
|
+
"raw-body/http-errors/statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="],
|
|
189
191
|
}
|
|
190
192
|
}
|
package/dist/index.js
CHANGED
|
@@ -354,7 +354,7 @@ var require_setprototypeof = __commonJS((exports, module) => {
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
|
|
357
|
-
// node_modules/
|
|
357
|
+
// node_modules/statuses/codes.json
|
|
358
358
|
var require_codes = __commonJS((exports, module) => {
|
|
359
359
|
module.exports = {
|
|
360
360
|
"100": "Continue",
|
|
@@ -423,7 +423,7 @@ var require_codes = __commonJS((exports, module) => {
|
|
|
423
423
|
};
|
|
424
424
|
});
|
|
425
425
|
|
|
426
|
-
// node_modules/
|
|
426
|
+
// node_modules/statuses/index.js
|
|
427
427
|
var require_statuses = __commonJS((exports, module) => {
|
|
428
428
|
/*!
|
|
429
429
|
* statuses
|
|
@@ -717,7 +717,7 @@ var require_http_errors = __commonJS((exports, module) => {
|
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
function toClassName(name) {
|
|
720
|
-
return name.
|
|
720
|
+
return name.slice(-5) === "Error" ? name : name + "Error";
|
|
721
721
|
}
|
|
722
722
|
});
|
|
723
723
|
|
|
@@ -1608,6 +1608,316 @@ var require_bytes = __commonJS((exports, module) => {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
});
|
|
1610
1610
|
|
|
1611
|
+
// node_modules/raw-body/node_modules/http-errors/node_modules/statuses/codes.json
|
|
1612
|
+
var require_codes2 = __commonJS((exports, module) => {
|
|
1613
|
+
module.exports = {
|
|
1614
|
+
"100": "Continue",
|
|
1615
|
+
"101": "Switching Protocols",
|
|
1616
|
+
"102": "Processing",
|
|
1617
|
+
"103": "Early Hints",
|
|
1618
|
+
"200": "OK",
|
|
1619
|
+
"201": "Created",
|
|
1620
|
+
"202": "Accepted",
|
|
1621
|
+
"203": "Non-Authoritative Information",
|
|
1622
|
+
"204": "No Content",
|
|
1623
|
+
"205": "Reset Content",
|
|
1624
|
+
"206": "Partial Content",
|
|
1625
|
+
"207": "Multi-Status",
|
|
1626
|
+
"208": "Already Reported",
|
|
1627
|
+
"226": "IM Used",
|
|
1628
|
+
"300": "Multiple Choices",
|
|
1629
|
+
"301": "Moved Permanently",
|
|
1630
|
+
"302": "Found",
|
|
1631
|
+
"303": "See Other",
|
|
1632
|
+
"304": "Not Modified",
|
|
1633
|
+
"305": "Use Proxy",
|
|
1634
|
+
"307": "Temporary Redirect",
|
|
1635
|
+
"308": "Permanent Redirect",
|
|
1636
|
+
"400": "Bad Request",
|
|
1637
|
+
"401": "Unauthorized",
|
|
1638
|
+
"402": "Payment Required",
|
|
1639
|
+
"403": "Forbidden",
|
|
1640
|
+
"404": "Not Found",
|
|
1641
|
+
"405": "Method Not Allowed",
|
|
1642
|
+
"406": "Not Acceptable",
|
|
1643
|
+
"407": "Proxy Authentication Required",
|
|
1644
|
+
"408": "Request Timeout",
|
|
1645
|
+
"409": "Conflict",
|
|
1646
|
+
"410": "Gone",
|
|
1647
|
+
"411": "Length Required",
|
|
1648
|
+
"412": "Precondition Failed",
|
|
1649
|
+
"413": "Payload Too Large",
|
|
1650
|
+
"414": "URI Too Long",
|
|
1651
|
+
"415": "Unsupported Media Type",
|
|
1652
|
+
"416": "Range Not Satisfiable",
|
|
1653
|
+
"417": "Expectation Failed",
|
|
1654
|
+
"418": "I'm a Teapot",
|
|
1655
|
+
"421": "Misdirected Request",
|
|
1656
|
+
"422": "Unprocessable Entity",
|
|
1657
|
+
"423": "Locked",
|
|
1658
|
+
"424": "Failed Dependency",
|
|
1659
|
+
"425": "Too Early",
|
|
1660
|
+
"426": "Upgrade Required",
|
|
1661
|
+
"428": "Precondition Required",
|
|
1662
|
+
"429": "Too Many Requests",
|
|
1663
|
+
"431": "Request Header Fields Too Large",
|
|
1664
|
+
"451": "Unavailable For Legal Reasons",
|
|
1665
|
+
"500": "Internal Server Error",
|
|
1666
|
+
"501": "Not Implemented",
|
|
1667
|
+
"502": "Bad Gateway",
|
|
1668
|
+
"503": "Service Unavailable",
|
|
1669
|
+
"504": "Gateway Timeout",
|
|
1670
|
+
"505": "HTTP Version Not Supported",
|
|
1671
|
+
"506": "Variant Also Negotiates",
|
|
1672
|
+
"507": "Insufficient Storage",
|
|
1673
|
+
"508": "Loop Detected",
|
|
1674
|
+
"509": "Bandwidth Limit Exceeded",
|
|
1675
|
+
"510": "Not Extended",
|
|
1676
|
+
"511": "Network Authentication Required"
|
|
1677
|
+
};
|
|
1678
|
+
});
|
|
1679
|
+
|
|
1680
|
+
// node_modules/raw-body/node_modules/http-errors/node_modules/statuses/index.js
|
|
1681
|
+
var require_statuses2 = __commonJS((exports, module) => {
|
|
1682
|
+
/*!
|
|
1683
|
+
* statuses
|
|
1684
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
1685
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
1686
|
+
* MIT Licensed
|
|
1687
|
+
*/
|
|
1688
|
+
var codes = require_codes2();
|
|
1689
|
+
module.exports = status;
|
|
1690
|
+
status.message = codes;
|
|
1691
|
+
status.code = createMessageToStatusCodeMap(codes);
|
|
1692
|
+
status.codes = createStatusCodeList(codes);
|
|
1693
|
+
status.redirect = {
|
|
1694
|
+
300: true,
|
|
1695
|
+
301: true,
|
|
1696
|
+
302: true,
|
|
1697
|
+
303: true,
|
|
1698
|
+
305: true,
|
|
1699
|
+
307: true,
|
|
1700
|
+
308: true
|
|
1701
|
+
};
|
|
1702
|
+
status.empty = {
|
|
1703
|
+
204: true,
|
|
1704
|
+
205: true,
|
|
1705
|
+
304: true
|
|
1706
|
+
};
|
|
1707
|
+
status.retry = {
|
|
1708
|
+
502: true,
|
|
1709
|
+
503: true,
|
|
1710
|
+
504: true
|
|
1711
|
+
};
|
|
1712
|
+
function createMessageToStatusCodeMap(codes2) {
|
|
1713
|
+
var map = {};
|
|
1714
|
+
Object.keys(codes2).forEach(function forEachCode(code) {
|
|
1715
|
+
var message = codes2[code];
|
|
1716
|
+
var status2 = Number(code);
|
|
1717
|
+
map[message.toLowerCase()] = status2;
|
|
1718
|
+
});
|
|
1719
|
+
return map;
|
|
1720
|
+
}
|
|
1721
|
+
function createStatusCodeList(codes2) {
|
|
1722
|
+
return Object.keys(codes2).map(function mapCode(code) {
|
|
1723
|
+
return Number(code);
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
function getStatusCode(message) {
|
|
1727
|
+
var msg = message.toLowerCase();
|
|
1728
|
+
if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
|
|
1729
|
+
throw new Error('invalid status message: "' + message + '"');
|
|
1730
|
+
}
|
|
1731
|
+
return status.code[msg];
|
|
1732
|
+
}
|
|
1733
|
+
function getStatusMessage(code) {
|
|
1734
|
+
if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
|
|
1735
|
+
throw new Error("invalid status code: " + code);
|
|
1736
|
+
}
|
|
1737
|
+
return status.message[code];
|
|
1738
|
+
}
|
|
1739
|
+
function status(code) {
|
|
1740
|
+
if (typeof code === "number") {
|
|
1741
|
+
return getStatusMessage(code);
|
|
1742
|
+
}
|
|
1743
|
+
if (typeof code !== "string") {
|
|
1744
|
+
throw new TypeError("code must be a number or string");
|
|
1745
|
+
}
|
|
1746
|
+
var n = parseInt(code, 10);
|
|
1747
|
+
if (!isNaN(n)) {
|
|
1748
|
+
return getStatusMessage(n);
|
|
1749
|
+
}
|
|
1750
|
+
return getStatusCode(code);
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
// node_modules/raw-body/node_modules/http-errors/index.js
|
|
1755
|
+
var require_http_errors2 = __commonJS((exports, module) => {
|
|
1756
|
+
/*!
|
|
1757
|
+
* http-errors
|
|
1758
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
1759
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
1760
|
+
* MIT Licensed
|
|
1761
|
+
*/
|
|
1762
|
+
var deprecate = require_depd()("http-errors");
|
|
1763
|
+
var setPrototypeOf = require_setprototypeof();
|
|
1764
|
+
var statuses = require_statuses2();
|
|
1765
|
+
var inherits = require_inherits();
|
|
1766
|
+
var toIdentifier = require_toidentifier();
|
|
1767
|
+
module.exports = createError;
|
|
1768
|
+
module.exports.HttpError = createHttpErrorConstructor();
|
|
1769
|
+
module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError);
|
|
1770
|
+
populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError);
|
|
1771
|
+
function codeClass(status) {
|
|
1772
|
+
return Number(String(status).charAt(0) + "00");
|
|
1773
|
+
}
|
|
1774
|
+
function createError() {
|
|
1775
|
+
var err;
|
|
1776
|
+
var msg;
|
|
1777
|
+
var status = 500;
|
|
1778
|
+
var props = {};
|
|
1779
|
+
for (var i = 0;i < arguments.length; i++) {
|
|
1780
|
+
var arg = arguments[i];
|
|
1781
|
+
var type = typeof arg;
|
|
1782
|
+
if (type === "object" && arg instanceof Error) {
|
|
1783
|
+
err = arg;
|
|
1784
|
+
status = err.status || err.statusCode || status;
|
|
1785
|
+
} else if (type === "number" && i === 0) {
|
|
1786
|
+
status = arg;
|
|
1787
|
+
} else if (type === "string") {
|
|
1788
|
+
msg = arg;
|
|
1789
|
+
} else if (type === "object") {
|
|
1790
|
+
props = arg;
|
|
1791
|
+
} else {
|
|
1792
|
+
throw new TypeError("argument #" + (i + 1) + " unsupported type " + type);
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
if (typeof status === "number" && (status < 400 || status >= 600)) {
|
|
1796
|
+
deprecate("non-error status code; use only 4xx or 5xx status codes");
|
|
1797
|
+
}
|
|
1798
|
+
if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) {
|
|
1799
|
+
status = 500;
|
|
1800
|
+
}
|
|
1801
|
+
var HttpError = createError[status] || createError[codeClass(status)];
|
|
1802
|
+
if (!err) {
|
|
1803
|
+
err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]);
|
|
1804
|
+
Error.captureStackTrace(err, createError);
|
|
1805
|
+
}
|
|
1806
|
+
if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
|
|
1807
|
+
err.expose = status < 500;
|
|
1808
|
+
err.status = err.statusCode = status;
|
|
1809
|
+
}
|
|
1810
|
+
for (var key in props) {
|
|
1811
|
+
if (key !== "status" && key !== "statusCode") {
|
|
1812
|
+
err[key] = props[key];
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
return err;
|
|
1816
|
+
}
|
|
1817
|
+
function createHttpErrorConstructor() {
|
|
1818
|
+
function HttpError() {
|
|
1819
|
+
throw new TypeError("cannot construct abstract class");
|
|
1820
|
+
}
|
|
1821
|
+
inherits(HttpError, Error);
|
|
1822
|
+
return HttpError;
|
|
1823
|
+
}
|
|
1824
|
+
function createClientErrorConstructor(HttpError, name, code) {
|
|
1825
|
+
var className = toClassName(name);
|
|
1826
|
+
function ClientError(message) {
|
|
1827
|
+
var msg = message != null ? message : statuses.message[code];
|
|
1828
|
+
var err = new Error(msg);
|
|
1829
|
+
Error.captureStackTrace(err, ClientError);
|
|
1830
|
+
setPrototypeOf(err, ClientError.prototype);
|
|
1831
|
+
Object.defineProperty(err, "message", {
|
|
1832
|
+
enumerable: true,
|
|
1833
|
+
configurable: true,
|
|
1834
|
+
value: msg,
|
|
1835
|
+
writable: true
|
|
1836
|
+
});
|
|
1837
|
+
Object.defineProperty(err, "name", {
|
|
1838
|
+
enumerable: false,
|
|
1839
|
+
configurable: true,
|
|
1840
|
+
value: className,
|
|
1841
|
+
writable: true
|
|
1842
|
+
});
|
|
1843
|
+
return err;
|
|
1844
|
+
}
|
|
1845
|
+
inherits(ClientError, HttpError);
|
|
1846
|
+
nameFunc(ClientError, className);
|
|
1847
|
+
ClientError.prototype.status = code;
|
|
1848
|
+
ClientError.prototype.statusCode = code;
|
|
1849
|
+
ClientError.prototype.expose = true;
|
|
1850
|
+
return ClientError;
|
|
1851
|
+
}
|
|
1852
|
+
function createIsHttpErrorFunction(HttpError) {
|
|
1853
|
+
return function isHttpError(val) {
|
|
1854
|
+
if (!val || typeof val !== "object") {
|
|
1855
|
+
return false;
|
|
1856
|
+
}
|
|
1857
|
+
if (val instanceof HttpError) {
|
|
1858
|
+
return true;
|
|
1859
|
+
}
|
|
1860
|
+
return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode;
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
function createServerErrorConstructor(HttpError, name, code) {
|
|
1864
|
+
var className = toClassName(name);
|
|
1865
|
+
function ServerError(message) {
|
|
1866
|
+
var msg = message != null ? message : statuses.message[code];
|
|
1867
|
+
var err = new Error(msg);
|
|
1868
|
+
Error.captureStackTrace(err, ServerError);
|
|
1869
|
+
setPrototypeOf(err, ServerError.prototype);
|
|
1870
|
+
Object.defineProperty(err, "message", {
|
|
1871
|
+
enumerable: true,
|
|
1872
|
+
configurable: true,
|
|
1873
|
+
value: msg,
|
|
1874
|
+
writable: true
|
|
1875
|
+
});
|
|
1876
|
+
Object.defineProperty(err, "name", {
|
|
1877
|
+
enumerable: false,
|
|
1878
|
+
configurable: true,
|
|
1879
|
+
value: className,
|
|
1880
|
+
writable: true
|
|
1881
|
+
});
|
|
1882
|
+
return err;
|
|
1883
|
+
}
|
|
1884
|
+
inherits(ServerError, HttpError);
|
|
1885
|
+
nameFunc(ServerError, className);
|
|
1886
|
+
ServerError.prototype.status = code;
|
|
1887
|
+
ServerError.prototype.statusCode = code;
|
|
1888
|
+
ServerError.prototype.expose = false;
|
|
1889
|
+
return ServerError;
|
|
1890
|
+
}
|
|
1891
|
+
function nameFunc(func, name) {
|
|
1892
|
+
var desc = Object.getOwnPropertyDescriptor(func, "name");
|
|
1893
|
+
if (desc && desc.configurable) {
|
|
1894
|
+
desc.value = name;
|
|
1895
|
+
Object.defineProperty(func, "name", desc);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
function populateConstructorExports(exports2, codes, HttpError) {
|
|
1899
|
+
codes.forEach(function forEachCode(code) {
|
|
1900
|
+
var CodeError;
|
|
1901
|
+
var name = toIdentifier(statuses.message[code]);
|
|
1902
|
+
switch (codeClass(code)) {
|
|
1903
|
+
case 400:
|
|
1904
|
+
CodeError = createClientErrorConstructor(HttpError, name, code);
|
|
1905
|
+
break;
|
|
1906
|
+
case 500:
|
|
1907
|
+
CodeError = createServerErrorConstructor(HttpError, name, code);
|
|
1908
|
+
break;
|
|
1909
|
+
}
|
|
1910
|
+
if (CodeError) {
|
|
1911
|
+
exports2[code] = CodeError;
|
|
1912
|
+
exports2[name] = CodeError;
|
|
1913
|
+
}
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
function toClassName(name) {
|
|
1917
|
+
return name.substr(-5) !== "Error" ? name + "Error" : name;
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
|
|
1611
1921
|
// node_modules/safer-buffer/safer.js
|
|
1612
1922
|
var require_safer = __commonJS((exports, module) => {
|
|
1613
1923
|
var buffer = __require("buffer");
|
|
@@ -5316,7 +5626,7 @@ var require_raw_body = __commonJS((exports, module) => {
|
|
|
5316
5626
|
*/
|
|
5317
5627
|
var asyncHooks = tryRequireAsyncHooks();
|
|
5318
5628
|
var bytes = require_bytes();
|
|
5319
|
-
var createError =
|
|
5629
|
+
var createError = require_http_errors2();
|
|
5320
5630
|
var iconv = require_lib();
|
|
5321
5631
|
var unpipe = require_unpipe();
|
|
5322
5632
|
module.exports = getRawBody;
|
|
@@ -18559,6 +18869,8 @@ var require_mimeScore = __commonJS((exports, module) => {
|
|
|
18559
18869
|
var TYPE_SCORES = {
|
|
18560
18870
|
application: 1,
|
|
18561
18871
|
font: 2,
|
|
18872
|
+
audio: 2,
|
|
18873
|
+
video: 3,
|
|
18562
18874
|
default: 0
|
|
18563
18875
|
};
|
|
18564
18876
|
module.exports = function mimeScore(mimeType, source = "default") {
|
|
@@ -21606,149 +21918,6 @@ var require_parseurl = __commonJS((exports, module) => {
|
|
|
21606
21918
|
}
|
|
21607
21919
|
});
|
|
21608
21920
|
|
|
21609
|
-
// node_modules/statuses/codes.json
|
|
21610
|
-
var require_codes2 = __commonJS((exports, module) => {
|
|
21611
|
-
module.exports = {
|
|
21612
|
-
"100": "Continue",
|
|
21613
|
-
"101": "Switching Protocols",
|
|
21614
|
-
"102": "Processing",
|
|
21615
|
-
"103": "Early Hints",
|
|
21616
|
-
"200": "OK",
|
|
21617
|
-
"201": "Created",
|
|
21618
|
-
"202": "Accepted",
|
|
21619
|
-
"203": "Non-Authoritative Information",
|
|
21620
|
-
"204": "No Content",
|
|
21621
|
-
"205": "Reset Content",
|
|
21622
|
-
"206": "Partial Content",
|
|
21623
|
-
"207": "Multi-Status",
|
|
21624
|
-
"208": "Already Reported",
|
|
21625
|
-
"226": "IM Used",
|
|
21626
|
-
"300": "Multiple Choices",
|
|
21627
|
-
"301": "Moved Permanently",
|
|
21628
|
-
"302": "Found",
|
|
21629
|
-
"303": "See Other",
|
|
21630
|
-
"304": "Not Modified",
|
|
21631
|
-
"305": "Use Proxy",
|
|
21632
|
-
"307": "Temporary Redirect",
|
|
21633
|
-
"308": "Permanent Redirect",
|
|
21634
|
-
"400": "Bad Request",
|
|
21635
|
-
"401": "Unauthorized",
|
|
21636
|
-
"402": "Payment Required",
|
|
21637
|
-
"403": "Forbidden",
|
|
21638
|
-
"404": "Not Found",
|
|
21639
|
-
"405": "Method Not Allowed",
|
|
21640
|
-
"406": "Not Acceptable",
|
|
21641
|
-
"407": "Proxy Authentication Required",
|
|
21642
|
-
"408": "Request Timeout",
|
|
21643
|
-
"409": "Conflict",
|
|
21644
|
-
"410": "Gone",
|
|
21645
|
-
"411": "Length Required",
|
|
21646
|
-
"412": "Precondition Failed",
|
|
21647
|
-
"413": "Payload Too Large",
|
|
21648
|
-
"414": "URI Too Long",
|
|
21649
|
-
"415": "Unsupported Media Type",
|
|
21650
|
-
"416": "Range Not Satisfiable",
|
|
21651
|
-
"417": "Expectation Failed",
|
|
21652
|
-
"418": "I'm a Teapot",
|
|
21653
|
-
"421": "Misdirected Request",
|
|
21654
|
-
"422": "Unprocessable Entity",
|
|
21655
|
-
"423": "Locked",
|
|
21656
|
-
"424": "Failed Dependency",
|
|
21657
|
-
"425": "Too Early",
|
|
21658
|
-
"426": "Upgrade Required",
|
|
21659
|
-
"428": "Precondition Required",
|
|
21660
|
-
"429": "Too Many Requests",
|
|
21661
|
-
"431": "Request Header Fields Too Large",
|
|
21662
|
-
"451": "Unavailable For Legal Reasons",
|
|
21663
|
-
"500": "Internal Server Error",
|
|
21664
|
-
"501": "Not Implemented",
|
|
21665
|
-
"502": "Bad Gateway",
|
|
21666
|
-
"503": "Service Unavailable",
|
|
21667
|
-
"504": "Gateway Timeout",
|
|
21668
|
-
"505": "HTTP Version Not Supported",
|
|
21669
|
-
"506": "Variant Also Negotiates",
|
|
21670
|
-
"507": "Insufficient Storage",
|
|
21671
|
-
"508": "Loop Detected",
|
|
21672
|
-
"509": "Bandwidth Limit Exceeded",
|
|
21673
|
-
"510": "Not Extended",
|
|
21674
|
-
"511": "Network Authentication Required"
|
|
21675
|
-
};
|
|
21676
|
-
});
|
|
21677
|
-
|
|
21678
|
-
// node_modules/statuses/index.js
|
|
21679
|
-
var require_statuses2 = __commonJS((exports, module) => {
|
|
21680
|
-
/*!
|
|
21681
|
-
* statuses
|
|
21682
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
21683
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
21684
|
-
* MIT Licensed
|
|
21685
|
-
*/
|
|
21686
|
-
var codes = require_codes2();
|
|
21687
|
-
module.exports = status;
|
|
21688
|
-
status.message = codes;
|
|
21689
|
-
status.code = createMessageToStatusCodeMap(codes);
|
|
21690
|
-
status.codes = createStatusCodeList(codes);
|
|
21691
|
-
status.redirect = {
|
|
21692
|
-
300: true,
|
|
21693
|
-
301: true,
|
|
21694
|
-
302: true,
|
|
21695
|
-
303: true,
|
|
21696
|
-
305: true,
|
|
21697
|
-
307: true,
|
|
21698
|
-
308: true
|
|
21699
|
-
};
|
|
21700
|
-
status.empty = {
|
|
21701
|
-
204: true,
|
|
21702
|
-
205: true,
|
|
21703
|
-
304: true
|
|
21704
|
-
};
|
|
21705
|
-
status.retry = {
|
|
21706
|
-
502: true,
|
|
21707
|
-
503: true,
|
|
21708
|
-
504: true
|
|
21709
|
-
};
|
|
21710
|
-
function createMessageToStatusCodeMap(codes2) {
|
|
21711
|
-
var map = {};
|
|
21712
|
-
Object.keys(codes2).forEach(function forEachCode(code) {
|
|
21713
|
-
var message = codes2[code];
|
|
21714
|
-
var status2 = Number(code);
|
|
21715
|
-
map[message.toLowerCase()] = status2;
|
|
21716
|
-
});
|
|
21717
|
-
return map;
|
|
21718
|
-
}
|
|
21719
|
-
function createStatusCodeList(codes2) {
|
|
21720
|
-
return Object.keys(codes2).map(function mapCode(code) {
|
|
21721
|
-
return Number(code);
|
|
21722
|
-
});
|
|
21723
|
-
}
|
|
21724
|
-
function getStatusCode(message) {
|
|
21725
|
-
var msg = message.toLowerCase();
|
|
21726
|
-
if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
|
|
21727
|
-
throw new Error('invalid status message: "' + message + '"');
|
|
21728
|
-
}
|
|
21729
|
-
return status.code[msg];
|
|
21730
|
-
}
|
|
21731
|
-
function getStatusMessage(code) {
|
|
21732
|
-
if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
|
|
21733
|
-
throw new Error("invalid status code: " + code);
|
|
21734
|
-
}
|
|
21735
|
-
return status.message[code];
|
|
21736
|
-
}
|
|
21737
|
-
function status(code) {
|
|
21738
|
-
if (typeof code === "number") {
|
|
21739
|
-
return getStatusMessage(code);
|
|
21740
|
-
}
|
|
21741
|
-
if (typeof code !== "string") {
|
|
21742
|
-
throw new TypeError("code must be a number or string");
|
|
21743
|
-
}
|
|
21744
|
-
var n = parseInt(code, 10);
|
|
21745
|
-
if (!isNaN(n)) {
|
|
21746
|
-
return getStatusMessage(n);
|
|
21747
|
-
}
|
|
21748
|
-
return getStatusCode(code);
|
|
21749
|
-
}
|
|
21750
|
-
});
|
|
21751
|
-
|
|
21752
21921
|
// node_modules/finalhandler/index.js
|
|
21753
21922
|
var require_finalhandler = __commonJS((exports, module) => {
|
|
21754
21923
|
/*!
|
|
@@ -21761,7 +21930,7 @@ var require_finalhandler = __commonJS((exports, module) => {
|
|
|
21761
21930
|
var escapeHtml = require_escape_html();
|
|
21762
21931
|
var onFinished = require_on_finished();
|
|
21763
21932
|
var parseUrl = require_parseurl();
|
|
21764
|
-
var statuses =
|
|
21933
|
+
var statuses = require_statuses();
|
|
21765
21934
|
var isFinished = onFinished.isFinished;
|
|
21766
21935
|
function createHtmlDocument(message) {
|
|
21767
21936
|
var body = escapeHtml(message).replaceAll(`
|
|
@@ -25662,7 +25831,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
25662
25831
|
var onFinished = require_on_finished();
|
|
25663
25832
|
var parseRange = require_range_parser();
|
|
25664
25833
|
var path = __require("path");
|
|
25665
|
-
var statuses =
|
|
25834
|
+
var statuses = require_statuses();
|
|
25666
25835
|
var Stream = __require("stream");
|
|
25667
25836
|
var util = __require("util");
|
|
25668
25837
|
var extname = path.extname;
|
|
@@ -26240,7 +26409,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
26240
26409
|
var mime = require_mime_types();
|
|
26241
26410
|
var path = __require("node:path");
|
|
26242
26411
|
var pathIsAbsolute = __require("node:path").isAbsolute;
|
|
26243
|
-
var statuses =
|
|
26412
|
+
var statuses = require_statuses();
|
|
26244
26413
|
var sign = require_cookie_signature().sign;
|
|
26245
26414
|
var normalizeType = require_utils3().normalizeType;
|
|
26246
26415
|
var normalizeTypes = require_utils3().normalizeTypes;
|