@snyk/error-catalog-nodejs-public 5.9.0 → 5.9.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/Code-error-catalog.d.ts +3 -3
- package/src/catalogs/Code-error-catalog.js +6 -6
- package/src/catalogs/Code-error-catalog.js.map +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +11 -11
- package/src/catalogs/Fix-error-catalog.js +22 -22
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +3 -3
- package/src/catalogs/IsolatedBuilds-error-catalog.js +6 -6
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -8
- package/src/catalogs/OpenAPI-error-catalog.js +16 -16
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +54 -54
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +108 -108
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -5
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +10 -10
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -5
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +10 -10
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -2
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +4 -4
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PRChecks-error-catalog.d.ts +11 -11
- package/src/catalogs/PRChecks-error-catalog.js +22 -22
- package/src/catalogs/PRChecks-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +19 -19
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +38 -38
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +9 -9
- package/src/catalogs/SbomExport-error-catalog.js +18 -18
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +6 -6
- package/src/catalogs/Snyk-error-catalog.js +12 -12
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
|
@@ -27,7 +27,7 @@ import { ProblemError } from '../problem-error';
|
|
|
27
27
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
28
28
|
*/
|
|
29
29
|
export declare class TooManyRequestsError extends ProblemError {
|
|
30
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
30
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* @class
|
|
@@ -45,7 +45,7 @@ export declare class TooManyRequestsError extends ProblemError {
|
|
|
45
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
46
46
|
*/
|
|
47
47
|
export declare class NotImplementedError extends ProblemError {
|
|
48
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
48
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* @class
|
|
@@ -60,7 +60,7 @@ export declare class NotImplementedError extends ProblemError {
|
|
|
60
60
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
61
61
|
*/
|
|
62
62
|
export declare class BadRequestError extends ProblemError {
|
|
63
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
63
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* @class
|
|
@@ -78,7 +78,7 @@ export declare class BadRequestError extends ProblemError {
|
|
|
78
78
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
79
79
|
*/
|
|
80
80
|
export declare class TimeoutError extends ProblemError {
|
|
81
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
81
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* @class
|
|
@@ -93,7 +93,7 @@ export declare class TimeoutError extends ProblemError {
|
|
|
93
93
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
94
94
|
*/
|
|
95
95
|
export declare class UnauthorisedError extends ProblemError {
|
|
96
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
96
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* @class
|
|
@@ -111,5 +111,5 @@ export declare class UnauthorisedError extends ProblemError {
|
|
|
111
111
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
112
112
|
*/
|
|
113
113
|
export declare class ServerError extends ProblemError {
|
|
114
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
114
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
115
115
|
}
|
|
@@ -31,7 +31,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
31
31
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
32
32
|
*/
|
|
33
33
|
class TooManyRequestsError extends problem_error_1.ProblemError {
|
|
34
|
-
constructor(details, additionalData, cause, instance) {
|
|
34
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
35
35
|
super({
|
|
36
36
|
title: 'Service temporarily throttled',
|
|
37
37
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-0001',
|
|
@@ -40,7 +40,7 @@ class TooManyRequestsError extends problem_error_1.ProblemError {
|
|
|
40
40
|
level: 'warn',
|
|
41
41
|
classification: types_1.Classification.ACTIONABLE,
|
|
42
42
|
instance,
|
|
43
|
-
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
43
|
+
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
|
|
44
44
|
this.name = this.constructor.name;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -61,7 +61,7 @@ exports.TooManyRequestsError = TooManyRequestsError;
|
|
|
61
61
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
62
62
|
*/
|
|
63
63
|
class NotImplementedError extends problem_error_1.ProblemError {
|
|
64
|
-
constructor(details, additionalData, cause, instance) {
|
|
64
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
65
65
|
super({
|
|
66
66
|
title: 'Server error response',
|
|
67
67
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-0002',
|
|
@@ -72,7 +72,7 @@ class NotImplementedError extends problem_error_1.ProblemError {
|
|
|
72
72
|
instance,
|
|
73
73
|
}, details, Object.assign({ links: [
|
|
74
74
|
'https://docs.snyk.io/snyk-api-info',
|
|
75
|
-
] }, additionalData), cause);
|
|
75
|
+
] }, additionalData), cause, logs);
|
|
76
76
|
this.name = this.constructor.name;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -90,7 +90,7 @@ exports.NotImplementedError = NotImplementedError;
|
|
|
90
90
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
91
91
|
*/
|
|
92
92
|
class BadRequestError extends problem_error_1.ProblemError {
|
|
93
|
-
constructor(details, additionalData, cause, instance) {
|
|
93
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
94
94
|
super({
|
|
95
95
|
title: 'Client request cannot be processed',
|
|
96
96
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-0003',
|
|
@@ -99,7 +99,7 @@ class BadRequestError extends problem_error_1.ProblemError {
|
|
|
99
99
|
level: 'error',
|
|
100
100
|
classification: types_1.Classification.ACTIONABLE,
|
|
101
101
|
instance,
|
|
102
|
-
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
102
|
+
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
|
|
103
103
|
this.name = this.constructor.name;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -120,7 +120,7 @@ exports.BadRequestError = BadRequestError;
|
|
|
120
120
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
121
121
|
*/
|
|
122
122
|
class TimeoutError extends problem_error_1.ProblemError {
|
|
123
|
-
constructor(details, additionalData, cause, instance) {
|
|
123
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
124
124
|
super({
|
|
125
125
|
title: 'Server communication error',
|
|
126
126
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-0004',
|
|
@@ -131,7 +131,7 @@ class TimeoutError extends problem_error_1.ProblemError {
|
|
|
131
131
|
instance,
|
|
132
132
|
}, details, Object.assign({ links: [
|
|
133
133
|
'https://status.snyk.io/',
|
|
134
|
-
] }, additionalData), cause);
|
|
134
|
+
] }, additionalData), cause, logs);
|
|
135
135
|
this.name = this.constructor.name;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -149,7 +149,7 @@ exports.TimeoutError = TimeoutError;
|
|
|
149
149
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
150
150
|
*/
|
|
151
151
|
class UnauthorisedError extends problem_error_1.ProblemError {
|
|
152
|
-
constructor(details, additionalData, cause, instance) {
|
|
152
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
153
153
|
super({
|
|
154
154
|
title: 'Authentication error',
|
|
155
155
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-0005',
|
|
@@ -158,7 +158,7 @@ class UnauthorisedError extends problem_error_1.ProblemError {
|
|
|
158
158
|
level: 'error',
|
|
159
159
|
classification: types_1.Classification.ACTIONABLE,
|
|
160
160
|
instance,
|
|
161
|
-
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
161
|
+
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
|
|
162
162
|
this.name = this.constructor.name;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -179,7 +179,7 @@ exports.UnauthorisedError = UnauthorisedError;
|
|
|
179
179
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
180
180
|
*/
|
|
181
181
|
class ServerError extends problem_error_1.ProblemError {
|
|
182
|
-
constructor(details, additionalData, cause, instance) {
|
|
182
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
183
183
|
super({
|
|
184
184
|
title: 'Request not fulfilled due to server error ',
|
|
185
185
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-9999',
|
|
@@ -190,7 +190,7 @@ class ServerError extends problem_error_1.ProblemError {
|
|
|
190
190
|
instance,
|
|
191
191
|
}, details, Object.assign({ links: [
|
|
192
192
|
'https://status.snyk.io/',
|
|
193
|
-
] }, additionalData), cause);
|
|
193
|
+
] }, additionalData), cause, logs);
|
|
194
194
|
this.name = this.constructor.name;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snyk-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Snyk-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;GAWG;AACH,MAAa,oBAAqB,SAAQ,4BAAY;IACpD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;
|
|
1
|
+
{"version":3,"file":"Snyk-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Snyk-error-catalog.ts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