@stonyx/rest-server 0.2.1-alpha.33 → 0.2.1-alpha.34
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 +6 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -15,6 +15,12 @@ REST server module for the [Stonyx framework](https://github.com/abofs/stonyx),
|
|
|
15
15
|
* **Singleton server:** Only one RestServer instance runs, preventing accidental multiple listeners.
|
|
16
16
|
* **Framework integration:** Works seamlessly as part of the Stonyx framework—auto-initialized with the rest of your modules.
|
|
17
17
|
|
|
18
|
+
## Usage reference
|
|
19
|
+
|
|
20
|
+
The sample request classes in [`test/sample/`](https://github.com/abofs/stonyx-rest-server/tree/dev/test/sample) are the canonical usage reference for this module; the integration tests run against them. They are not included in the npm package.
|
|
21
|
+
|
|
22
|
+
The package has a single export, `@stonyx/rest-server` (the `RestServer` default export and the named `Request` export). There are no subpath exports.
|
|
23
|
+
|
|
18
24
|
## RestServer
|
|
19
25
|
|
|
20
26
|
The `RestServer` class wraps an Express.js instance to provide:
|
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.34",
|
|
8
8
|
"description": "Rest Server Module for Stonyx Framework",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"cors": "^2.8.5",
|
|
38
38
|
"express": "^5.1.0",
|
|
39
|
-
"stonyx": "0.2.3-beta.
|
|
39
|
+
"stonyx": "0.2.3-beta.98"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@stonyx/utils": "0.2.3-beta.
|
|
42
|
+
"@stonyx/utils": "0.2.3-beta.27",
|
|
43
43
|
"@types/cors": "^2.8.17",
|
|
44
44
|
"@types/express": "^5.0.6",
|
|
45
45
|
"@types/node": "^25.5.2",
|