Merge pull request #15248 from backstage/freben/circ

🧹 Removed circular import in the errors package
This commit is contained in:
Fredrik Adelöw
2022-12-14 22:58:38 +01:00
committed by GitHub
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.