@node-i3x/rest-server 0.1.0 → 0.2.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/README.md +9 -3
- package/package.json +33 -19
package/README.md
CHANGED
|
@@ -18,9 +18,6 @@ This package is the **inbound adapter** in the [hexagonal architecture](https://
|
|
|
18
18
|
npm install @node-i3x/rest-server
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
> [!NOTE]
|
|
22
|
-
> This package is published on the private **@sterfive** npm registry at `npm-registry.sterfive.fr`.
|
|
23
|
-
|
|
24
21
|
## Usage
|
|
25
22
|
|
|
26
23
|
```typescript
|
|
@@ -122,6 +119,13 @@ interface RestServerDeps {
|
|
|
122
119
|
|
|
123
120
|
## Architecture
|
|
124
121
|
|
|
122
|
+
<!-- mermaid-img -->
|
|
123
|
+
<p align="center">
|
|
124
|
+
<img src="https://mermaid.ink/svg/Z3JhcGggVEQKICAgIENMSUVOVFsiSFRUUCBDbGllbnQiXSAtLT4gRkFTVElGWVsiRmFzdGlmeSBJbnN0YW5jZSJdCgogICAgc3ViZ3JhcGggIkBub2RlLWkzeC9yZXN0LXNlcnZlciIKICAgICAgICBGQVNUSUZZIC0tPiBNV1siTWlkZGxld2FyZSJdCiAgICAgICAgTVcgLS0+IHwicmVxdWVzdC1pZCJ8IFJPVVRFUwogICAgICAgIE1XIC0tPiB8IkNPUlMifCBST1VURVMKCiAgICAgICAgc3ViZ3JhcGggUk9VVEVTWyJSb3V0ZSBQbHVnaW5zIl0KICAgICAgICAgICAgUjFbIi9oZWFsdGgsIC9yZWFkeSJdCiAgICAgICAgICAgIFIyWyIvdjEvaW5mbyJdCiAgICAgICAgICAgIFIzWyIvdjEvbmFtZXNwYWNlcyJdCiAgICAgICAgICAgIFI0WyIvdjEvb2JqZWN0dHlwZXMiXQogICAgICAgICAgICBSNVsiL3YxL29iamVjdHMvKiJdCiAgICAgICAgICAgIFI2WyIvdjEvc3Vic2NyaXB0aW9ucy8qIl0KICAgICAgICAgICAgUjdbIi92MS9yZWxhdGlvbnNoaXB0eXBlcyJdCiAgICAgICAgZW5kCgogICAgICAgIFJPVVRFUyAtLT4gRVJSWyJFcnJvciBIYW5kbGVyIl0KICAgIGVuZAoKICAgIHN1YmdyYXBoICJAbm9kZS1pM3gvY29yZSIKICAgICAgICBNU1siTW9kZWxTZXJ2aWNlIl0KICAgICAgICBWU1siVmFsdWVTZXJ2aWNlIl0KICAgICAgICBIU1siSGlzdG9yeVNlcnZpY2UiXQogICAgICAgIFNTWyJTdWJzY3JpcHRpb25TZXJ2aWNlIl0KICAgICAgICBEU1siSURhdGFTb3VyY2VQb3J0Il0KICAgIGVuZAoKICAgIFIzIC0tPiBEUwogICAgUjQgLS0+IERTCiAgICBSNSAtLT4gTVMKICAgIFI1IC0tPiBWUwogICAgUjUgLS0+IEhTCiAgICBSNiAtLT4gU1M=" alt="diagram" />
|
|
125
|
+
</p>
|
|
126
|
+
|
|
127
|
+
<details><summary>Diagram source (mermaid)</summary>
|
|
128
|
+
|
|
125
129
|
```mermaid
|
|
126
130
|
graph TD
|
|
127
131
|
CLIENT["HTTP Client"] --> FASTIFY["Fastify Instance"]
|
|
@@ -160,6 +164,8 @@ graph TD
|
|
|
160
164
|
R6 --> SS
|
|
161
165
|
```
|
|
162
166
|
|
|
167
|
+
</details>
|
|
168
|
+
|
|
163
169
|
## Key Exports
|
|
164
170
|
|
|
165
171
|
| Export | Kind | Description |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-i3x/rest-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "i3X REST inbound adapter — Fastify routes for the i3X Beta API",
|
|
5
5
|
"license": "AGPL-3.0-or-later OR LicenseRef-Sterfive-Commercial",
|
|
6
6
|
"author": "Sterfive SAS <contact@sterfive.com> (https://sterfive.com)",
|
|
@@ -18,33 +18,47 @@
|
|
|
18
18
|
"type": "commercial",
|
|
19
19
|
"url": "https://sterfive.com"
|
|
20
20
|
},
|
|
21
|
-
"keywords": [
|
|
21
|
+
"keywords": [
|
|
22
|
+
"opcua",
|
|
23
|
+
"opc-ua",
|
|
24
|
+
"i3x",
|
|
25
|
+
"rest-api",
|
|
26
|
+
"rest",
|
|
27
|
+
"fastify",
|
|
28
|
+
"industrial",
|
|
29
|
+
"iiot",
|
|
30
|
+
"iot",
|
|
31
|
+
"automation",
|
|
32
|
+
"digital-twin",
|
|
33
|
+
"sterfive"
|
|
34
|
+
],
|
|
22
35
|
"type": "module",
|
|
23
|
-
"main": "./
|
|
24
|
-
"types": "./
|
|
36
|
+
"main": "./dist/index.js",
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
25
38
|
"exports": {
|
|
26
|
-
".":
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./dist/index.d.ts",
|
|
41
|
+
"import": "./dist/index.js"
|
|
42
|
+
}
|
|
27
43
|
},
|
|
28
44
|
"publishConfig": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
|
-
"exports": {
|
|
33
|
-
".": {
|
|
34
|
-
"types": "./dist/index.d.ts",
|
|
35
|
-
"import": "./dist/index.js"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
45
|
+
"access": "public",
|
|
46
|
+
"provenance": true
|
|
38
47
|
},
|
|
39
|
-
"files": [
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"LICENSE",
|
|
51
|
+
"LICENSE-AGPL-3.0",
|
|
52
|
+
"LICENSING.md"
|
|
53
|
+
],
|
|
40
54
|
"scripts": {
|
|
41
55
|
"build": "tsup",
|
|
42
56
|
"typecheck": "tsc --noEmit"
|
|
43
57
|
},
|
|
44
58
|
"dependencies": {
|
|
45
|
-
"@node-i3x/core": "
|
|
46
|
-
"fastify": "^5.
|
|
47
|
-
"@fastify/cors": "^11.
|
|
48
|
-
"fastify-plugin": "^
|
|
59
|
+
"@node-i3x/core": "0.2.4",
|
|
60
|
+
"fastify": "^5.8.5",
|
|
61
|
+
"@fastify/cors": "^11.2.0",
|
|
62
|
+
"fastify-plugin": "^6.0.0"
|
|
49
63
|
}
|
|
50
64
|
}
|