Socket
Socket
Sign inDemoInstall

@snyk/error-catalog-nodejs-public

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/error-catalog-nodejs-public - npm Package Compare versions

Comparing version 5.29.0 to 5.30.0

2

package.json
{
"name": "@snyk/error-catalog-nodejs-public",
"version": "5.29.0",
"version": "5.30.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "snyk.io",

@@ -188,2 +188,9 @@ /*

UnauthorisedAccess: string;
UnsupportedEcosystem: string;
MetadataNotFound: string;
NoMatureVersionsFound: string;
VersionNotFound: string;
AlreadyLatestVersion: string;
DowngradeVersionUnsupported: string;
VersionParsing: string;
FailedToGetPullRequestAttributes: string;

@@ -190,0 +197,0 @@ PullRequestTemplateNotFound: string;

@@ -190,2 +190,9 @@ /*

UnauthorisedAccess: 'PR-FAILURES-0003',
UnsupportedEcosystem: 'SNYK-PACKAGES-0001',
MetadataNotFound: 'SNYK-PACKAGES-0003',
NoMatureVersionsFound: 'SNYK-PACKAGES-0005',
VersionNotFound: 'SNYK-PACKAGES-0006',
AlreadyLatestVersion: 'SNYK-PACKAGES-0007',
DowngradeVersionUnsupported: 'SNYK-PACKAGES-0008',
VersionParsing: 'SNYK-PACKAGES-0009',
FailedToGetPullRequestAttributes: 'SNYK-PR-TEMPLATE-0001',

@@ -192,0 +199,0 @@ PullRequestTemplateNotFound: 'SNYK-PR-TEMPLATE-0002',

@@ -67,2 +67,116 @@ /*

* @class
* @name UnsupportedEcosystemError
* @description The language or package manager is not supported. Please refer to the supported package managers in the documentation.
*
* See more:
* - [https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-open-source-dependencies-with-automatic-prs#supported-languages-and-scms](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-open-source-dependencies-with-automatic-prs#supported-languages-and-scms)
* @summary Unsupported ecosystem
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class UnsupportedEcosystemError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name MetadataNotFoundError
* @description Package metadata not or found or missing.
*
* See more:
* - [https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-private-dependencies-with-automatic-prs#private-packages-api](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-private-dependencies-with-automatic-prs#private-packages-api)
* @summary Metadata not found
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class MetadataNotFoundError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name NoMatureVersionsFoundError
* @description Unable to provide a recommended version as no mature versions were found.
* @summary No mature versions found for package
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class NoMatureVersionsFoundError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name VersionNotFoundError
* @description Unable to provide a recommended version for package using this policy.
* @summary No recommended version found
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class VersionNotFoundError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name AlreadyLatestVersionError
* @description No newer version found for this package, as it is already to latest version.
* @summary Package is already at latest version
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class AlreadyLatestVersionError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name DowngradeVersionUnsupportedError
* @description Unable to suggest a downgrade for a package version.
* @summary Version downgrade is not supported
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class DowngradeVersionUnsupportedError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name VersionParsingError
* @description Not a valid version for semver format.
*
* See more:
* - [https://semver.org/](https://semver.org/)
* @summary Invalid version
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
export declare class VersionParsingError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name FailedToGetPullRequestAttributesError

@@ -69,0 +183,0 @@ * @description Snyk could not get the custom pull request template attributes, using the given variables and the fetched pr template.

@@ -18,3 +18,3 @@ /*

Object.defineProperty(exports, "__esModule", { value: true });
exports.FailedToRenderDefaultTemplateError = exports.FailedToLoadCompiledJSONError = exports.PRTemplateInvalidPayloadError = exports.FailedToDeletePRTemplateError = exports.FailedToReadPRTemplateError = exports.FailedToCreatePRTemplateError = exports.FailedToGenerateHashError = exports.FailedToLoadCompiledYamlError = exports.FailedToParsePullRequestAttributesError = exports.FailedToCompilePrTemplateError = exports.PullRequestTemplateNotFoundError = exports.FailedToGetPullRequestAttributesError = exports.UnauthorisedAccessError = exports.SCMRateLimitError = exports.FixScenarioNotSupportedError = void 0;
exports.FailedToRenderDefaultTemplateError = exports.FailedToLoadCompiledJSONError = exports.PRTemplateInvalidPayloadError = exports.FailedToDeletePRTemplateError = exports.FailedToReadPRTemplateError = exports.FailedToCreatePRTemplateError = exports.FailedToGenerateHashError = exports.FailedToLoadCompiledYamlError = exports.FailedToParsePullRequestAttributesError = exports.FailedToCompilePrTemplateError = exports.PullRequestTemplateNotFoundError = exports.FailedToGetPullRequestAttributesError = exports.VersionParsingError = exports.DowngradeVersionUnsupportedError = exports.AlreadyLatestVersionError = exports.VersionNotFoundError = exports.NoMatureVersionsFoundError = exports.MetadataNotFoundError = exports.UnsupportedEcosystemError = exports.UnauthorisedAccessError = exports.SCMRateLimitError = exports.FixScenarioNotSupportedError = void 0;
const types_1 = require("../types");

@@ -110,2 +110,206 @@ const problem_error_1 = require("../problem-error");

* @class
* @name UnsupportedEcosystemError
* @description The language or package manager is not supported. Please refer to the supported package managers in the documentation.
*
* See more:
* - [https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-open-source-dependencies-with-automatic-prs#supported-languages-and-scms](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-open-source-dependencies-with-automatic-prs#supported-languages-and-scms)
* @summary Unsupported ecosystem
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class UnsupportedEcosystemError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'Unsupported ecosystem',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0001',
status: 400,
errorCode: 'SNYK-PACKAGES-0001',
level: 'error',
classification: types_1.Classification.UNSUPPORTED,
instance,
}, details, Object.assign({ links: [
'https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-open-source-dependencies-with-automatic-prs#supported-languages-and-scms',
] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
/**
* @class
* @name MetadataNotFoundError
* @description Package metadata not or found or missing.
*
* See more:
* - [https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-private-dependencies-with-automatic-prs#private-packages-api](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-private-dependencies-with-automatic-prs#private-packages-api)
* @summary Metadata not found
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class MetadataNotFoundError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'Metadata not found',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0003',
status: 404,
errorCode: 'SNYK-PACKAGES-0003',
level: 'error',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [
'https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/upgrade-dependencies-with-automatic-prs/upgrade-private-dependencies-with-automatic-prs#private-packages-api',
] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.MetadataNotFoundError = MetadataNotFoundError;
/**
* @class
* @name NoMatureVersionsFoundError
* @description Unable to provide a recommended version as no mature versions were found.
* @summary No mature versions found for package
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class NoMatureVersionsFoundError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'No mature versions found for package',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0005',
status: 404,
errorCode: 'SNYK-PACKAGES-0005',
level: 'warn',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.NoMatureVersionsFoundError = NoMatureVersionsFoundError;
/**
* @class
* @name VersionNotFoundError
* @description Unable to provide a recommended version for package using this policy.
* @summary No recommended version found
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class VersionNotFoundError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'No recommended version found',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0006',
status: 404,
errorCode: 'SNYK-PACKAGES-0006',
level: 'warn',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.VersionNotFoundError = VersionNotFoundError;
/**
* @class
* @name AlreadyLatestVersionError
* @description No newer version found for this package, as it is already to latest version.
* @summary Package is already at latest version
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class AlreadyLatestVersionError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'Package is already at latest version',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0007',
status: 404,
errorCode: 'SNYK-PACKAGES-0007',
level: 'warn',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.AlreadyLatestVersionError = AlreadyLatestVersionError;
/**
* @class
* @name DowngradeVersionUnsupportedError
* @description Unable to suggest a downgrade for a package version.
* @summary Version downgrade is not supported
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class DowngradeVersionUnsupportedError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'Version downgrade is not supported',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0008',
status: 400,
errorCode: 'SNYK-PACKAGES-0008',
level: 'error',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.DowngradeVersionUnsupportedError = DowngradeVersionUnsupportedError;
/**
* @class
* @name VersionParsingError
* @description Not a valid version for semver format.
*
* See more:
* - [https://semver.org/](https://semver.org/)
* @summary Invalid version
* @category Fix
* @param {string} details the specific details that causes this error
* @param {Classification} classification the error classification determining if the error is user-actionable or not
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
* @param {Error} [cause] the `Error` type that caused this error to be thrown
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
*/
class VersionParsingError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'Invalid version',
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-packages-0009',
status: 400,
errorCode: 'SNYK-PACKAGES-0009',
level: 'error',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [
'https://semver.org/',
] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.VersionParsingError = VersionParsingError;
/**
* @class
* @name FailedToGetPullRequestAttributesError

@@ -112,0 +316,0 @@ * @description Snyk could not get the custom pull request template attributes, using the given variables and the fetched pr template.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc