Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dev-mastery/comments-api
/ functions
Functions
47 in github.com/dev-mastery/comments-api
⨍
Functions
47
◇
Types & classes
2
↓ 81 callers
Function
makeFakeComment
(overrides)
__test__/fixtures/comment.js:17
↓ 10 callers
Function
makeDb
()
src/data-access/index.js:9
↓ 7 callers
Function
makeHandleModeration
({ isQuestionable, initiateReview })
src/use-cases/handle-moderation.js:1
↓ 6 callers
Function
makeCommentsDb
({ makeDb })
src/data-access/comments-db.js:3
↓ 5 callers
Function
makeAddComment
({ commentsDb, handleModeration })
src/use-cases/add-comment.js:2
↓ 5 callers
Function
makeEditComment
({ commentsDb, handleModeration })
src/use-cases/edit-comment.js:2
↓ 5 callers
Function
makeRemoveComment
({ commentsDb })
src/use-cases/remove-comment.js:3
↓ 3 callers
Function
makePatchComment
({ editComment })
src/controllers/patch-comment.js:1
↓ 3 callers
Function
makePostComment
({ addComment })
src/controllers/post-comment.js:1
↓ 3 callers
Function
normalizeModerationApiResponse
(response)
src/is-questionable/is-questionable.js:62
↓ 2 callers
Function
makeGetComments
({ listComments })
src/controllers/get-comments.js:1
↓ 1 callers
Function
buildAkismetApiCommand
({ author, browser, createdOn, ip, modifiedOn, querystring, referrer, testOnly, text })
src/is-questionable/is-questionable.js:69
↓ 1 callers
Function
buildMakeComment
({ Id, md5, sanitize, makeSource })
src/comment/comment.js:1
↓ 1 callers
Function
buildMakeSource
({ isValidIp })
src/comment/source.js:1
↓ 1 callers
Function
buildModerationApiCommand
(text)
src/is-questionable/is-questionable.js:49
↓ 1 callers
Function
deleteCommentAndParent
(comment)
src/use-cases/remove-comment.js:74
↓ 1 callers
Function
deleteNothing
()
src/use-cases/remove-comment.js:49
↓ 1 callers
Function
hardDelete
(comment)
src/use-cases/remove-comment.js:86
↓ 1 callers
Function
hasReplies
({ id: commentId })
src/use-cases/remove-comment.js:26
↓ 1 callers
Function
isOnlyReplyOfDeletedParent
(comment)
src/use-cases/remove-comment.js:34
↓ 1 callers
Function
isValidIp
(ip)
src/comment/index.js:13
↓ 1 callers
Function
makeDeleteComment
({ removeComment })
src/controllers/delete-comment.js:1
↓ 1 callers
Function
makeHash
()
src/comment/comment.js:68
↓ 1 callers
Function
makeIsQuestionable
({ pipe, issueHttpRequest, querystring })
src/is-questionable/is-questionable.js:1
↓ 1 callers
Function
makeListComments
({ commentsDb })
src/use-cases/list-comments.js:1
↓ 1 callers
Function
md5
(text)
src/comment/index.js:17
↓ 1 callers
Function
md5
(text)
__test__/fixtures/comment.js:10
↓ 1 callers
Function
nest
(comments)
src/use-cases/list-comments.js:14
↓ 1 callers
Function
sanitize
(text)
src/comment/index.js:24
↓ 1 callers
Function
softDelete
(commentInfo)
src/use-cases/remove-comment.js:57
Function
clearDb
()
__test__/fixtures/db.js:22
Function
closeDb
()
__test__/fixtures/db.js:17
Method
constructor
(config)
jest-mongo.js:10
Function
findAll
({ publishedOnly = true } = {})
src/data-access/comments-db.js:14
Function
findByHash
(comment)
src/data-access/comments-db.js:77
Function
findById
({ id: _id })
src/data-access/comments-db.js:23
Function
findByPostId
({ postId, omitReplies = true })
src/data-access/comments-db.js:33
Function
findReplies
({ commentId, publishedOnly = true })
src/data-access/comments-db.js:45
Function
insert
({ id: _id = Id.makeId(), ...commentInfo })
src/data-access/comments-db.js:56
Function
makeDb
()
__test__/fixtures/db.js:6
Function
normalizeAkismetApiResponse
(response)
src/is-questionable/is-questionable.js:102
Function
notFound
()
src/controllers/not-found.js:1
Function
remove
({ id: _id })
src/data-access/comments-db.js:72
Method
runScript
(script)
jest-mongo.js:27
Method
setup
()
jest-mongo.js:14
Method
teardown
()
jest-mongo.js:23
Function
update
({ id: _id, ...commentInfo })
src/data-access/comments-db.js:65