adapt-authoring-api 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ name: Standard.js formatting check
2
+ on: push
3
+ jobs:
4
+ default:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@master
8
+ - uses: actions/setup-node@master
9
+ with:
10
+ node-version: 'lts/*'
11
+ cache: 'npm'
12
+ - run: npm ci
13
+ - run: npx standard
@@ -413,6 +413,8 @@ class AbstractApiModule extends AbstractModule {
413
413
  // remove any valid query keys from the options
414
414
  Object.keys(req.apiData.query).forEach(key => delete opts[key])
415
415
 
416
+ await this.requestHook.invoke(req)
417
+
416
418
  await this.setUpPagination(req, res, mongoOpts)
417
419
 
418
420
  let results = await this.find(req.apiData.query, opts, mongoOpts)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-api",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Abstract module for creating APIs",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-api",
6
6
  "license": "GPL-3.0",
@@ -17,7 +17,6 @@
17
17
  "adapt-authoring-mongodb": "github:adapt-security/adapt-authoring-mongodb"
18
18
  },
19
19
  "devDependencies": {
20
- "eslint": "^9.14.0",
21
20
  "standard": "^17.1.0",
22
21
  "@semantic-release/commit-analyzer": "^9.0.2",
23
22
  "@semantic-release/git": "^10.0.1",
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- node_modules
package/.eslintrc DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "env": {
3
- "browser": false,
4
- "node": true,
5
- "commonjs": false,
6
- "es2020": true
7
- },
8
- "extends": [
9
- "standard"
10
- ],
11
- "parserOptions": {
12
- "ecmaVersion": 2020
13
- }
14
- }