@skmtc/core 0.47.3 → 0.47.4
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.
|
@@ -772,25 +772,26 @@ _ParseContext_refConsumers = new WeakMap(), _ParseContext_refErrors = new WeakMa
|
|
|
772
772
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
773
773
|
const at = rootCause.location === undefined ? '' : ` at '${rootCause.location}'`;
|
|
774
774
|
const message = `Depends on '${refKey}', removed because of the error${at}: ${errorMessage}`;
|
|
775
|
+
// `logIssueAt` serializes the cause and picks the issue's protocol shape.
|
|
775
776
|
switch (this.protocol.type) {
|
|
776
777
|
case 'oas':
|
|
777
|
-
|
|
778
|
+
this.logIssueAt({
|
|
778
779
|
protocol: 'oas',
|
|
779
780
|
level: 'error',
|
|
780
781
|
type: 'INVALID_DEPENDENCY_REF',
|
|
781
782
|
location,
|
|
782
783
|
message,
|
|
783
|
-
cause:
|
|
784
|
+
cause: error
|
|
784
785
|
});
|
|
785
786
|
break;
|
|
786
787
|
case 'gql':
|
|
787
|
-
|
|
788
|
+
this.logIssueAt({
|
|
788
789
|
protocol: 'gql',
|
|
789
790
|
level: 'error',
|
|
790
791
|
type: 'INVALID_DEPENDENCY_REF',
|
|
791
792
|
location,
|
|
792
793
|
message,
|
|
793
|
-
cause:
|
|
794
|
+
cause: error
|
|
794
795
|
});
|
|
795
796
|
break;
|
|
796
797
|
default: {
|
package/package.json
CHANGED
|
@@ -776,25 +776,26 @@ _ParseContext_refConsumers = new WeakMap(), _ParseContext_refErrors = new WeakMa
|
|
|
776
776
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
777
777
|
const at = rootCause.location === undefined ? '' : ` at '${rootCause.location}'`;
|
|
778
778
|
const message = `Depends on '${refKey}', removed because of the error${at}: ${errorMessage}`;
|
|
779
|
+
// `logIssueAt` serializes the cause and picks the issue's protocol shape.
|
|
779
780
|
switch (this.protocol.type) {
|
|
780
781
|
case 'oas':
|
|
781
|
-
|
|
782
|
+
this.logIssueAt({
|
|
782
783
|
protocol: 'oas',
|
|
783
784
|
level: 'error',
|
|
784
785
|
type: 'INVALID_DEPENDENCY_REF',
|
|
785
786
|
location,
|
|
786
787
|
message,
|
|
787
|
-
cause:
|
|
788
|
+
cause: error
|
|
788
789
|
});
|
|
789
790
|
break;
|
|
790
791
|
case 'gql':
|
|
791
|
-
|
|
792
|
+
this.logIssueAt({
|
|
792
793
|
protocol: 'gql',
|
|
793
794
|
level: 'error',
|
|
794
795
|
type: 'INVALID_DEPENDENCY_REF',
|
|
795
796
|
location,
|
|
796
797
|
message,
|
|
797
|
-
cause:
|
|
798
|
+
cause: error
|
|
798
799
|
});
|
|
799
800
|
break;
|
|
800
801
|
default: {
|