adapt-authoring-server 1.2.0 → 1.2.2
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/ServerModule.js +2 -4
- package/package.json +16 -3
package/lib/ServerModule.js
CHANGED
|
@@ -19,10 +19,8 @@ class ServerModule extends AbstractModule {
|
|
|
19
19
|
* The router responsible for handling all APIs
|
|
20
20
|
* @type {Router}
|
|
21
21
|
*/
|
|
22
|
-
this.api = new Router('/api', this.expressApp, [
|
|
23
|
-
|
|
24
|
-
handlers: { get: (req, res) => res.json(this.api?.map) }
|
|
25
|
-
}], [ServerUtils.debugRequestTime])
|
|
22
|
+
this.api = new Router('/api', this.expressApp, [], [ServerUtils.debugRequestTime])
|
|
23
|
+
this.api.expressRouter.get('/', (req, res) => res.json(this.api?.map))
|
|
26
24
|
/**
|
|
27
25
|
* The default/'root' router for the application
|
|
28
26
|
* @type {Router}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Provides an Express application routing and more",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-server",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
"lodash": "^4.17.21"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"adapt-authoring-core": "
|
|
16
|
+
"adapt-authoring-core": "^1.7.0"
|
|
17
|
+
},
|
|
18
|
+
"peerDependenciesMeta": {
|
|
19
|
+
"adapt-authoring-core": {
|
|
20
|
+
"optional": true
|
|
21
|
+
}
|
|
17
22
|
},
|
|
18
23
|
"devDependencies": {
|
|
19
24
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -37,7 +42,15 @@
|
|
|
37
42
|
],
|
|
38
43
|
"@semantic-release/npm",
|
|
39
44
|
"@semantic-release/github",
|
|
40
|
-
|
|
45
|
+
[
|
|
46
|
+
"@semantic-release/git",
|
|
47
|
+
{
|
|
48
|
+
"assets": [
|
|
49
|
+
"package.json"
|
|
50
|
+
],
|
|
51
|
+
"message": "Chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
41
54
|
]
|
|
42
55
|
}
|
|
43
56
|
}
|