@mojaloop/central-services-shared 15.3.0-snapshot.1 → 16.0.0

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 CHANGED
@@ -2,6 +2,17 @@
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
+ ## [16.0.0](https://github.com/mojaloop/central-services-shared/compare/v15.3.0...v16.0.0) (2022-03-03)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **mojaloop/#2704:** - headerValidation.FSPIOPHeaderValidation now expects the`supportedProtocolContentVersions` options argument to be a list, the same as `supportedProtocolAcceptVersions`
11
+
12
+ ### Features
13
+
14
+ * **mojaloop/#2704:** core-services support for non-breaking backward api compatibility ([#325](https://github.com/mojaloop/central-services-shared/issues/325)) ([cb81f7e](https://github.com/mojaloop/central-services-shared/commit/cb81f7ec92376e0d6ce45e2ce046379ce1996167)), closes [mojaloop/#2704](https://github.com/mojaloop/central-services-shared/issues/2704) [mojaloop/#2704](https://github.com/mojaloop/central-services-shared/issues/2704)
15
+
5
16
  ## [15.3.0](https://github.com/mojaloop/central-services-shared/compare/v15.2.0...v15.3.0) (2022-02-07)
6
17
 
7
18
 
@@ -93,6 +93,16 @@
93
93
  "decision": "ignore",
94
94
  "madeAt": 1644227622831,
95
95
  "expiresAt": 1646819457744
96
+ },
97
+ "1007050|widdershins>urijs": {
98
+ "decision": "ignore",
99
+ "madeAt": 1646234133511,
100
+ "expiresAt": 1648826119845
101
+ },
102
+ "1007017|widdershins>swagger2openapi>oas-validator>ajv": {
103
+ "decision": "ignore",
104
+ "madeAt": 1646234136454,
105
+ "expiresAt": 1648826119845
96
106
  }
97
107
  },
98
108
  "rules": {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/central-services-shared",
3
- "version": "15.3.0-snapshot.1",
3
+ "version": "16.0.0",
4
4
  "description": "Shared code for mojaloop central services",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@hapi/catbox": "11.1.1",
50
50
  "@hapi/catbox-memory": "5.0.1",
51
- "axios": "0.25.0",
51
+ "axios": "0.26.0",
52
52
  "clone": "2.1.2",
53
53
  "dotenv": "16.0.0",
54
54
  "env-var": "7.1.1",
@@ -56,8 +56,8 @@
56
56
  "immutable": "4.0.0",
57
57
  "lodash": "4.17.21",
58
58
  "mustache": "4.2.0",
59
- "openapi-backend": "5.2.0",
60
- "raw-body": "2.4.2",
59
+ "openapi-backend": "5.2.1",
60
+ "raw-body": "2.5.1",
61
61
  "rc": "1.2.8",
62
62
  "shins": "2.6.0",
63
63
  "uuid4": "2.0.2",
@@ -77,7 +77,7 @@
77
77
  "base64url": "3.0.1",
78
78
  "chance": "1.1.8",
79
79
  "npm-audit-resolver": "2.3.1",
80
- "npm-check-updates": "12.2.1",
80
+ "npm-check-updates": "12.5.0",
81
81
  "nyc": "15.1.0",
82
82
  "pre-commit": "1.2.2",
83
83
  "proxyquire": "2.1.3",
@@ -87,7 +87,7 @@
87
87
  "standard-version": "9.3.2",
88
88
  "tap-spec": "^5.0.0",
89
89
  "tap-xunit": "2.4.1",
90
- "tape": "5.5.0",
90
+ "tape": "5.5.2",
91
91
  "tapes": "4.1.0"
92
92
  },
93
93
  "peerDependencies": {
@@ -97,7 +97,8 @@ const plugin = {
97
97
  errorMessages.INVALID_CONTENT_TYPE_HEADER
98
98
  )
99
99
  }
100
- if (!supportedProtocolContentVersions.includes(contentType.version)) {
100
+ // if (!supportedProtocolContentVersions.includes(contentType.version)) {
101
+ if (!supportedProtocolContentVersions.some(supportedVer => contentType.version === supportedVer)) {
101
102
  const supportedVersionExtensionListMap = convertSupportedVersionToExtensionList(supportedProtocolContentVersions)
102
103
  throw createFSPIOPError(
103
104
  Enums.FSPIOPErrorCodes.UNACCEPTABLE_VERSION,
@@ -107,7 +108,6 @@ const plugin = {
107
108
  supportedVersionExtensionListMap
108
109
  )
109
110
  }
110
-
111
111
  return h.continue
112
112
  })
113
113
  }