Skip to content

Commit

Permalink
Merge pull request #180 from AnkanSaha/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AnkanSaha committed Mar 8, 2024
2 parents 486018f + c7621b0 commit 76d825b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const { Middleware } = require("outers"); // import the package

app.use(
"/api",
Middleware.AccessController(
Middleware.URL_Controller(
["ARRAY OF URLs"],
FailedStatusCode,
ErrorMessage,
Expand Down Expand Up @@ -412,7 +412,7 @@ const { Middleware } = require("outers"); // import the package

app.use(
"/api",
Middleware.UserAccessController(
Middleware.User_AgentController(
["ARRAY OF BROWSERS NAMES"],
["ARRAY OF BROWSERS VERSIONS"]
FailedStatusCode,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "outers",
"version": "8.2.14",
"version": "8.2.15",
"description": "outers - a all in one package for your day to day use",
"main": "./lib/Config/outer.js",
"types": "./lib/Config/outer.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions source/Config/outer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import GitCloner from "../Git Cloner/Cloner"; // Import Git Cloner Module

// Import All Middlewares
import InjectIP from "../Middlewares/Request IP Injector/Base.middleware"; // Import Inject IP Module
import URL_Controller from "../Middlewares/URL Controller/Base.middleware"; // Import URL Controller Module
import AccessController from "../Middlewares/URL Controller/Base.middleware"; // Import URL Controller Module
import IP_Controller from "../Middlewares/IP Controller/Base.middleware"; // Import IP Controller Module
import UserAccessController from "../Middlewares/User Agent Controller/Base.middleware"; // Import User Access Controller Module
import RequestController from "../Middlewares/Request Controller/Base.middleware"; // Import Request Controller Module
Expand Down Expand Up @@ -103,9 +103,9 @@ export const Serve = Object.freeze({
// Export All Middlewares
export const Middleware = Object.freeze({
RequestInjectIP: InjectIP, // Export IP Injector Module as Middleware
AccessController: URL_Controller, // Export URL Controller Module as Middleware
URL_Controller: AccessController, // Export URL Controller Module as Middleware
IPAccessController: IP_Controller, // Export IP Controller Module as Middleware
UserAccessController, // Export User Access Controller Module as Middleware
User_AgentController: UserAccessController, // Export User Access Controller Module as Middleware
MethodsController: RequestController, // Export Request Controller Module as Middleware
JWTValidator, // Export JWT Validator Middleware
}); // Export IP Injector Module as Middleware
Expand Down
6 changes: 3 additions & 3 deletions source/Functions/Get IP Details.function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { APiCall } from "../Config/Constant/Functions.constant"; // Import APiCa

// Register IP Details Short Storage for IP Details Cache
export const IPDetailsShortStorage = new Storage(
"cache-ip-details",
99999,
"cache-ip-details",
"cache-ip-details-for-nodejs",
999999, // 999999 MB = 1TB
"cache-ip-details-for-nodejs",
); // Create New Short Storage for IP Details

// Main Function
Expand Down
Empty file.

0 comments on commit 76d825b

Please sign in to comment.