Skip to content

Commit

Permalink
fix(mojaloop/#2536): fspiop api version negotiation not handled by tr…
Browse files Browse the repository at this point in the history
…ansfers service

- chore: updated dependencies
    - updated dependencies
    - fixes for audit-resolve
    - added eslint* to ncurc file due to compatibility-issues with standard
    - added get-port to ncurc file due to breaking-changes/compatibility-issues with Node ES version support

- fix(mojaloop/#2536): fspiop api version negotiation not handled by transfers service - mojaloop/project#2536
    - added getOptionsForFSPIOPHeaderValidation to the plugin configuration
    - added new config key for PROTOCOL_VERSIONS to default and integration configs
    - added DEFAULT_PROTOCOL_VERSION for backward compatibility
  • Loading branch information
mdebarros committed Oct 20, 2021
1 parent abb42d7 commit 7b58ac8
Show file tree
Hide file tree
Showing 9 changed files with 1,576 additions and 1,689 deletions.
8 changes: 7 additions & 1 deletion .ncurc.json
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{}
{
"reject": [
"get-port",
"eslint",
"eslint-plugin-jest"
]
}
76 changes: 15 additions & 61 deletions audit-resolve.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,29 @@
{
"decisions": {
"1693|@mojaloop/central-services-shared>shins>sanitize-html>postcss": {
"1002401|@mojaloop/central-services-shared>widdershins>yargs>string-width>strip-ansi>ansi-regex": {
"decision": "ignore",
"madeAt": 1623336829070,
"expiresAt": 1623941956342
"madeAt": 1634725760759,
"expiresAt": 1635330551004
},
"1500|@mojaloop/central-services-shared>widdershins>yargs>yargs-parser": {
"1002401|@mojaloop/central-services-shared>widdershins>yargs>cliui>string-width>strip-ansi>ansi-regex": {
"decision": "ignore",
"madeAt": 1632824383964,
"expiresAt": 1633429176010
"madeAt": 1634725760759,
"expiresAt": 1635330551004
},
"1675|@mojaloop/central-services-shared>shins>sanitize-html": {
"1002865|@mojaloop/central-services-shared>shins>sanitize-html": {
"decision": "ignore",
"madeAt": 1632824386096,
"expiresAt": 1633429176010
"madeAt": 1634725766414,
"expiresAt": 1635330551004
},
"1673|@mojaloop/central-services-shared>openapi-backend>lodash": {
"decision": "fix",
"madeAt": 1622647812070
},
"1673|@mojaloop/central-services-shared>openapi-backend>mock-json-schema>lodash": {
"decision": "fix",
"madeAt": 1622647812070
},
"1673|@mojaloop/central-services-shared>shins>sanitize-html>lodash": {
"decision": "fix",
"madeAt": 1622647812070
},
"1677|npm-run-all>read-pkg>normalize-package-data>hosted-git-info": {
"decision": "fix",
"madeAt": 1622647824779
},
"1676|@mojaloop/central-services-shared>shins>sanitize-html": {
"1002866|@mojaloop/central-services-shared>shins>sanitize-html": {
"decision": "ignore",
"madeAt": 1632824386096,
"expiresAt": 1633429176010
"madeAt": 1634725766414,
"expiresAt": 1635330551004
},
"1500|00unidentified>widdershins>yargs>yargs-parser": {
"1003019|@mojaloop/central-services-shared>widdershins>yargs>yargs-parser": {
"decision": "ignore",
"madeAt": 1624635287496,
"expiresAt": 1627227258687
},
"1675|00unidentified>shins>sanitize-html": {
"decision": "ignore",
"madeAt": 1624635294717,
"expiresAt": 1627227258687
},
"1676|00unidentified>shins>sanitize-html": {
"decision": "ignore",
"madeAt": 1624635294717,
"expiresAt": 1627227258687
},
"1766|00unidentified>widdershins>urijs": {
"decision": "fix",
"madeAt": 1626888065939
},
"1770|@mojaloop/event-sdk>grpc>@mapbox/node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1628676837889
},
"1771|@mojaloop/event-sdk>grpc>@mapbox/node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1628676837889
},
"1780|@mojaloop/event-sdk>grpc>@mapbox/node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1631197164290
},
"1781|@mojaloop/event-sdk>grpc>@mapbox/node-pre-gyp>tar": {
"decision": "fix",
"madeAt": 1631197164290
"madeAt": 1634725768711,
"expiresAt": 1635330551004
}
},
"rules": {},
Expand Down
7 changes: 7 additions & 0 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"REAP_INTERVAL_MILLIS": 1000,
"CREATE_RETRY_INTERVAL_MILLIS": 200
},
"PROTOCOL_VERSIONS": {
"CONTENT": "1.0",
"ACCEPT": [
"1",
"1.0"
]
},
"DISPLAY_ROUTES": true,
"RUN_MIGRATIONS": true,
"ENDPOINT_CACHE_CONFIG": {
Expand Down
Loading

0 comments on commit 7b58ac8

Please sign in to comment.