tezx 3.0.3-beta → 3.0.4-beta
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/cjs/index.js +1 -1
- package/cjs/middleware/{basic-auth/index.js → basic-auth.js} +3 -3
- package/cjs/middleware/{cache-control/index.js → cache-control.js} +1 -1
- package/cjs/middleware/{detect-bot/index.js → detect-bot.js} +2 -2
- package/cjs/middleware/{detect-locale/index.js → detect-locale.js} +2 -2
- package/cjs/middleware/{i18n/index.js → i18n.js} +2 -2
- package/cjs/middleware/{lazy-loader/index.js → lazy-loader.js} +1 -1
- package/cjs/middleware/{logger/index.js → logger.js} +1 -1
- package/cjs/middleware/{rate-limiter/index.js → rate-limiter.js} +1 -1
- package/cjs/middleware/{request-id/index.js → request-id.js} +1 -1
- package/cjs/middleware/{request-timeout/index.js → request-timeout.js} +1 -1
- package/cjs/middleware/{sanitize-headers/index.js → sanitize-headers.js} +1 -1
- package/cjs/middleware/{xss-protection/index.js → xss-protection.js} +1 -1
- package/index.js +1 -1
- package/middleware/{basic-auth/index.d.ts → basic-auth.d.ts} +2 -2
- package/middleware/{basic-auth/index.js → basic-auth.js} +3 -3
- package/middleware/{cache-control/index.d.ts → cache-control.d.ts} +2 -2
- package/middleware/{cache-control/index.js → cache-control.js} +1 -1
- package/middleware/{cors/index.d.ts → cors.d.ts} +1 -1
- package/middleware/{detect-bot/index.d.ts → detect-bot.d.ts} +2 -2
- package/middleware/{detect-bot/index.js → detect-bot.js} +2 -2
- package/middleware/{detect-locale/index.d.ts → detect-locale.d.ts} +1 -1
- package/middleware/{detect-locale/index.js → detect-locale.js} +2 -2
- package/middleware/{i18n/index.d.ts → i18n.d.ts} +1 -1
- package/middleware/{i18n/index.js → i18n.js} +2 -2
- package/middleware/{lazy-loader/index.d.ts → lazy-loader.d.ts} +1 -1
- package/middleware/{lazy-loader/index.js → lazy-loader.js} +1 -1
- package/middleware/{logger/index.d.ts → logger.d.ts} +1 -1
- package/middleware/{logger/index.js → logger.js} +1 -1
- package/middleware/{pagination/index.d.ts → pagination.d.ts} +1 -1
- package/middleware/{powered-by/index.d.ts → powered-by.d.ts} +1 -1
- package/middleware/{rate-limiter/index.d.ts → rate-limiter.d.ts} +2 -2
- package/middleware/{rate-limiter/index.js → rate-limiter.js} +1 -1
- package/middleware/{request-id/index.d.ts → request-id.d.ts} +1 -1
- package/middleware/{request-id/index.js → request-id.js} +1 -1
- package/middleware/{request-timeout/index.d.ts → request-timeout.d.ts} +2 -2
- package/middleware/{request-timeout/index.js → request-timeout.js} +1 -1
- package/middleware/{sanitize-headers/index.d.ts → sanitize-headers.d.ts} +1 -1
- package/middleware/{sanitize-headers/index.js → sanitize-headers.js} +1 -1
- package/middleware/{secure-headers/index.d.ts → secure-headers.d.ts} +1 -1
- package/middleware/{xss-protection/index.d.ts → xss-protection.d.ts} +2 -2
- package/middleware/{xss-protection/index.js → xss-protection.js} +1 -1
- package/package.json +5 -80
- /package/cjs/middleware/{cors/index.js → cors.js} +0 -0
- /package/cjs/middleware/{pagination/index.js → pagination.js} +0 -0
- /package/cjs/middleware/{powered-by/index.js → powered-by.js} +0 -0
- /package/cjs/middleware/{secure-headers/index.js → secure-headers.js} +0 -0
- /package/middleware/{cors/index.js → cors.js} +0 -0
- /package/middleware/{pagination/index.js → pagination.js} +0 -0
- /package/middleware/{powered-by/index.js → powered-by.js} +0 -0
- /package/middleware/{secure-headers/index.js → secure-headers.js} +0 -0
package/cjs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const router_js_1 = require("./core/router.js");
|
|
|
5
5
|
Object.defineProperty(exports, "Router", { enumerable: true, get: function () { return router_js_1.Router; } });
|
|
6
6
|
const server_js_1 = require("./core/server.js");
|
|
7
7
|
Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_js_1.TezX; } });
|
|
8
|
-
exports.version = "3.0.
|
|
8
|
+
exports.version = "3.0.4-beta";
|
|
9
9
|
exports.default = {
|
|
10
10
|
Router: router_js_1.Router,
|
|
11
11
|
TezX: server_js_1.TezX,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.basicAuth = void 0;
|
|
4
4
|
const node_buffer_1 = require("node:buffer");
|
|
5
|
-
const config_js_1 = require("
|
|
6
|
-
const colors_js_1 = require("
|
|
7
|
-
const rateLimit_js_1 = require("
|
|
5
|
+
const config_js_1 = require("../core/config.js");
|
|
6
|
+
const colors_js_1 = require("../utils/colors.js");
|
|
7
|
+
const rateLimit_js_1 = require("../utils/rateLimit.js");
|
|
8
8
|
const basicAuth = (options) => {
|
|
9
9
|
const { validateCredentials, getRealm = () => "Restricted Area", onUnauthorized = (ctx, error) => {
|
|
10
10
|
const realm = getRealm(ctx);
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.default = exports.cacheControl = void 0;
|
|
37
|
-
const config_js_1 = require("
|
|
37
|
+
const config_js_1 = require("../core/config.js");
|
|
38
38
|
const cacheControl = (options) => {
|
|
39
39
|
const { defaultSettings, useWeakETag = false, rules = [], logEvent = (event, ctx, error) => {
|
|
40
40
|
if (event === "error") {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.detectBot = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
5
|
-
const rateLimit_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
|
+
const rateLimit_js_1 = require("../utils/rateLimit.js");
|
|
6
6
|
const detectBot = (options = {}) => {
|
|
7
7
|
const { botUserAgents = ["bot", "spider", "crawl", "slurp"], maxRequests = 30, windowMs = 60000, isBlacklisted = async () => false, queryKeyBot = "bot", onBotDetected = "block", enableRateLimiting = false, customBotDetector = async () => false, customBlockedResponse = (ctx, { reason }) => {
|
|
8
8
|
ctx.setStatus = 403;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.detectLocale = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
5
|
-
const cookie_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
|
+
const cookie_js_1 = require("../utils/cookie.js");
|
|
6
6
|
const detectLocale = (options) => {
|
|
7
7
|
const { supportedLocales, defaultLocale = "en", queryKeyLocale = "lang", cookieKeyLocale = "locale", localeContextKey = "locale", customLocaleDetector, } = options;
|
|
8
8
|
return async function detectLocale(ctx, next) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.i18n = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
5
|
-
const cookie_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
|
+
const cookie_js_1 = require("../utils/cookie.js");
|
|
6
6
|
const i18n = (options) => {
|
|
7
7
|
const { loadTranslations, defaultCacheDuration = 3600000, isCacheValid = (cached) => cached.expiresAt > Date.now(), detectLanguage = (ctx) => {
|
|
8
8
|
if (ctx.req.query.lang) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.lazyLoader = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
5
|
const lazyLoader = (options) => {
|
|
6
6
|
const { moduleKey = (ctx) => ctx.req.params[queryKeyModule] || ctx.req.query[queryKeyModule], getModuleLoader, queryKeyModule = "module", moduleContextKey = "module", cacheTTL = 3600000, enableCache = true, cacheStorage, lifecycleHooks = {}, validateModule, } = options;
|
|
7
7
|
let storage = cacheStorage;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.logger = logger;
|
|
4
4
|
exports.default = logger;
|
|
5
|
-
const colors_js_1 = require("
|
|
5
|
+
const colors_js_1 = require("../utils/colors.js");
|
|
6
6
|
function logger() {
|
|
7
7
|
return async function logger(ctx, next) {
|
|
8
8
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.rateLimiter = void 0;
|
|
4
|
-
const rateLimit_js_1 = require("
|
|
4
|
+
const rateLimit_js_1 = require("../utils/rateLimit.js");
|
|
5
5
|
const rateLimiter = (options) => {
|
|
6
6
|
const { maxRequests, windowMs, keyGenerator = (ctx) => `${ctx.req.remoteAddress.address}:${ctx.req.remoteAddress.port}`, storage = (0, rateLimit_js_1.createRateLimitDefaultStorage)(), onError = (ctx, retryAfter, error) => {
|
|
7
7
|
ctx.setStatus = 429;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.requestID = void 0;
|
|
4
|
-
const index_js_1 = require("
|
|
4
|
+
const index_js_1 = require("../helper/index.js");
|
|
5
5
|
const requestID = (headerName = "X-Request-ID", contextKey = "requestID") => {
|
|
6
6
|
return function requestID(ctx, next) {
|
|
7
7
|
let requestId = ctx.header(headerName);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.requestTimeout = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
5
|
const requestTimeout = (options) => {
|
|
6
6
|
const { getTimeout, onTimeout = (ctx) => {
|
|
7
7
|
ctx.setStatus = 504;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sanitizeHeaders = exports.default = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
5
|
const sanitizeHeaders = (options = {}) => {
|
|
6
6
|
const { whitelist = [], blacklist = [], allowUnsafeCharacters = false, } = options;
|
|
7
7
|
const normalizedWhitelist = whitelist.map(h => h.toLowerCase());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = exports.xssProtection = void 0;
|
|
4
|
-
const config_js_1 = require("
|
|
4
|
+
const config_js_1 = require("../core/config.js");
|
|
5
5
|
const xssProtection = (options = {}) => {
|
|
6
6
|
const { enabled = true, mode = "block", fallbackCSP = "default-src 'self'; script-src 'self';", } = options;
|
|
7
7
|
return async function xssProtection(ctx, next) {
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from "
|
|
2
|
-
import { HttpBaseResponse, Middleware } from "
|
|
1
|
+
import { Context } from "../core/context.js";
|
|
2
|
+
import { HttpBaseResponse, Middleware } from "../types/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Supported authentication method types.
|
|
5
5
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Buffer } from "node:buffer";
|
|
2
|
-
import { GlobalConfig } from "
|
|
3
|
-
import { colorText } from "
|
|
4
|
-
import { createRateLimitDefaultStorage, isRateLimit } from "
|
|
2
|
+
import { GlobalConfig } from "../core/config.js";
|
|
3
|
+
import { colorText } from "../utils/colors.js";
|
|
4
|
+
import { createRateLimitDefaultStorage, isRateLimit } from "../utils/rateLimit.js";
|
|
5
5
|
const basicAuth = (options) => {
|
|
6
6
|
const { validateCredentials, getRealm = () => "Restricted Area", onUnauthorized = (ctx, error) => {
|
|
7
7
|
const realm = getRealm(ctx);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from "
|
|
2
|
-
import { Middleware } from "
|
|
1
|
+
import { Context } from "../core/context.js";
|
|
2
|
+
import { Middleware } from "../types/index.js";
|
|
3
3
|
export type CacheRule = {
|
|
4
4
|
/**
|
|
5
5
|
* 🎯 Condition to determine if this rule applies.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context, Middleware } from "
|
|
2
|
-
import { HttpBaseResponse } from "
|
|
1
|
+
import { Context, Middleware } from "../index.js";
|
|
2
|
+
import { HttpBaseResponse } from "../types/index.js";
|
|
3
3
|
export type DetectBotReason = "User-Agent" | "Blacklisted IP" | "Query Parameter" | "Rate Limiting" | "Custom Detector" | "Multiple Indicators";
|
|
4
4
|
export type BotDetectionResult = {
|
|
5
5
|
isBot: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GlobalConfig } from "
|
|
2
|
-
import { createRateLimitDefaultStorage, isRateLimit } from "
|
|
1
|
+
import { GlobalConfig } from "../core/config.js";
|
|
2
|
+
import { createRateLimitDefaultStorage, isRateLimit } from "../utils/rateLimit.js";
|
|
3
3
|
export const detectBot = (options = {}) => {
|
|
4
4
|
const { botUserAgents = ["bot", "spider", "crawl", "slurp"], maxRequests = 30, windowMs = 60000, isBlacklisted = async () => false, queryKeyBot = "bot", onBotDetected = "block", enableRateLimiting = false, customBotDetector = async () => false, customBlockedResponse = (ctx, { reason }) => {
|
|
5
5
|
ctx.setStatus = 403;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GlobalConfig } from "
|
|
2
|
-
import { getCookie } from "
|
|
1
|
+
import { GlobalConfig } from "../core/config.js";
|
|
2
|
+
import { getCookie } from "../utils/cookie.js";
|
|
3
3
|
const detectLocale = (options) => {
|
|
4
4
|
const { supportedLocales, defaultLocale = "en", queryKeyLocale = "lang", cookieKeyLocale = "locale", localeContextKey = "locale", customLocaleDetector, } = options;
|
|
5
5
|
return async function detectLocale(ctx, next) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GlobalConfig } from "
|
|
2
|
-
import { getCookie } from "
|
|
1
|
+
import { GlobalConfig } from "../core/config.js";
|
|
2
|
+
import { getCookie } from "../utils/cookie.js";
|
|
3
3
|
const i18n = (options) => {
|
|
4
4
|
const { loadTranslations, defaultCacheDuration = 3600000, isCacheValid = (cached) => cached.expiresAt > Date.now(), detectLanguage = (ctx) => {
|
|
5
5
|
if (ctx.req.query.lang) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalConfig } from "
|
|
1
|
+
import { GlobalConfig } from "../core/config.js";
|
|
2
2
|
const lazyLoader = (options) => {
|
|
3
3
|
const { moduleKey = (ctx) => ctx.req.params[queryKeyModule] || ctx.req.query[queryKeyModule], getModuleLoader, queryKeyModule = "module", moduleContextKey = "module", cacheTTL = 3600000, enableCache = true, cacheStorage, lifecycleHooks = {}, validateModule, } = options;
|
|
4
4
|
let storage = cacheStorage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from "
|
|
2
|
-
import { HttpBaseResponse, Middleware } from "
|
|
1
|
+
import { Context } from "../core/context.js";
|
|
2
|
+
import { HttpBaseResponse, Middleware } from "../types/index.js";
|
|
3
3
|
export type RateLimiterOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* 🔴 Maximum allowed requests in the time window
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRateLimitDefaultStorage, isRateLimit } from "
|
|
1
|
+
import { createRateLimitDefaultStorage, isRateLimit } from "../utils/rateLimit.js";
|
|
2
2
|
export const rateLimiter = (options) => {
|
|
3
3
|
const { maxRequests, windowMs, keyGenerator = (ctx) => `${ctx.req.remoteAddress.address}:${ctx.req.remoteAddress.port}`, storage = createRateLimitDefaultStorage(), onError = (ctx, retryAfter, error) => {
|
|
4
4
|
ctx.setStatus = 429;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from "
|
|
2
|
-
import { HttpBaseResponse, Middleware } from "
|
|
1
|
+
import { Context } from "../core/context.js";
|
|
2
|
+
import { HttpBaseResponse, Middleware } from "../types/index.js";
|
|
3
3
|
export type TimeoutOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* ⏳ Function to dynamically determine the timeout duration (in milliseconds).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalConfig } from "
|
|
1
|
+
import { GlobalConfig } from "../core/config.js";
|
|
2
2
|
const sanitizeHeaders = (options = {}) => {
|
|
3
3
|
const { whitelist = [], blacklist = [], allowUnsafeCharacters = false, } = options;
|
|
4
4
|
const normalizedWhitelist = whitelist.map(h => h.toLowerCase());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from "
|
|
2
|
-
import { NextCallback } from "
|
|
1
|
+
import { Context } from "../core/context.js";
|
|
2
|
+
import { NextCallback } from "../types/index.js";
|
|
3
3
|
export type XSSProtectionOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* 🟢 Whether to enable XSS protection
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalConfig } from "
|
|
1
|
+
import { GlobalConfig } from "../core/config.js";
|
|
2
2
|
const xssProtection = (options = {}) => {
|
|
3
3
|
const { enabled = true, mode = "block", fallbackCSP = "default-src 'self'; script-src 'self';", } = options;
|
|
4
4
|
return async function xssProtection(ctx, next) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tezx",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4-beta",
|
|
4
4
|
"description": "TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, and Bun.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -47,85 +47,10 @@
|
|
|
47
47
|
"require": "./cjs/registry/index.js",
|
|
48
48
|
"types": "./registry/index.d.ts"
|
|
49
49
|
},
|
|
50
|
-
"./middleware
|
|
51
|
-
"import": "./middleware
|
|
52
|
-
"require": "./cjs/middleware
|
|
53
|
-
"types": "./middleware
|
|
54
|
-
},
|
|
55
|
-
"./middleware/cache-control": {
|
|
56
|
-
"import": "./middleware/cache-control/index.js",
|
|
57
|
-
"require": "./cjs/middleware/cache-control/index.js",
|
|
58
|
-
"types": "./middleware/cache-control/index.d.ts"
|
|
59
|
-
},
|
|
60
|
-
"./middleware/cors": {
|
|
61
|
-
"import": "./middleware/cors/index.js",
|
|
62
|
-
"require": "./cjs/middleware/cors/index.js",
|
|
63
|
-
"types": "./middleware/cors/index.d.ts"
|
|
64
|
-
},
|
|
65
|
-
"./middleware/detect-bot": {
|
|
66
|
-
"import": "./middleware/detect-bot/index.js",
|
|
67
|
-
"require": "./cjs/middleware/detect-bot/index.js",
|
|
68
|
-
"types": "./middleware/detect-bot/index.d.ts"
|
|
69
|
-
},
|
|
70
|
-
"./middleware/detect-locale": {
|
|
71
|
-
"import": "./middleware/detect-locale/index.js",
|
|
72
|
-
"require": "./cjs/middleware/detect-locale/index.js",
|
|
73
|
-
"types": "./middleware/detect-locale/index.d.ts"
|
|
74
|
-
},
|
|
75
|
-
"./middleware/i18n": {
|
|
76
|
-
"import": "./middleware/i18n/index.js",
|
|
77
|
-
"require": "./cjs/middleware/i18n/index.js",
|
|
78
|
-
"types": "./middleware/i18n/index.d.ts"
|
|
79
|
-
},
|
|
80
|
-
"./middleware/lazy-loader": {
|
|
81
|
-
"import": "./middleware/lazy-loader/index.js",
|
|
82
|
-
"require": "./cjs/middleware/lazy-loader/index.js",
|
|
83
|
-
"types": "./middleware/lazy-loader/index.d.ts"
|
|
84
|
-
},
|
|
85
|
-
"./middleware/logger": {
|
|
86
|
-
"import": "./middleware/logger/index.js",
|
|
87
|
-
"require": "./cjs/middleware/logger/index.js",
|
|
88
|
-
"types": "./middleware/logger/index.d.ts"
|
|
89
|
-
},
|
|
90
|
-
"./middleware/pagination": {
|
|
91
|
-
"import": "./middleware/pagination/index.js",
|
|
92
|
-
"require": "./cjs/middleware/pagination/index.js",
|
|
93
|
-
"types": "./middleware/pagination/index.d.ts"
|
|
94
|
-
},
|
|
95
|
-
"./middleware/powered-by": {
|
|
96
|
-
"import": "./middleware/powered-by/index.js",
|
|
97
|
-
"require": "./cjs/middleware/powered-by/index.js",
|
|
98
|
-
"types": "./middleware/powered-by/index.d.ts"
|
|
99
|
-
},
|
|
100
|
-
"./middleware/rate-limiter": {
|
|
101
|
-
"import": "./middleware/rate-limiter/index.js",
|
|
102
|
-
"require": "./cjs/middleware/rate-limiter/index.js",
|
|
103
|
-
"types": "./middleware/rate-limiter/index.d.ts"
|
|
104
|
-
},
|
|
105
|
-
"./middleware/request-id": {
|
|
106
|
-
"import": "./middleware/request-id/index.js",
|
|
107
|
-
"require": "./cjs/middleware/request-id/index.js",
|
|
108
|
-
"types": "./middleware/request-id/index.d.ts"
|
|
109
|
-
},
|
|
110
|
-
"./middleware/request-timeout": {
|
|
111
|
-
"import": "./middleware/request-timeout/index.js",
|
|
112
|
-
"require": "./cjs/middleware/request-timeout/index.js",
|
|
113
|
-
"types": "./middleware/request-timeout/index.d.ts"
|
|
114
|
-
},
|
|
115
|
-
"./middleware/sanitize-headers": {
|
|
116
|
-
"import": "./middleware/sanitize-headers/index.js",
|
|
117
|
-
"require": "./cjs/middleware/sanitize-headers/index.js",
|
|
118
|
-
"types": "./middleware/sanitize-headers/index.d.ts"
|
|
119
|
-
},
|
|
120
|
-
"./middleware/secure-headers": {
|
|
121
|
-
"import": "./middleware/secure-headers/index.js",
|
|
122
|
-
"require": "./cjs/middleware/secure-headers/index.js",
|
|
123
|
-
"types": "./middleware/secure-headers/index.d.ts"
|
|
124
|
-
},
|
|
125
|
-
"./middleware/xss-protection": {
|
|
126
|
-
"import": "./middleware/xss-protection/index.js",
|
|
127
|
-
"require": "./cjs/middleware/xss-protection/index.js",
|
|
128
|
-
"types": "./middleware/xss-protection/index.d.ts"
|
|
50
|
+
"./middleware/*": {
|
|
51
|
+
"import": "./middleware/*.js",
|
|
52
|
+
"require": "./cjs/middleware/*.js",
|
|
53
|
+
"types": "./middleware/*.d.ts"
|
|
129
54
|
}
|
|
130
55
|
},
|
|
131
56
|
"files": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|