@equinor/cpl-error-snackbar-react 0.1.5 → 1.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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -395,7 +395,7 @@ function parseUnknownError(unknownError) {
|
|
|
395
395
|
const innerError = parseInnerError(getTypedPropertyIfExists(unknownError, "error", "object"));
|
|
396
396
|
return {
|
|
397
397
|
type: getTypedPropertyIfExists(unknownError, "type", "string") || "unknown",
|
|
398
|
-
title: getTypedPropertyIfExists(unknownError, "title", "string") || "
|
|
398
|
+
title: getTypedPropertyIfExists(unknownError, "title", "string") || "Unknown Error",
|
|
399
399
|
status: getTypedPropertyIfExists(unknownError, "status", "number") || -1,
|
|
400
400
|
detail: getTypedPropertyIfExists(unknownError, "detail", "string"),
|
|
401
401
|
error: innerError,
|
package/dist/index.mjs
CHANGED
|
@@ -351,7 +351,7 @@ function parseUnknownError(unknownError) {
|
|
|
351
351
|
const innerError = parseInnerError(getTypedPropertyIfExists(unknownError, "error", "object"));
|
|
352
352
|
return {
|
|
353
353
|
type: getTypedPropertyIfExists(unknownError, "type", "string") || "unknown",
|
|
354
|
-
title: getTypedPropertyIfExists(unknownError, "title", "string") || "
|
|
354
|
+
title: getTypedPropertyIfExists(unknownError, "title", "string") || "Unknown Error",
|
|
355
355
|
status: getTypedPropertyIfExists(unknownError, "status", "number") || -1,
|
|
356
356
|
detail: getTypedPropertyIfExists(unknownError, "detail", "string"),
|
|
357
357
|
error: innerError,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/cpl-error-snackbar-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@equinor/eds-tokens": "^0.9.2"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@equinor/eds-core-react": "^
|
|
16
|
+
"@equinor/eds-core-react": "^2.2.0",
|
|
17
17
|
"@storybook/react": "^9.1.1",
|
|
18
18
|
"@types/react": "^18.3.18",
|
|
19
19
|
"@types/react-dom": "^18.3.5",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"react-dom": "^18.2.0",
|
|
24
24
|
"styled-components": "^6.1.14",
|
|
25
25
|
"tsup": "^8.3.6",
|
|
26
|
-
"@equinor/cpl-eslint-config": "0.0
|
|
26
|
+
"@equinor/cpl-eslint-config": "1.0.0",
|
|
27
27
|
"@equinor/cpl-typescript-config": "0.0.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@equinor/eds-core-react": ">=
|
|
30
|
+
"@equinor/eds-core-react": ">=2.2.0",
|
|
31
31
|
"react": ">=18.2.0",
|
|
32
32
|
"react-dom": ">=18.2.0",
|
|
33
33
|
"styled-components": ">=5.3.11"
|