@stonyx/rest-server 0.2.1-alpha.6 → 0.2.1-alpha.8
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/README.md +4 -0
- package/config/environment.js +1 -1
- package/package.json +2 -2
- package/src/main.js +3 -1
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
[](https://github.com/abofs/stonyx-rest-server/actions/workflows/ci.yml)
|
|
2
|
+
[](https://www.npmjs.com/package/@stonyx/rest-server)
|
|
3
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
4
|
+
|
|
1
5
|
# @stonyx/rest-server
|
|
2
6
|
|
|
3
7
|
REST server module for the [Stonyx framework](https://github.com/abofs/stonyx), providing dynamic route registration and built-in request handling with optional authentication hooks.
|
package/config/environment.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"stonyx-async",
|
|
5
5
|
"stonyx-module"
|
|
6
6
|
],
|
|
7
|
-
"version": "0.2.1-alpha.
|
|
7
|
+
"version": "0.2.1-alpha.8",
|
|
8
8
|
"description": "Rest Server Module for Stonyx Framework",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"cors": "^2.8.5",
|
|
34
34
|
"express": "^5.1.0",
|
|
35
|
-
"stonyx": "0.2.3-beta.
|
|
35
|
+
"stonyx": "0.2.3-beta.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@stonyx/utils": "0.2.3-beta.7",
|
package/src/main.js
CHANGED
|
@@ -33,7 +33,9 @@ export default class RestServer {
|
|
|
33
33
|
static close() {
|
|
34
34
|
if (!RestServer.instance) throw new Error('RestServer has not been initialized yet');
|
|
35
35
|
|
|
36
|
-
RestServer.instance
|
|
36
|
+
const { server } = RestServer.instance;
|
|
37
|
+
server.closeAllConnections();
|
|
38
|
+
server.close();
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
async init() {
|