@k-int/stripes-kint-components 5.6.0 → 5.6.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [5.6.1](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.6.0...v5.6.1) (2024-04-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ERM-3194 Always display error message if delete of picklist value unsuccessful ([f58d971](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/commit/f58d9710238730d6d65b3f348106892daec0d54e))
7
+
1
8
  # [5.6.0](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.5.2...v5.6.0) (2024-04-04)
2
9
 
3
10
 
@@ -6,7 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  const parseErrorResponse = async responseObj => {
8
8
  var _ref;
9
- let errorResp;
9
+ let errorResp = {
10
+ message: 'something went wrong'
11
+ };
12
+ if (!responseObj) {
13
+ return errorResp;
14
+ }
10
15
  const code = responseObj === null || responseObj === void 0 ? void 0 : responseObj.status;
11
16
  const contentType = (_ref = [...(responseObj === null || responseObj === void 0 ? void 0 : responseObj.headers)]) === null || _ref === void 0 || (_ref = _ref.find(header => header[0] === 'content-type')) === null || _ref === void 0 ? void 0 : _ref[1];
12
17
  if (contentType.includes('json')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/stripes-kint-components",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "description": "Stripes Component library for K-Int specific applications",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -59,7 +59,7 @@
59
59
  "core-js": "^3.6.1",
60
60
  "eslint": "^8.0.0",
61
61
  "eslint-plugin-import": "^2.26.0",
62
- "eslint-plugin-jest": "^27.4.2",
62
+ "eslint-plugin-jest": "^28.0.0",
63
63
  "graphql": "^16.0.0",
64
64
  "identity-obj-proxy": "^3.0.0",
65
65
  "moment": "^2.29.4",
@@ -1,5 +1,8 @@
1
1
  const parseErrorResponse = async (responseObj) => {
2
- let errorResp;
2
+ let errorResp = { message: 'something went wrong' };
3
+ if (!responseObj) {
4
+ return errorResp;
5
+ }
3
6
  const code = responseObj?.status;
4
7
  const contentType = [...responseObj?.headers]?.find(header => header[0] === 'content-type')?.[1];
5
8