Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: Add Mongodb-watcher #2

wants to merge 1 commit into from

Conversation

MRGUOKING
Copy link

@MRGUOKING MRGUOKING commented Jun 6, 2021

Fix: #1

Signed-off-by: MRGUOKING [email protected]

Add Mongodb-watcher

Signed-off-by: MRGUOKING [email protected]

Signed-off-by: MRGUOKING <[email protected]>

Add Mongodb-watcher

Signed-off-by: MRGUOKING <[email protected]>
@hsluoyz hsluoyz requested review from nodece and Zxilly June 6, 2021 06:41
Copy link
Member

@hsluoyz hsluoyz left a 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

@hsluoyz
Copy link
Member

hsluoyz commented Jun 6, 2021

@chunfat-setsail @nodece @Zxilly plz review.

@Zxilly
Copy link

Zxilly commented Jun 6, 2021

Could plz also add support for module usage?

"name": "mongodb-watcher",
"version": "1.0.0",
"description": "moggodb-watcher for node casbin",
"main": "index.js",
Copy link

@nodece nodece Jun 6, 2021

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;


Copy link

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;
}


Copy link

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",
Copy link

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"
}
}
Copy link

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.

@nodece
Copy link

nodece commented Jun 6, 2021

Hi @MRGUOKING, your code has been reviewed.

The following is todo list:

  1. add REAMDE.md, and provide the module usage
  2. format your code by prettier

@Zxilly
Copy link

Zxilly commented Jun 6, 2021

Setup eslint and prettier will be a good idea.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a Mongodb watcher
5 participants