-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add Mongodb-watcher #2
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: MRGUOKING <[email protected]> Add Mongodb-watcher Signed-off-by: MRGUOKING <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove package-lock.json
@chunfat-setsail @nodece @Zxilly plz review. |
Could plz also add support for module usage? |
"name": "mongodb-watcher", | ||
"version": "1.0.0", | ||
"description": "moggodb-watcher for node casbin", | ||
"main": "index.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be index.ts
.
private readonly collectionName: string; | ||
public client: MongoClient; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be only one blank line.
this.collectionName = collectionName; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be only one blank line.
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add Apache license to this project, and update ISC
to Apache
.
"ts-jest": "^27.0.2", | ||
"typescript": "^4.3.2" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add files
field to this.
Hi @MRGUOKING, your code has been reviewed. The following is todo list:
|
Setup eslint and prettier will be a good idea. |
|
Fix: #1
Signed-off-by: MRGUOKING [email protected]
Add Mongodb-watcher
Signed-off-by: MRGUOKING [email protected]