MCPcopy Create free account

hub / github.com/ThinhVu/mhvn / functions

Functions290 in github.com/ThinhVu/mhvn

Methodconstructor
(errorCode: string, message?: string, statusCode?: number)
be/src/utils/common-util.ts:12
Methodconstructor
(opts)
be/src/utils/logger-transport-discord.ts:8
Methodconstructor
(s3Config: any)
be/src/utils/s3.ts:9
Methodconstructor
* The code must be a string, in snake case and all capital, that starts with * the substring `ERR_ERL_`. * * The message must be a string, st
be/src/libs/rate-limit/validations.ts:23
Methodconstructor
* @constructor for `RedisStore`. * * @param options {Options} - The configuration options for the store.
be/src/libs/rate-limit-redis/lib.ts:80
FunctioncopyToClipboard
(content)
fe/src/utils/common.js:1
Functioncronjob
()
be/src/plugins/cronjob.ts:9
Functiondate
(v: any)
be/src/utils/data-parser.ts:36
Methoddecrement
* Method to decrement a client's hit counter. * * @param key {string} - The identifier for a client. * * @public
be/src/libs/rate-limit/memory-store.ts:115
Methoddecrement
* Method to decrement a client's hit counter. * * @param key {string} - The identifier for a client
be/src/libs/rate-limit-redis/lib.ts:199
MethoddeleteFile
(file)
be/src/utils/s3.ts:63
Functiondisable
()
be/src/libs/rate-limit/validations.ts:62
Functiondocs2Map
(docs: Array<T>, getKey?: (item: T) => string)
be/src/utils/common-util.ts:93
FunctiondraftPolliHeaders
* Warns the user that the `draft_polli_ratelimit_headers` option is deprecated * and will be removed in the next major release. * * @param dr
be/src/libs/rate-limit/validations.ts:208
FunctionenumToObject
(enumObj: any)
be/src/utils/common-util.ts:84
Functionenv
()
be-playground/src/helper/utils.js:5
MethodevalCommand
()
be/src/libs/rate-limit-redis/lib.ts:124
FunctiongenerateRandomCode
(length: number)
be/src/utils/random-util.ts:1
FunctiongenerateUniqueUsername
(text: string)
be/src/logic/user.ts:116
Functionget
(fileId: ObjectId)
be/src/logic/file-system/file.ts:7
MethodgetEtag
(file)
be/src/utils/s3.ts:53
FunctiongetThrowFn
()
be/src/libs/rate-limit/lib.ts:434
FunctiongetUserById
(fromUser, userId)
be-playground/src/helper/user.js:31
FunctiongetUserPublicInfo
(userInfo: IUser)
be/src/logic/user.ts:28
FunctiongetUserPublicInfoByIds
(ids: ObjectId[])
be/src/logic/user.ts:37
Functionh2ms
be/src/utils/date-time-util.ts:19
Functionhandler
( request, response, _optionsUsed: Options, )
be/src/libs/rate-limit/lib.ts:229
FunctionheadersResetTime
* Warns the user when the selected headers option requires a reset time but * the store does not provide one. * * @param resetTime {Date | un
be/src/libs/rate-limit/validations.ts:242
Functionhmm
(app)
be/src/routes/hmm.app.ts:39
Functionhook
()
be/src/utils/hook.ts:4
Methodincrement
* Method to increment a client's hit counter. * * @param key {string} - The identifier for a client. * * @returns {ClientRateLimitInfo} -
be/src/libs/rate-limit/memory-store.ts:96
Methodincrement
* Method to increment a client's hit counter. * * @param key {string} - The identifier for a client * * @returns {IncrementResponse} - The
be/src/libs/rate-limit-redis/lib.ts:189
Methodinit
* Method that initializes the store. * * @param options {Options} - The options used to setup the middleware.
be/src/libs/rate-limit/memory-store.ts:57
FunctioninterceptOidArrays
(array: ObjectId[], newItems: ObjectId[])
be/src/utils/common-util.ts:73
Functionip
* Checks whether the IP address is valid, and that it does not have a port * number in it. * * See https://github.com/ThinhVu/hyper-express-r
be/src/libs/rate-limit/validations.ts:76
FunctionkeyGenerator
(request: Request, _response: Response)
be/src/libs/rate-limit/lib.ts:218
Functionlimit
* Warns the user that the behaviour for `max: 0` / `limit: 0` is changing in the next * major release. * * @param limit {number} - The maximu
be/src/libs/rate-limit/validations.ts:191
FunctionlogEventFactory
(email, event)
be-playground/src/helper/utils.js:17
FunctionmergeOidArrays
(array: ObjectId[], newItems: ObjectId[])
be/src/utils/common-util.ts:59
Functionmongodb
()
be/src/plugins/mongodb.ts:23
Functionms2h
be/src/utils/date-time-util.ts:22
Functionms2hms
(milliseconds: number)
be/src/utils/date-time-util.ts:3
Functionnum
(v: any, fallbackValue: number)
be/src/utils/data-parser.ts:28
Functionobj2QryStr
(obj)
be-playground/src/helper/utils.js:54
Functionoff
(event, handler)
fe/src/utils/hooks.js:13
Functionoff
(event: string, handler?)
be/src/utils/hook.ts:14
Functionoid
(v: any, throwIfInvalid = true)
be/src/utils/data-parser.ts:9
FunctionoidExcludes
(array: ObjectId[], excludeItems: ObjectId[])
be/src/utils/common-util.ts:47
Functionon
(event, handler)
fe/src/utils/hooks.js:4
Functionon
(event: string, handler)
be/src/utils/hook.ts:7
FunctiononLimitReached
* Warns the user that the `onLimitReached` option is deprecated and will be removed in the next * major release. * * @param onLimitReached {a
be/src/libs/rate-limit/validations.ts:225
FunctionopenUploadFileDialog
(options, onFileOpened)
fe/src/utils/file.js:1
FunctionpersistentNotifyUser
(to: ObjectId[], event: string, data: INotificationData)
be/src/logic/notification/index.ts:22
FunctionpipeServerLog
()
fe/src/utils/log.js:3
FunctionpositiveHits
* Ensures totalHits value from store is a positive integer. * * @param hits {any} - The `totalHits` returned by the store.
be/src/libs/rate-limit/validations.ts:139
FunctionrandomPick
(arr)
fe/src/utils/common.js:7
FunctionrandomPick
(arr: Array<any>)
be/src/utils/random-util.ts:32
FunctionrandomUserId
()
be-playground/src/helper/utils.js:58
FunctionreadFile
(file)
fe/src/utils/file.js:15
FunctionremoveCarry
(v)
fe/src/utils/common.js:5
FunctionrequireAdmin
(req: Request<UserProps>, res: Response, next: MiddlewareNext)
be/src/middlewares/auth.ts:19
FunctionrequireUser
(req: Request<UserProps>, res: Response, next: MiddlewareNext)
be/src/middlewares/auth.ts:44
MethodresetAll
()
be/src/libs/rate-limit/lib.ts:87
MethodresetKey
(key: string)
be/src/libs/rate-limit/lib.ts:82
MethodresetKey
* Method to reset a client's hit counter. * * @param key {string} - The identifier for a client. * * @public
be/src/libs/rate-limit/memory-store.ts:128
MethodresetKey
* Method to reset a client's hit counter. * * @param key {string} - The identifier for a client
be/src/libs/rate-limit-redis/lib.ts:208
Functionrun
()
be/src/migrations/demo.ts:7
FunctionsafeCall
(fn: SafeCallHandler<T>)
be/src/utils/safe-call.ts:8
FunctionsearchPlaces
(query: string, options: SearchResult)
be/src/utils/tomtom-search.ts:13
Functionsend
be-playground/src/helper/hmm.js:12
FunctionsendOTP
(phoneNr: string, otpCode: string | number)
be/src/utils/tel.ts:4
FunctionsendOTP
(phoneNr: string, otpCode: string | number)
be/src/utils/twilio.ts:1
Methodshutdown
* Method to stop the timer (if currently running) and prevent any memory * leaks. * * @public
be/src/libs/rate-limit/memory-store.ts:149
FunctionsingleCount
* Ensures a given key is incremented only once per request. * * @param request {Request} - The Express request object. * @param store {Store}
be/src/libs/rate-limit/validations.ts:157
Functionsnapshot
()
be/src/logic/metric/app-metric.ts:11
FunctionsocketConnect
(access_token)
fe/src/socket/socket.js:6
Functionstepper
()
be-playground/src/helper/utils.js:62
Functionstr
(v: any)
be/src/utils/data-parser.ts:38
Functiontrigger
(event, ...data)
fe/src/utils/hooks.js:23
Functiontrigger
(event: string, ...data)
be/src/utils/hook.ts:22
FunctiontrustProxy
* Makes sure the trust proxy setting is not set to `true`. * * See https://github.com/ThinhVu/hyper-express-rate-limit/wiki/Error-Codes#err_erl_
be/src/libs/rate-limit/validations.ts:101
FunctionunpipeServerLog
()
fe/src/utils/log.js:8
FunctionupdateUserProfile
(user, profile)
be-playground/src/helper/user.js:35
FunctionuploadFiles
(files, {onSuccess, onError})
fe/src/components/FileUpload/fs-util.js:9
FunctionurlFulfill
(url: string)
be/src/utils/common-util.ts:102
FunctionuseAppMetric
(parentRouter: Router)
be/src/routes/app-metric.route.ts:8
FunctionusePlugin
(app: any)
be/src/plugins/index.ts:6
FunctionvalidationsConfig
* Checks the options.validate setting to ensure that only recognized validations are enabled or disabled. * * If any unrecognized values are fou
be/src/libs/rate-limit/validations.ts:256
FunctionvolatileNotifyUser
(to: ObjectId[], event: string, data: INotificationData)
be/src/logic/notification/index.ts:28
FunctionxForwardedForHeader
* Makes sure the trust proxy setting is set in case the `X-Forwarded-For` * header is present. * * See https://github.com/ThinhVu/hyper-expre
be/src/libs/rate-limit/validations.ts:121
← previous201–290 of 290, ranked by callers