Skip to content

Commit 90415ee

Browse files
authored
feat: add way to add prior post quotes context to iso req (#218)
* feat: add way to add prior post quotes context to iso req * fix: test * chore: remove unneeded configuration
1 parent 924eb84 commit 90415ee

6 files changed

Lines changed: 96 additions & 66 deletions

File tree

‎package-lock.json‎

Lines changed: 28 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
],
4242
"dependencies": {
43-
"@mojaloop/ml-schema-transformer-lib": "^1.1.6",
43+
"@mojaloop/ml-schema-transformer-lib": "^2.0.1",
4444
"base64url": "3.0.1",
4545
"fast-safe-stringify": "^2.1.1",
4646
"ilp-packet": "3.1.3",
@@ -63,15 +63,15 @@
6363
"devDependencies": {
6464
"@mojaloop/api-snippets": "^17.7.2",
6565
"@types/jest": "^29.5.14",
66-
"@types/node": "^22.7.9",
66+
"@types/node": "^22.8.1",
6767
"audit-ci": "^7.1.0",
6868
"eslint": "8.57.0",
6969
"eslint-config-airbnb-base": "15.0.0",
7070
"eslint-plugin-import": "2.31.0",
7171
"jest": "^29.7.0",
7272
"jest-junit": "^16.0.0",
7373
"nock": "^13.5.5",
74-
"npm-check-updates": "^17.1.4",
74+
"npm-check-updates": "^17.1.8",
7575
"pre-commit": "^1.2.2",
7676
"replace": "^1.2.2",
7777
"standard-version": "^9.5.0",

‎src/lib/requests/apiTransformer.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ApiTransformer {
3434
}
3535
}
3636

37-
async transformOutboundRequest(resourceType, method, { body, headers, params, isError }){
37+
async transformOutboundRequest(resourceType, method, { body, headers, params, isError, $context }){
3838
// we only need to translate the body if we are not in FSPIOP mode...
3939
// and there is a translation available for the specific resource type
4040
if(this._apiType === ApiType.FSPIOP || !TransformFacades.FSPIOP[resourceType]) {
@@ -46,6 +46,7 @@ class ApiTransformer {
4646
headers: headers,
4747
body: body,
4848
params: params,
49+
$context
4950
};
5051

5152
// seems a bit backwards to call the facade for transforming to ISO "FSPIOP" but here we are.

0 commit comments

Comments
 (0)