Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
List files to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliren committed Aug 24, 2020
1 parent 1039f38 commit b61c385
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ When creating a `SafeQuery` instance, you can customize the plugin as follows.
| ---- | ---- | ---- | ---- |
| `shouldWarn` | `() => boolean` | `setWarnCondition` | Whether a warning action should be run if there is any violation. Default to always return `true`. |
| `shouldThrow` | `() => boolean` | `setThrowCondition` | Whether an exception should be thrown if there is any violation. Default to always return `false`. |
| `checkField` | `FieldCheckHandler` | `setFieldCheckHandler` | See [Field Existence Check](#field-existence-config). |
| `checkIndex` | `IndexCheckHandler` | `setIndexCheckHandler` | See [Index Coverage Check](#index-coverage-config). |
| `checkField` | `FieldCheckHandler` | `setFieldCheckHandler` | See [Field Existence Config](#field-existence-config). |
| `checkIndex` | `IndexCheckHandler` | `setIndexCheckHandler` | See [Index Coverage Config](#index-coverage-config). |

- For convenience, you can pass in a boolean constant to `setWarnCondition` and `setThrowCondition` if no dynamic evaluation is needed.

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"description": "A mongoose plugin that verifies the fields in a query",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/src/*"
],
"scripts": {
"tsc": "tsc -p tsconfig.json",
"prepublishOnly": "npm run tsc",
"test": "mocha test/**/test*.ts"
},
"directories": {
"src": "./src",
"lib": "./src",
"test": "./test"
},
"devDependencies": {
Expand Down

0 comments on commit b61c385

Please sign in to comment.