Removed circular import in the errors package

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-12-14 21:56:04 +01:00
parent 12ba9c2efe
commit ac6cc9f7bd
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/errors': patch
---
Removed a circular import
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { stringifyError } from '../serialization';
import { stringifyError } from '../serialization/error';
import { isError } from './assertion';
/**
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { deserializeError } from '../serialization';
import { deserializeError } from '../serialization/error';
import {
ErrorResponseBody,
parseErrorResponseBody,
+1 -1
View File
@@ -19,7 +19,7 @@ import {
deserializeError as deserializeErrorInternal,
serializeError as serializeErrorInternal,
} from 'serialize-error';
import { isError } from '../errors';
import { isError } from '../errors/assertion';
/**
* The serialized form of an Error.