@feasibleone/blong-openapi 0.0.1 → 1.0.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.
- package/CHANGELOG.md +31 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestrator/openapi.js +5 -0
- package/dist/orchestrator/openapi.js.map +1 -0
- package/dist/server.js +24 -0
- package/dist/server.js.map +1 -0
- package/package.json +30 -11
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.3](https://github.com/feasibleone/blong/compare/blong-openapi-v1.0.2...blong-openapi-v1.0.3) (2026-02-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add package.json to tsconfig include paths ([f04ce45](https://github.com/feasibleone/blong/commit/f04ce45eac322ce70edee4b595b63cddbd323b50))
|
|
9
|
+
|
|
10
|
+
## [1.0.2](https://github.com/feasibleone/blong/compare/blong-openapi-v1.0.1...blong-openapi-v1.0.2) (2026-02-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update pino to version 10.3.1 and refactor logging configuration ([c2cd894](https://github.com/feasibleone/blong/commit/c2cd894b03737df1f6d341f3d1d8f85176236ddc))
|
|
16
|
+
|
|
17
|
+
## [1.0.1](https://github.com/feasibleone/blong/compare/blong-openapi-v1.0.0...blong-openapi-v1.0.1) (2026-02-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* watch and types ([19f82db](https://github.com/feasibleone/blong/commit/19f82db37f38d6f769551b24c6b205b978753ece))
|
|
23
|
+
|
|
24
|
+
## 1.0.0 (2026-02-03)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* implement rest-fs extension ([29589ff](https://github.com/feasibleone/blong/commit/29589ff7d57cb078b36c9df36ce27f513b9a8b3a))
|
|
30
|
+
* update @rushstack/heft and related plugins to latest versions ([f6a6f26](https://github.com/feasibleone/blong/commit/f6a6f26bdfd9cc95cb1322461aa494f5345bd821))
|
|
31
|
+
* update dependencies across multiple packages ([03269a5](https://github.com/feasibleone/blong/commit/03269a57405c53a3d6f16f7531f82cde2a31c5cc))
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { server } from '@feasibleone/blong';
|
|
2
|
+
const openapiServer = server(blong => ({
|
|
3
|
+
url: import.meta.url,
|
|
4
|
+
validation: blong.type.Object({
|
|
5
|
+
openapi: blong.type.Object({}),
|
|
6
|
+
}),
|
|
7
|
+
children: ['../blong-openapi'],
|
|
8
|
+
config: {
|
|
9
|
+
default: {},
|
|
10
|
+
},
|
|
11
|
+
}));
|
|
12
|
+
const openapi = async (load, config) => {
|
|
13
|
+
const realms = await Promise.all([
|
|
14
|
+
load(openapiServer, 'impl', config, ['microservice', 'integration', 'dev']),
|
|
15
|
+
]);
|
|
16
|
+
for (const realm of realms)
|
|
17
|
+
await realm.start();
|
|
18
|
+
};
|
|
19
|
+
export default async (load) => openapi(load, {
|
|
20
|
+
'blong-openapi': {
|
|
21
|
+
openapi: {
|
|
22
|
+
api: {
|
|
23
|
+
namespace: {
|
|
24
|
+
time: [
|
|
25
|
+
'../test/api/world-time.yaml',
|
|
26
|
+
'../test/api/world-time.operations.yaml',
|
|
27
|
+
// {servers: [{url: 'http://localhost:8081'}]},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAE1C,M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@ -0,0 +1,24 @@
|
|
|
1
|
+
import { realm } from '@feasibleone/blong';
|
|
2
|
+
export default realm(blong => ({
|
|
3
|
+
url: import.meta.url,
|
|
4
|
+
validation: blong.type.Object({
|
|
5
|
+
openapi: blong.type.Object({}),
|
|
6
|
+
}),
|
|
7
|
+
children: ['./orchestrator'],
|
|
8
|
+
config: {
|
|
9
|
+
default: {
|
|
10
|
+
openapi: {
|
|
11
|
+
logLevel: 'trace',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
dev: {},
|
|
15
|
+
microservice: {
|
|
16
|
+
orchestrator: true,
|
|
17
|
+
gateway: {
|
|
18
|
+
port: 8081,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
integration: {},
|
|
22
|
+
},
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAEzC,eAAe,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACpB,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;QAC1B,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;KACjC,CAAC;IACF,QAAQ,EAAE,CAAC,gBAAgB,CAAC;IAC5B,MAAM,EAAE;QACJ,OAAO,EAAE;YACL,OAAO,EAAE;gBACL,QAAQ,EAAE,OAAO;aACpB;SACJ;QACD,GAAG,EAAE,EAAE;QACP,YAAY,EAAE;YACV,YAAY,EAAE,IAAI;YAClB,OAAO,EAAE;gBACL,IAAI,EAAE,IAAI;aACb;SACJ;QACD,WAAW,EAAE,EAAE;KAClB;CACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"name": "@feasibleone/blong-openapi",
|
|
3
|
+
"exports": {
|
|
4
|
+
"./server.js": "./dist/server.js",
|
|
5
|
+
"./server.ts": "./server.ts",
|
|
6
|
+
"./browser.js": "./dist/browser.js",
|
|
7
|
+
"./browser.ts": "./browser.ts",
|
|
8
|
+
"./dist/package.json": "./package.json",
|
|
9
|
+
"./package.json": "./package.json"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"url": "git+https://github.com/feasibleone/blong.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"version": "1.0.3",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@feasibleone/blong": "^1.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@rushstack/eslint-config": "^4.0.1",
|
|
21
|
+
"@rushstack/heft": "^1.1.11",
|
|
22
|
+
"@rushstack/heft-lint-plugin": "^1.1.14",
|
|
23
|
+
"@rushstack/heft-typescript-plugin": "^1.1.11",
|
|
24
|
+
"eslint": "~9.39.2",
|
|
25
|
+
"typescript": "^5.9.3"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "heft build --clean",
|
|
29
|
+
"ci-publish": "node ../../common/scripts/install-run-rush-pnpm.js publish --access public --provenance"
|
|
30
|
+
}
|
|
31
|
+
}
|