@mojaloop/central-services-shared 18.5.0 → 18.5.1
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/package.json +1 -1
- package/src/index.d.ts +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [18.5.1](https://github.com/mojaloop/central-services-shared/compare/v18.5.0...v18.5.1) (2024-06-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mojaloop/#3984:** add type definition for HeaderValidation ([#386](https://github.com/mojaloop/central-services-shared/issues/386)) ([3f79b90](https://github.com/mojaloop/central-services-shared/commit/3f79b90e87e2aeca669783bfc4f4d068055aaf58)), closes [mojaloop/#3984](https://github.com/mojaloop/project/issues/3984)
|
|
11
|
+
|
|
5
12
|
## [18.5.0](https://github.com/mojaloop/central-services-shared/compare/v18.4.0...v18.5.0) (2024-06-25)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -625,6 +625,17 @@ declare namespace CentralServicesShared {
|
|
|
625
625
|
decodePayload(input: string, options: Object): Object
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
+
interface HeaderValidation {
|
|
629
|
+
protocolVersions: { anyVersion: symbol, ONE: Array<string>, TWO: Array<string> },
|
|
630
|
+
protocolVersionsMap: Array<{ key: string, value: string }>,
|
|
631
|
+
getHubNameRegex(hubName: string): RegExp,
|
|
632
|
+
generateAcceptRegex(resource: string): RegExp,
|
|
633
|
+
generateContentTypeRegex(resource: string): RegExp,
|
|
634
|
+
parseAcceptHeader(resource: string, header: string): { valid: boolean, versions?: Set<string | symbol> },
|
|
635
|
+
parseContentTypeHeader(resource: string, header: string): { valid: boolean, version?: string },
|
|
636
|
+
convertSupportedVersionToExtensionList(supportedVersions: Array<number>): Array<{ key: string, value: string }>
|
|
637
|
+
}
|
|
638
|
+
|
|
628
639
|
interface Util {
|
|
629
640
|
Endpoints: Endpoints;
|
|
630
641
|
Participants: Participants;
|
|
@@ -633,6 +644,7 @@ declare namespace CentralServicesShared {
|
|
|
633
644
|
OpenapiBackend: any;
|
|
634
645
|
Request: Request;
|
|
635
646
|
StreamingProtocol: StreamingProtocol;
|
|
647
|
+
HeaderValidation: HeaderValidation;
|
|
636
648
|
}
|
|
637
649
|
|
|
638
650
|
const Enum: Enum
|