@node-i3x/rest-server 0.1.0 → 0.2.3

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.
Files changed (2) hide show
  1. package/README.md +9 -3
  2. package/package.json +29 -16
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.1.0",
3
+ "version": "0.2.3",
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,31 +18,44 @@
18
18
  "type": "commercial",
19
19
  "url": "https://sterfive.com"
20
20
  },
21
- "keywords": ["opcua", "opc-ua", "i3x", "rest-api", "rest", "fastify", "industrial", "iiot", "iot", "automation", "digital-twin", "sterfive"],
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": "./src/index.ts",
24
- "types": "./src/index.ts",
36
+ "main": "./dist/index.js",
37
+ "types": "./dist/index.d.ts",
25
38
  "exports": {
26
- ".": "./src/index.ts"
39
+ ".": {
40
+ "types": "./dist/index.d.ts",
41
+ "import": "./dist/index.js"
42
+ }
27
43
  },
28
44
  "publishConfig": {
29
- "provenance": true,
30
- "main": "./dist/index.js",
31
- "types": "./dist/index.d.ts",
32
- "exports": {
33
- ".": {
34
- "types": "./dist/index.d.ts",
35
- "import": "./dist/index.js"
36
- }
37
- }
45
+ "provenance": true
38
46
  },
39
- "files": ["dist", "LICENSE", "LICENSE-AGPL-3.0", "LICENSING.md"],
47
+ "files": [
48
+ "dist",
49
+ "LICENSE",
50
+ "LICENSE-AGPL-3.0",
51
+ "LICENSING.md"
52
+ ],
40
53
  "scripts": {
41
54
  "build": "tsup",
42
55
  "typecheck": "tsc --noEmit"
43
56
  },
44
57
  "dependencies": {
45
- "@node-i3x/core": "*",
58
+ "@node-i3x/core": "0.2.3",
46
59
  "fastify": "^5.0.0",
47
60
  "@fastify/cors": "^11.0.0",
48
61
  "fastify-plugin": "^5.0.0"