adapt-authoring-api 2.1.2 → 2.1.4
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.
- package/lib/AbstractApiModule.js +1 -1
- package/package.json +3 -3
package/lib/AbstractApiModule.js
CHANGED
|
@@ -636,7 +636,7 @@ class AbstractApiModule extends AbstractModule {
|
|
|
636
636
|
if (options.strict !== false && !results.length) {
|
|
637
637
|
throw this.app.errors.NOT_FOUND.setData({ id: query, type: options.schemaName })
|
|
638
638
|
}
|
|
639
|
-
return results[0]
|
|
639
|
+
return results[0] ?? null
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"lodash": "^4.17.21"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"adapt-authoring-auth": "^
|
|
18
|
+
"adapt-authoring-auth": "^2.0.0",
|
|
19
19
|
"adapt-authoring-jsonschema": "^1.2.0",
|
|
20
20
|
"adapt-authoring-mongodb": "^3.0.0",
|
|
21
|
-
"adapt-authoring-server": "^
|
|
21
|
+
"adapt-authoring-server": "^2.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@semantic-release/git": "^10.0.1",
|