@feasibleone/blong 1.12.3 → 1.12.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/CHANGELOG.md +7 -0
- package/dist/types.d.ts +4 -2
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
- package/types.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.12.4](https://github.com/feasibleone/blong/compare/blong-v1.12.3...blong-v1.12.4) (2026-03-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* type generation ([425c3ca](https://github.com/feasibleone/blong/commit/425c3cac5863253c39138a3245be876f0e0a74dd))
|
|
9
|
+
|
|
3
10
|
## [1.12.3](https://github.com/feasibleone/blong/compare/blong-v1.12.2...blong-v1.12.3) (2026-03-23)
|
|
4
11
|
|
|
5
12
|
|
package/dist/types.d.ts
CHANGED
|
@@ -18039,6 +18039,8 @@ export type LibFn = <T>(...params: unknown[]) => T;
|
|
|
18039
18039
|
export interface IRemoteHandler {
|
|
18040
18040
|
[name: string]: PortHandlerBound;
|
|
18041
18041
|
}
|
|
18042
|
+
export interface ISchema {
|
|
18043
|
+
}
|
|
18042
18044
|
export interface IHandlerProxy<T> {
|
|
18043
18045
|
config: T;
|
|
18044
18046
|
handler: {
|
|
@@ -18046,7 +18048,7 @@ export interface IHandlerProxy<T> {
|
|
|
18046
18048
|
params?: object;
|
|
18047
18049
|
cause?: Error;
|
|
18048
18050
|
}) => ITypedError;
|
|
18049
|
-
} & IRemoteHandler;
|
|
18051
|
+
} & ISchema & IRemoteHandler;
|
|
18050
18052
|
lib: ILib & {
|
|
18051
18053
|
[name: string]: LibFn;
|
|
18052
18054
|
};
|
|
@@ -18105,7 +18107,7 @@ export declare const library: <T = Record<string, unknown>>(definition: Lib<T>)
|
|
|
18105
18107
|
export declare const validation: (validation: ValidationDefinition) => ValidationDefinition;
|
|
18106
18108
|
export declare const api: (api: ApiDefinition) => ApiDefinition;
|
|
18107
18109
|
export declare const validationHandlers: (handlers: Record<string, TFunction<[
|
|
18108
|
-
|
|
18110
|
+
ApiSchema
|
|
18109
18111
|
]>>) => ValidationDefinition;
|
|
18110
18112
|
export declare const realm: <T extends TObject>(definition: SolutionFactory<T>) => SolutionFactory<T>;
|
|
18111
18113
|
export declare const server: <T extends TObject>(definition: SolutionFactory<T>) => SolutionFactory<T>;
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,IAAI,GAWP,MAAM,SAAS,CAAC;AAMjB,OAAO,KAAK,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,IAAI,GAWP,MAAM,SAAS,CAAC;AAMjB,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAilBtC,MAAM,IAAI,GAAW,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAG9C,MAAM,OAAgB,QAAQ;IAC1B,IAAI,CAAQ;IACF,GAAG,CAA8B;IAC3C,YAAmB,GAAiB;QAChC,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAC;IACzB,CAAC;IACS,KAAK,GAAkB,CAAC,GAAG,IAA+B,EAAE,EAAE;QACpE,MAAM,MAAM,GAAG,KAAK,CAAqB,GAAG,IAAI,CAAC,CAAC;QAClD,IAAI,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI;YAC5B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAC,CAAC,CAAC;QAChF,OAAO,MAA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,EAAqB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEzF,eAAe;IACX,OAAO;IACP,OAAO;IACP,UAAU;IACV,GAAG;IACH,KAAK;IACL,MAAM;IACN,OAAO;IACP,OAAO;IACP,YAAY;IACZ,IAAI;CACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feasibleone/blong",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4",
|
|
4
4
|
"description": "API and DRY focused RAD framework https://feasibleone.github.io/blong-docs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blong",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@rushstack/heft": "^1.2.6",
|
|
31
31
|
"@rushstack/heft-lint-plugin": "^1.2.6",
|
|
32
32
|
"@rushstack/heft-typescript-plugin": "^1.3.1",
|
|
33
|
-
"@slack/types": "^2.20.
|
|
33
|
+
"@slack/types": "^2.20.1",
|
|
34
34
|
"@slack/webhook": "^7.0.7",
|
|
35
35
|
"@types/request": "^2.48.13",
|
|
36
36
|
"@types/ut-function.merge": "file:./types/ut-function.merge",
|
package/types.ts
CHANGED
|
@@ -569,13 +569,15 @@ export type LibFn = <T>(...params: unknown[]) => T;
|
|
|
569
569
|
export interface IRemoteHandler {
|
|
570
570
|
[name: string]: PortHandlerBound;
|
|
571
571
|
}
|
|
572
|
+
export interface ISchema {}
|
|
572
573
|
export interface IHandlerProxy<T> {
|
|
573
574
|
config: T;
|
|
574
575
|
handler: {
|
|
575
576
|
[name: `error${string}`]: (
|
|
576
577
|
message?: string | {params?: object; cause?: Error},
|
|
577
578
|
) => ITypedError;
|
|
578
|
-
} &
|
|
579
|
+
} & ISchema &
|
|
580
|
+
IRemoteHandler;
|
|
579
581
|
lib: ILib & {
|
|
580
582
|
[name: string]: LibFn;
|
|
581
583
|
};
|
|
@@ -653,7 +655,7 @@ export const api = (api: ApiDefinition): ApiDefinition =>
|
|
|
653
655
|
Object.defineProperty(api, Kind, {value: 'api'});
|
|
654
656
|
|
|
655
657
|
export const validationHandlers: (
|
|
656
|
-
handlers: Record<string, TFunction<[
|
|
658
|
+
handlers: Record<string, TFunction<[ApiSchema]>>,
|
|
657
659
|
) => ValidationDefinition = handlers =>
|
|
658
660
|
validation(() =>
|
|
659
661
|
Object.fromEntries(
|