@snyk/error-catalog-nodejs-public 5.6.1 → 5.7.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/package.json +1 -1
- package/src/catalogs/PRChecks-error-catalog.d.ts +199 -0
- package/src/catalogs/PRChecks-error-catalog.js +333 -2
- package/src/catalogs/PRChecks-error-catalog.js.map +1 -1
- package/src/catalogs/error-codes.d.ts +10 -0
- package/src/catalogs/error-codes.js +10 -0
- package/src/catalogs/error-codes.js.map +1 -1
package/package.json
CHANGED
|
@@ -40,3 +40,202 @@ import { ProblemError } from '../problem-error';
|
|
|
40
40
|
export declare class FailedToReadManifestError extends ProblemError {
|
|
41
41
|
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @class
|
|
45
|
+
* @name ManifestNotFoundError
|
|
46
|
+
* @description Snyk uses your project manifest file to analyze your projects for vulnerabilities. When you import a project for monitoring, Snyk scans the project to locate the manifest file and then remembers where that file is.
|
|
47
|
+
* When a project manifest file is moved or deleted, we still try to look for in it in the last known location in order to run tests on commit statuses. If we can't find the file, this error can occur.
|
|
48
|
+
*
|
|
49
|
+
* If this happens, you could try the following:
|
|
50
|
+
* 1. Delete the matching project from your account in the Snyk app (UI or CLI).
|
|
51
|
+
* 2. Now import the same project from scratch.
|
|
52
|
+
*
|
|
53
|
+
* As during the original import, Snyk scans the project and locates the manifest file.
|
|
54
|
+
*
|
|
55
|
+
* See more:
|
|
56
|
+
* - [https://support.snyk.io/hc/en-us/articles/360000910537-Manifest-not-found](https://support.snyk.io/hc/en-us/articles/360000910537-Manifest-not-found)
|
|
57
|
+
* @summary Manifest not found
|
|
58
|
+
* @category PRChecks
|
|
59
|
+
* @param {string} details the specific details that causes this error
|
|
60
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
61
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
62
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
63
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
64
|
+
*/
|
|
65
|
+
export declare class ManifestNotFoundError extends ProblemError {
|
|
66
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @class
|
|
70
|
+
* @name ThirdPartyRateLimitError
|
|
71
|
+
* @description Snyk makes requests to your SCM when testing a project, in order to analyze your projects for vulnerabilities. If we need to make a lot of requests in a short time period, we may encounter third party rate limits, and this error can occur.
|
|
72
|
+
*
|
|
73
|
+
* If you receive any of these errors, try re-running the tests, by closing and reopening the pull request.
|
|
74
|
+
* @summary Rate limit hit while testing project
|
|
75
|
+
* @category PRChecks
|
|
76
|
+
* @param {string} details the specific details that causes this error
|
|
77
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
78
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
79
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
80
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
81
|
+
*/
|
|
82
|
+
export declare class ThirdPartyRateLimitError extends ProblemError {
|
|
83
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @class
|
|
87
|
+
* @name OutOfSyncError
|
|
88
|
+
* @description Sometimes a project may become out of sync between the lockfile and the manifest file. This might happen if the package.json is modified or updated but the lockfile is not.
|
|
89
|
+
*
|
|
90
|
+
* This can be resolved by ensuring the lockfile and manifest file are correctly synced, by executing npm install or yarn install.
|
|
91
|
+
*
|
|
92
|
+
* In some cases, it may be necessary to delete the node_modules folder and the package-lock.json and run npm install again to force a full reinstall.
|
|
93
|
+
*
|
|
94
|
+
* See more:
|
|
95
|
+
* - [https://support.snyk.io/hc/en-us/articles/360000912457-Out-of-sync-manifest-lockfile-in-the-project](https://support.snyk.io/hc/en-us/articles/360000912457-Out-of-sync-manifest-lockfile-in-the-project)
|
|
96
|
+
* @summary Out of Sync Error
|
|
97
|
+
* @category PRChecks
|
|
98
|
+
* @param {string} details the specific details that causes this error
|
|
99
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
100
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
101
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
102
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
103
|
+
*/
|
|
104
|
+
export declare class OutOfSyncError extends ProblemError {
|
|
105
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @class
|
|
109
|
+
* @name FailedDeterminingProjectTargetError
|
|
110
|
+
* @description An internal error occurred, whereby Snyk was unable to determine the correct target for a given project in your PR Check.
|
|
111
|
+
*
|
|
112
|
+
* If you receive this error, try re-running the tests, by closing and reopening the pull request.
|
|
113
|
+
*
|
|
114
|
+
* Ultimately, you should contact support@snyk.io if the issue persists.
|
|
115
|
+
* @summary Failed determining project target
|
|
116
|
+
* @category PRChecks
|
|
117
|
+
* @param {string} details the specific details that causes this error
|
|
118
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
119
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
120
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
121
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
122
|
+
*/
|
|
123
|
+
export declare class FailedDeterminingProjectTargetError extends ProblemError {
|
|
124
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @class
|
|
128
|
+
* @name FailedToCompleteTestError
|
|
129
|
+
* @description A "Failed to complete testing check status" appears in your commit checks when an unknown error occurs while Snyk was trying to test your projects for vulnerabilities or license issues.
|
|
130
|
+
*
|
|
131
|
+
* If you receive this error, try re-running the tests, by closing and reopening the pull request.
|
|
132
|
+
*
|
|
133
|
+
* Ultimately, you should contact support@snyk.io if the issue persists.
|
|
134
|
+
*
|
|
135
|
+
* See more:
|
|
136
|
+
* - [https://support.snyk.io/hc/en-us/articles/360004358517-Unknown-PR-test-error](https://support.snyk.io/hc/en-us/articles/360004358517-Unknown-PR-test-error)
|
|
137
|
+
* @summary Failed to complete the test
|
|
138
|
+
* @category PRChecks
|
|
139
|
+
* @param {string} details the specific details that causes this error
|
|
140
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
141
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
142
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
143
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
144
|
+
*/
|
|
145
|
+
export declare class FailedToCompleteTestError extends ProblemError {
|
|
146
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @class
|
|
150
|
+
* @name FailedToFetchMergeCommitShaError
|
|
151
|
+
* @description In order for snyk test to run, we need the merge commit SHA from the GitHub. For some reason, we couldn’t get it.
|
|
152
|
+
*
|
|
153
|
+
* Try closing and then reopening the pull request, or you can Skip the Pull Request Check if it is consistent.
|
|
154
|
+
*
|
|
155
|
+
* See more:
|
|
156
|
+
* - [https://support.snyk.io/hc/en-us/articles/360005281837](https://support.snyk.io/hc/en-us/articles/360005281837)
|
|
157
|
+
* @summary Failed to fetch merge commit SHA
|
|
158
|
+
* @category PRChecks
|
|
159
|
+
* @param {string} details the specific details that causes this error
|
|
160
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
161
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
162
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
163
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
164
|
+
*/
|
|
165
|
+
export declare class FailedToFetchMergeCommitShaError extends ProblemError {
|
|
166
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @class
|
|
170
|
+
* @name MergeConflictError
|
|
171
|
+
* @description Merge Conflict Error is not a Snyk specific issue but rather some issues on your SCM environment. As an example, merge conflicts could happen when people make different changes to the same line of the same file, or when one person edits a file and another person deletes the same file.
|
|
172
|
+
*
|
|
173
|
+
* To resolve this, you might need to figure out all the merge conflicts on your SCM environment and resolve them to fully remediate these types of errors on Snyk. As a note, this cannot be modified/changed on Snyk's side.
|
|
174
|
+
*
|
|
175
|
+
* See more:
|
|
176
|
+
* - [https://support.snyk.io/hc/en-us/articles/360005281098](https://support.snyk.io/hc/en-us/articles/360005281098)
|
|
177
|
+
* @summary Merge conflict error
|
|
178
|
+
* @category PRChecks
|
|
179
|
+
* @param {string} details the specific details that causes this error
|
|
180
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
181
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
182
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
183
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
184
|
+
*/
|
|
185
|
+
export declare class MergeConflictError extends ProblemError {
|
|
186
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @class
|
|
190
|
+
* @name FailedToDetectIssuesError
|
|
191
|
+
* @description Snyk is always trying to check for new issues and vulnerabilities to keep you safe. We do so by testing on your code on webhook Pull Request events and Push events.
|
|
192
|
+
*
|
|
193
|
+
* Occasionally you might see a "Failed to detect issues" commit status which may block your PR. This means that we tried to run a test against your changes but unfortunately something went wrong / we encountered an internal problem. If this happens to you try recreating the pull request and if it still occurs reach out and let us know which user, organization and project and commit sha you experienced the issue with on support@snyk.io
|
|
194
|
+
*
|
|
195
|
+
* See more:
|
|
196
|
+
* - [https://support.snyk.io/hc/en-us/articles/360000920678-Failed-to-detect-issues](https://support.snyk.io/hc/en-us/articles/360000920678-Failed-to-detect-issues)
|
|
197
|
+
* @summary Failed to detect issues
|
|
198
|
+
* @category PRChecks
|
|
199
|
+
* @param {string} details the specific details that causes this error
|
|
200
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
201
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
202
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
203
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
204
|
+
*/
|
|
205
|
+
export declare class FailedToDetectIssuesError extends ProblemError {
|
|
206
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @class
|
|
210
|
+
* @name InvalidThirdPartyCredentialsError
|
|
211
|
+
* @description Snyk uses credentials configured on your integration to test your code and to update your PR Check.
|
|
212
|
+
*
|
|
213
|
+
* If this error occurs, please ensure your integration and credentials are correctly set up, by following the instructions for your SCM here: https://docs.snyk.io/integrate-with-snyk/git-repository-scm-integrations
|
|
214
|
+
* @summary No valid credentials to process PR check
|
|
215
|
+
* @category PRChecks
|
|
216
|
+
* @param {string} details the specific details that causes this error
|
|
217
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
218
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
219
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
220
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
221
|
+
*/
|
|
222
|
+
export declare class InvalidThirdPartyCredentialsError extends ProblemError {
|
|
223
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @class
|
|
227
|
+
* @name FailedToGenerateCommitStatusError
|
|
228
|
+
* @description Snyk is always trying to check for new issues and vulnerabilities to keep you safe. We do so by testing on your code on webhook Pull Request events and Push events.
|
|
229
|
+
*
|
|
230
|
+
* Occasionally you might see a "Failed to generate a commit status" which may block your PR. This means that we tried to run a test against your changes but unfortunately something went wrong / we encountered an internal problem. If this happens to you try recreating the pull request and if it still occurs reach out and let us know which user, organization and project and commit sha you experienced the issue with on support@snyk.io
|
|
231
|
+
* @summary Failed to generate a commit status
|
|
232
|
+
* @category PRChecks
|
|
233
|
+
* @param {string} details the specific details that causes this error
|
|
234
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
235
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
236
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
237
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
238
|
+
*/
|
|
239
|
+
export declare class FailedToGenerateCommitStatusError extends ProblemError {
|
|
240
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
241
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
"use strict";
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.FailedToReadManifestError = void 0;
|
|
18
|
+
exports.FailedToGenerateCommitStatusError = exports.InvalidThirdPartyCredentialsError = exports.FailedToDetectIssuesError = exports.MergeConflictError = exports.FailedToFetchMergeCommitShaError = exports.FailedToCompleteTestError = exports.FailedDeterminingProjectTargetError = exports.OutOfSyncError = exports.ThirdPartyRateLimitError = exports.ManifestNotFoundError = exports.FailedToReadManifestError = void 0;
|
|
19
19
|
const types_1 = require("../types");
|
|
20
20
|
const problem_error_1 = require("../problem-error");
|
|
21
21
|
/**
|
|
@@ -48,7 +48,7 @@ class FailedToReadManifestError extends problem_error_1.ProblemError {
|
|
|
48
48
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0001',
|
|
49
49
|
status: 500,
|
|
50
50
|
errorCode: 'SNYK-PR-CHECK-0001',
|
|
51
|
-
level: '
|
|
51
|
+
level: 'error',
|
|
52
52
|
classification: types_1.Classification.ACTIONABLE,
|
|
53
53
|
instance,
|
|
54
54
|
}, details, Object.assign({ links: [
|
|
@@ -58,4 +58,335 @@ class FailedToReadManifestError extends problem_error_1.ProblemError {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.FailedToReadManifestError = FailedToReadManifestError;
|
|
61
|
+
/**
|
|
62
|
+
* @class
|
|
63
|
+
* @name ManifestNotFoundError
|
|
64
|
+
* @description Snyk uses your project manifest file to analyze your projects for vulnerabilities. When you import a project for monitoring, Snyk scans the project to locate the manifest file and then remembers where that file is.
|
|
65
|
+
* When a project manifest file is moved or deleted, we still try to look for in it in the last known location in order to run tests on commit statuses. If we can't find the file, this error can occur.
|
|
66
|
+
*
|
|
67
|
+
* If this happens, you could try the following:
|
|
68
|
+
* 1. Delete the matching project from your account in the Snyk app (UI or CLI).
|
|
69
|
+
* 2. Now import the same project from scratch.
|
|
70
|
+
*
|
|
71
|
+
* As during the original import, Snyk scans the project and locates the manifest file.
|
|
72
|
+
*
|
|
73
|
+
* See more:
|
|
74
|
+
* - [https://support.snyk.io/hc/en-us/articles/360000910537-Manifest-not-found](https://support.snyk.io/hc/en-us/articles/360000910537-Manifest-not-found)
|
|
75
|
+
* @summary Manifest not found
|
|
76
|
+
* @category PRChecks
|
|
77
|
+
* @param {string} details the specific details that causes this error
|
|
78
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
79
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
80
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
81
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
82
|
+
*/
|
|
83
|
+
class ManifestNotFoundError extends problem_error_1.ProblemError {
|
|
84
|
+
constructor(details, additionalData, cause, instance) {
|
|
85
|
+
super({
|
|
86
|
+
title: 'Manifest not found',
|
|
87
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0002',
|
|
88
|
+
status: 404,
|
|
89
|
+
errorCode: 'SNYK-PR-CHECK-0002',
|
|
90
|
+
level: 'error',
|
|
91
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
92
|
+
instance,
|
|
93
|
+
}, details, Object.assign({ links: [
|
|
94
|
+
'https://support.snyk.io/hc/en-us/articles/360000910537-Manifest-not-found',
|
|
95
|
+
] }, additionalData), cause);
|
|
96
|
+
this.name = this.constructor.name;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.ManifestNotFoundError = ManifestNotFoundError;
|
|
100
|
+
/**
|
|
101
|
+
* @class
|
|
102
|
+
* @name ThirdPartyRateLimitError
|
|
103
|
+
* @description Snyk makes requests to your SCM when testing a project, in order to analyze your projects for vulnerabilities. If we need to make a lot of requests in a short time period, we may encounter third party rate limits, and this error can occur.
|
|
104
|
+
*
|
|
105
|
+
* If you receive any of these errors, try re-running the tests, by closing and reopening the pull request.
|
|
106
|
+
* @summary Rate limit hit while testing project
|
|
107
|
+
* @category PRChecks
|
|
108
|
+
* @param {string} details the specific details that causes this error
|
|
109
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
110
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
111
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
112
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
113
|
+
*/
|
|
114
|
+
class ThirdPartyRateLimitError extends problem_error_1.ProblemError {
|
|
115
|
+
constructor(details, additionalData, cause, instance) {
|
|
116
|
+
super({
|
|
117
|
+
title: 'Rate limit hit while testing project',
|
|
118
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0003',
|
|
119
|
+
status: 429,
|
|
120
|
+
errorCode: 'SNYK-PR-CHECK-0003',
|
|
121
|
+
level: 'error',
|
|
122
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
123
|
+
instance,
|
|
124
|
+
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
125
|
+
this.name = this.constructor.name;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.ThirdPartyRateLimitError = ThirdPartyRateLimitError;
|
|
129
|
+
/**
|
|
130
|
+
* @class
|
|
131
|
+
* @name OutOfSyncError
|
|
132
|
+
* @description Sometimes a project may become out of sync between the lockfile and the manifest file. This might happen if the package.json is modified or updated but the lockfile is not.
|
|
133
|
+
*
|
|
134
|
+
* This can be resolved by ensuring the lockfile and manifest file are correctly synced, by executing npm install or yarn install.
|
|
135
|
+
*
|
|
136
|
+
* In some cases, it may be necessary to delete the node_modules folder and the package-lock.json and run npm install again to force a full reinstall.
|
|
137
|
+
*
|
|
138
|
+
* See more:
|
|
139
|
+
* - [https://support.snyk.io/hc/en-us/articles/360000912457-Out-of-sync-manifest-lockfile-in-the-project](https://support.snyk.io/hc/en-us/articles/360000912457-Out-of-sync-manifest-lockfile-in-the-project)
|
|
140
|
+
* @summary Out of Sync Error
|
|
141
|
+
* @category PRChecks
|
|
142
|
+
* @param {string} details the specific details that causes this error
|
|
143
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
144
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
145
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
146
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
147
|
+
*/
|
|
148
|
+
class OutOfSyncError extends problem_error_1.ProblemError {
|
|
149
|
+
constructor(details, additionalData, cause, instance) {
|
|
150
|
+
super({
|
|
151
|
+
title: 'Out of Sync Error',
|
|
152
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0004',
|
|
153
|
+
status: 422,
|
|
154
|
+
errorCode: 'SNYK-PR-CHECK-0004',
|
|
155
|
+
level: 'error',
|
|
156
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
157
|
+
instance,
|
|
158
|
+
}, details, Object.assign({ links: [
|
|
159
|
+
'https://support.snyk.io/hc/en-us/articles/360000912457-Out-of-sync-manifest-lockfile-in-the-project',
|
|
160
|
+
] }, additionalData), cause);
|
|
161
|
+
this.name = this.constructor.name;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.OutOfSyncError = OutOfSyncError;
|
|
165
|
+
/**
|
|
166
|
+
* @class
|
|
167
|
+
* @name FailedDeterminingProjectTargetError
|
|
168
|
+
* @description An internal error occurred, whereby Snyk was unable to determine the correct target for a given project in your PR Check.
|
|
169
|
+
*
|
|
170
|
+
* If you receive this error, try re-running the tests, by closing and reopening the pull request.
|
|
171
|
+
*
|
|
172
|
+
* Ultimately, you should contact support@snyk.io if the issue persists.
|
|
173
|
+
* @summary Failed determining project target
|
|
174
|
+
* @category PRChecks
|
|
175
|
+
* @param {string} details the specific details that causes this error
|
|
176
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
177
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
178
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
179
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
180
|
+
*/
|
|
181
|
+
class FailedDeterminingProjectTargetError extends problem_error_1.ProblemError {
|
|
182
|
+
constructor(details, additionalData, cause, instance) {
|
|
183
|
+
super({
|
|
184
|
+
title: 'Failed determining project target',
|
|
185
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0005',
|
|
186
|
+
status: 500,
|
|
187
|
+
errorCode: 'SNYK-PR-CHECK-0005',
|
|
188
|
+
level: 'error',
|
|
189
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
190
|
+
instance,
|
|
191
|
+
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
192
|
+
this.name = this.constructor.name;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.FailedDeterminingProjectTargetError = FailedDeterminingProjectTargetError;
|
|
196
|
+
/**
|
|
197
|
+
* @class
|
|
198
|
+
* @name FailedToCompleteTestError
|
|
199
|
+
* @description A "Failed to complete testing check status" appears in your commit checks when an unknown error occurs while Snyk was trying to test your projects for vulnerabilities or license issues.
|
|
200
|
+
*
|
|
201
|
+
* If you receive this error, try re-running the tests, by closing and reopening the pull request.
|
|
202
|
+
*
|
|
203
|
+
* Ultimately, you should contact support@snyk.io if the issue persists.
|
|
204
|
+
*
|
|
205
|
+
* See more:
|
|
206
|
+
* - [https://support.snyk.io/hc/en-us/articles/360004358517-Unknown-PR-test-error](https://support.snyk.io/hc/en-us/articles/360004358517-Unknown-PR-test-error)
|
|
207
|
+
* @summary Failed to complete the test
|
|
208
|
+
* @category PRChecks
|
|
209
|
+
* @param {string} details the specific details that causes this error
|
|
210
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
211
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
212
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
213
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
214
|
+
*/
|
|
215
|
+
class FailedToCompleteTestError extends problem_error_1.ProblemError {
|
|
216
|
+
constructor(details, additionalData, cause, instance) {
|
|
217
|
+
super({
|
|
218
|
+
title: 'Failed to complete the test',
|
|
219
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0006',
|
|
220
|
+
status: 500,
|
|
221
|
+
errorCode: 'SNYK-PR-CHECK-0006',
|
|
222
|
+
level: 'error',
|
|
223
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
224
|
+
instance,
|
|
225
|
+
}, details, Object.assign({ links: [
|
|
226
|
+
'https://support.snyk.io/hc/en-us/articles/360004358517-Unknown-PR-test-error',
|
|
227
|
+
] }, additionalData), cause);
|
|
228
|
+
this.name = this.constructor.name;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.FailedToCompleteTestError = FailedToCompleteTestError;
|
|
232
|
+
/**
|
|
233
|
+
* @class
|
|
234
|
+
* @name FailedToFetchMergeCommitShaError
|
|
235
|
+
* @description In order for snyk test to run, we need the merge commit SHA from the GitHub. For some reason, we couldn’t get it.
|
|
236
|
+
*
|
|
237
|
+
* Try closing and then reopening the pull request, or you can Skip the Pull Request Check if it is consistent.
|
|
238
|
+
*
|
|
239
|
+
* See more:
|
|
240
|
+
* - [https://support.snyk.io/hc/en-us/articles/360005281837](https://support.snyk.io/hc/en-us/articles/360005281837)
|
|
241
|
+
* @summary Failed to fetch merge commit SHA
|
|
242
|
+
* @category PRChecks
|
|
243
|
+
* @param {string} details the specific details that causes this error
|
|
244
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
245
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
246
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
247
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
248
|
+
*/
|
|
249
|
+
class FailedToFetchMergeCommitShaError extends problem_error_1.ProblemError {
|
|
250
|
+
constructor(details, additionalData, cause, instance) {
|
|
251
|
+
super({
|
|
252
|
+
title: 'Failed to fetch merge commit SHA',
|
|
253
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0007',
|
|
254
|
+
status: 500,
|
|
255
|
+
errorCode: 'SNYK-PR-CHECK-0007',
|
|
256
|
+
level: 'error',
|
|
257
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
258
|
+
instance,
|
|
259
|
+
}, details, Object.assign({ links: [
|
|
260
|
+
'https://support.snyk.io/hc/en-us/articles/360005281837',
|
|
261
|
+
] }, additionalData), cause);
|
|
262
|
+
this.name = this.constructor.name;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
exports.FailedToFetchMergeCommitShaError = FailedToFetchMergeCommitShaError;
|
|
266
|
+
/**
|
|
267
|
+
* @class
|
|
268
|
+
* @name MergeConflictError
|
|
269
|
+
* @description Merge Conflict Error is not a Snyk specific issue but rather some issues on your SCM environment. As an example, merge conflicts could happen when people make different changes to the same line of the same file, or when one person edits a file and another person deletes the same file.
|
|
270
|
+
*
|
|
271
|
+
* To resolve this, you might need to figure out all the merge conflicts on your SCM environment and resolve them to fully remediate these types of errors on Snyk. As a note, this cannot be modified/changed on Snyk's side.
|
|
272
|
+
*
|
|
273
|
+
* See more:
|
|
274
|
+
* - [https://support.snyk.io/hc/en-us/articles/360005281098](https://support.snyk.io/hc/en-us/articles/360005281098)
|
|
275
|
+
* @summary Merge conflict error
|
|
276
|
+
* @category PRChecks
|
|
277
|
+
* @param {string} details the specific details that causes this error
|
|
278
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
279
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
280
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
281
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
282
|
+
*/
|
|
283
|
+
class MergeConflictError extends problem_error_1.ProblemError {
|
|
284
|
+
constructor(details, additionalData, cause, instance) {
|
|
285
|
+
super({
|
|
286
|
+
title: 'Merge conflict error',
|
|
287
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0008',
|
|
288
|
+
status: 422,
|
|
289
|
+
errorCode: 'SNYK-PR-CHECK-0008',
|
|
290
|
+
level: 'error',
|
|
291
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
292
|
+
instance,
|
|
293
|
+
}, details, Object.assign({ links: [
|
|
294
|
+
'https://support.snyk.io/hc/en-us/articles/360005281098',
|
|
295
|
+
] }, additionalData), cause);
|
|
296
|
+
this.name = this.constructor.name;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
exports.MergeConflictError = MergeConflictError;
|
|
300
|
+
/**
|
|
301
|
+
* @class
|
|
302
|
+
* @name FailedToDetectIssuesError
|
|
303
|
+
* @description Snyk is always trying to check for new issues and vulnerabilities to keep you safe. We do so by testing on your code on webhook Pull Request events and Push events.
|
|
304
|
+
*
|
|
305
|
+
* Occasionally you might see a "Failed to detect issues" commit status which may block your PR. This means that we tried to run a test against your changes but unfortunately something went wrong / we encountered an internal problem. If this happens to you try recreating the pull request and if it still occurs reach out and let us know which user, organization and project and commit sha you experienced the issue with on support@snyk.io
|
|
306
|
+
*
|
|
307
|
+
* See more:
|
|
308
|
+
* - [https://support.snyk.io/hc/en-us/articles/360000920678-Failed-to-detect-issues](https://support.snyk.io/hc/en-us/articles/360000920678-Failed-to-detect-issues)
|
|
309
|
+
* @summary Failed to detect issues
|
|
310
|
+
* @category PRChecks
|
|
311
|
+
* @param {string} details the specific details that causes this error
|
|
312
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
313
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
314
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
315
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
316
|
+
*/
|
|
317
|
+
class FailedToDetectIssuesError extends problem_error_1.ProblemError {
|
|
318
|
+
constructor(details, additionalData, cause, instance) {
|
|
319
|
+
super({
|
|
320
|
+
title: 'Failed to detect issues',
|
|
321
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0009',
|
|
322
|
+
status: 500,
|
|
323
|
+
errorCode: 'SNYK-PR-CHECK-0009',
|
|
324
|
+
level: 'error',
|
|
325
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
326
|
+
instance,
|
|
327
|
+
}, details, Object.assign({ links: [
|
|
328
|
+
'https://support.snyk.io/hc/en-us/articles/360000920678-Failed-to-detect-issues',
|
|
329
|
+
] }, additionalData), cause);
|
|
330
|
+
this.name = this.constructor.name;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
exports.FailedToDetectIssuesError = FailedToDetectIssuesError;
|
|
334
|
+
/**
|
|
335
|
+
* @class
|
|
336
|
+
* @name InvalidThirdPartyCredentialsError
|
|
337
|
+
* @description Snyk uses credentials configured on your integration to test your code and to update your PR Check.
|
|
338
|
+
*
|
|
339
|
+
* If this error occurs, please ensure your integration and credentials are correctly set up, by following the instructions for your SCM here: https://docs.snyk.io/integrate-with-snyk/git-repository-scm-integrations
|
|
340
|
+
* @summary No valid credentials to process PR check
|
|
341
|
+
* @category PRChecks
|
|
342
|
+
* @param {string} details the specific details that causes this error
|
|
343
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
344
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
345
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
346
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
347
|
+
*/
|
|
348
|
+
class InvalidThirdPartyCredentialsError extends problem_error_1.ProblemError {
|
|
349
|
+
constructor(details, additionalData, cause, instance) {
|
|
350
|
+
super({
|
|
351
|
+
title: 'No valid credentials to process PR check',
|
|
352
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0010',
|
|
353
|
+
status: 401,
|
|
354
|
+
errorCode: 'SNYK-PR-CHECK-0010',
|
|
355
|
+
level: 'error',
|
|
356
|
+
classification: types_1.Classification.ACTIONABLE,
|
|
357
|
+
instance,
|
|
358
|
+
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
359
|
+
this.name = this.constructor.name;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
exports.InvalidThirdPartyCredentialsError = InvalidThirdPartyCredentialsError;
|
|
363
|
+
/**
|
|
364
|
+
* @class
|
|
365
|
+
* @name FailedToGenerateCommitStatusError
|
|
366
|
+
* @description Snyk is always trying to check for new issues and vulnerabilities to keep you safe. We do so by testing on your code on webhook Pull Request events and Push events.
|
|
367
|
+
*
|
|
368
|
+
* Occasionally you might see a "Failed to generate a commit status" which may block your PR. This means that we tried to run a test against your changes but unfortunately something went wrong / we encountered an internal problem. If this happens to you try recreating the pull request and if it still occurs reach out and let us know which user, organization and project and commit sha you experienced the issue with on support@snyk.io
|
|
369
|
+
* @summary Failed to generate a commit status
|
|
370
|
+
* @category PRChecks
|
|
371
|
+
* @param {string} details the specific details that causes this error
|
|
372
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
373
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
374
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
375
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
376
|
+
*/
|
|
377
|
+
class FailedToGenerateCommitStatusError extends problem_error_1.ProblemError {
|
|
378
|
+
constructor(details, additionalData, cause, instance) {
|
|
379
|
+
super({
|
|
380
|
+
title: 'Failed to generate a commit status',
|
|
381
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-check-0011',
|
|
382
|
+
status: 500,
|
|
383
|
+
errorCode: 'SNYK-PR-CHECK-0011',
|
|
384
|
+
level: 'error',
|
|
385
|
+
classification: types_1.Classification.UNEXPECTED,
|
|
386
|
+
instance,
|
|
387
|
+
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
388
|
+
this.name = this.constructor.name;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
exports.FailedToGenerateCommitStatusError = FailedToGenerateCommitStatusError;
|
|
61
392
|
//# sourceMappingURL=PRChecks-error-catalog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PRChecks-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/PRChecks-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,yBAA0B,SAAQ,4BAAY;IACzD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,iEAAiE;YACvE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,oBAAoB;YAC/B,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PRChecks-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/PRChecks-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,yBAA0B,SAAQ,4BAAY;IACzD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,iEAAiE;YACvE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,oBAAoB;YAC/B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,qFAAqF;aACpF,IACE,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,8DA4BC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,qBAAsB,SAAQ,4BAAY;IACrD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,oBAAoB;YAC3B,IAAI,EAAE,iEAAiE;YACvE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,oBAAoB;YAC/B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EA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ACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,0CAA0C;YACjD,IAAI,EAAE,iEAAiE;YACvE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,oBAAoB;YAC/B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA1BD,8EA0BC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAa,iCAAkC,SAAQ,4BAAY;IACjE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;QAEnB,KAAK,CACH;YACE,KAAK,EAAE,oCAAoC;YAC3C,IAAI,EAAE,iEAAiE;YACvE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,oBAAoB;YAC/B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,CACN,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA1BD,8EA0BC"}
|
|
@@ -162,6 +162,16 @@ declare const _default: {
|
|
|
162
162
|
};
|
|
163
163
|
PRChecks: {
|
|
164
164
|
FailedToReadManifest: string;
|
|
165
|
+
ManifestNotFound: string;
|
|
166
|
+
ThirdPartyRateLimit: string;
|
|
167
|
+
OutOfSync: string;
|
|
168
|
+
FailedDeterminingProjectTarget: string;
|
|
169
|
+
FailedToCompleteTest: string;
|
|
170
|
+
FailedToFetchMergeCommitSha: string;
|
|
171
|
+
MergeConflict: string;
|
|
172
|
+
FailedToDetectIssues: string;
|
|
173
|
+
InvalidThirdPartyCredentials: string;
|
|
174
|
+
FailedToGenerateCommitStatus: string;
|
|
165
175
|
};
|
|
166
176
|
};
|
|
167
177
|
export default _default;
|
|
@@ -164,6 +164,16 @@ exports.default = {
|
|
|
164
164
|
},
|
|
165
165
|
PRChecks: {
|
|
166
166
|
FailedToReadManifest: 'SNYK-PR-CHECK-0001',
|
|
167
|
+
ManifestNotFound: 'SNYK-PR-CHECK-0002',
|
|
168
|
+
ThirdPartyRateLimit: 'SNYK-PR-CHECK-0003',
|
|
169
|
+
OutOfSync: 'SNYK-PR-CHECK-0004',
|
|
170
|
+
FailedDeterminingProjectTarget: 'SNYK-PR-CHECK-0005',
|
|
171
|
+
FailedToCompleteTest: 'SNYK-PR-CHECK-0006',
|
|
172
|
+
FailedToFetchMergeCommitSha: 'SNYK-PR-CHECK-0007',
|
|
173
|
+
MergeConflict: 'SNYK-PR-CHECK-0008',
|
|
174
|
+
FailedToDetectIssues: 'SNYK-PR-CHECK-0009',
|
|
175
|
+
InvalidThirdPartyCredentials: 'SNYK-PR-CHECK-0010',
|
|
176
|
+
FailedToGenerateCommitStatus: 'SNYK-PR-CHECK-0011',
|
|
167
177
|
},
|
|
168
178
|
};
|
|
169
179
|
//# sourceMappingURL=error-codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/error-codes.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,IAAI,EAAE;QACJ,eAAe,EAAE,WAAW;QAC5B,cAAc,EAAE,WAAW;QAC3B,UAAU,EAAE,WAAW;QACvB,OAAO,EAAE,WAAW;QACpB,YAAY,EAAE,WAAW;QACzB,MAAM,EAAE,WAAW;KACpB;IACD,oBAAoB,EAAE;QACpB,mBAAmB,EAAE,cAAc;QACnC,mBAAmB,EAAE,cAAc;QACnC,wBAAwB,EAAE,cAAc;QACxC,aAAa,EAAE,cAAc;QAC7B,cAAc,EAAE,cAA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S,EAAE,mBAAmB;QAC9B,aAAa,EAAE,mBAAmB;QAClC,QAAQ,EAAE,mBAAmB;QAC7B,gBAAgB,EAAE,mBAAmB;QACrC,qBAAqB,EAAE,mBAAmB;QAC1C,YAAY,EAAE,mBAAmB;QACjC,oBAAoB,EAAE,mBAAmB;KAC1C;IACD,mBAAmB,EAAE;QACnB,6BAA6B,EAAE,gBAAgB;QAC/C,YAAY,EAAE,gBAAgB;KAC/B;IACD,UAAU,EAAE;QACV,cAAc,EAAE,cAAc;QAC9B,0BAA0B,EAAE,cAAc;QAC1C,uBAAuB,EAAE,cAAc;QACvC,gBAAgB,EAAE,cAAc;QAChC,kBAAkB,EAAE,cAAc;QAClC,gBAAgB,EAAE,cAAc;QAChC,gBAAgB,EAAE,cAAc;QAChC,gBAAgB,EAAE,cAAc;QAChC,eAAe,EAAE,cAAc;KAChC;IACD,GAAG,EAAE;QACH,gCAAgC,EAAE,uBAAuB;QACzD,2BAA2B,EAAE,uBAAuB;QACpD,yBAAyB,EAAE,uBAAuB;QAClD,kCAAkC,EAAE,uBAAuB;QAC3D,wBAAwB,EAAE,uBAAuB;QACjD,oBAAoB,EAAE,uBAAuB;QAC7C,wBAAwB,EAAE,uBAAuB;QACjD,sBAAsB,EAAE,uBAAuB;QAC/C,wBAAwB,EAAE,uBAAuB;QACjD,wBAAwB,EAAE,uBAAuB;QACjD,wBAAwB,EAAE,uBAAuB;KAClD;IACD,IAAI,EAAE;QACJ,8BAA8B,EAAE,gBAAgB;QAChD,+BAA+B,EAAE,gBAAgB;KAClD;IACD,QAAQ,EAAE;QACR,oBAAoB,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/error-codes.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,IAAI,EAAE;QACJ,eAAe,EAAE,WAAW;QAC5B,cAAc,EAAE,WAAW;QAC3B,UAAU,EAAE,WAAW;QACvB,OAAO,EA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