Socket
Socket
Sign inDemoInstall

@snyk/error-catalog-nodejs-public

Package Overview
Dependencies
Maintainers
1
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.10.0 to 5.11.0

2

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

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

@@ -20,3 +20,3 @@ /*

* @name AnalysisFileCountLimitExceededError
* @description This error occurs when the analysis target has a supported file count which exceeds current system limits.
* @description This error occurs when the analysis target has a supported file count that exceeds current system limits.
*

@@ -23,0 +23,0 @@ * To reduce the file count, use a `.snyk` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.

@@ -24,3 +24,3 @@ /*

* @name AnalysisFileCountLimitExceededError
* @description This error occurs when the analysis target has a supported file count which exceeds current system limits.
* @description This error occurs when the analysis target has a supported file count that exceeds current system limits.
*

@@ -27,0 +27,0 @@ * To reduce the file count, use a `.snyk` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.

@@ -23,2 +23,3 @@ /*

Unauthorised: string;
TestLimitReached: string;
Server: string;

@@ -25,0 +26,0 @@ };

@@ -25,2 +25,3 @@ /*

Unauthorised: 'SNYK-0005',
TestLimitReached: 'SNYK-0006',
Server: 'SNYK-9999',

@@ -27,0 +28,0 @@ },

@@ -100,2 +100,25 @@ /*

* @class
* @name TestLimitReachedError
* @description Maximum number of test reached.
*
* This means you have fully consumed your test quota for your level of subscription.
* This will cause Snyk Test on PRs and CLI to fail. If this is an blocking issue, you can either deactivate Snyk Test on the project of upgrade your subscription.
*
* See more:
* - [https://support.snyk.io/hc/en-us/articles/4409805538833-Rate-limit-hit-while-testing-the-project](https://support.snyk.io/hc/en-us/articles/4409805538833-Rate-limit-hit-while-testing-the-project)
* - [https://docs.snyk.io/scan-using-snyk/working-with-snyk-in-your-environment/what-counts-as-a-test](https://docs.snyk.io/scan-using-snyk/working-with-snyk-in-your-environment/what-counts-as-a-test)
* - [https://support.snyk.io/hc/en-us/articles/360001945297-Snyk-Test-of-PR-failing-due-to-test-limit](https://support.snyk.io/hc/en-us/articles/360001945297-Snyk-Test-of-PR-failing-due-to-test-limit)
* @summary Test Limit Reached error
* @category Snyk
* @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 TestLimitReachedError extends ProblemError {
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
}
/**
* @class
* @name ServerError

@@ -102,0 +125,0 @@ * @description The server cannot process the request due to an unexpected error. Check Snyk status, then try again.

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ServerError = exports.UnauthorisedError = exports.TimeoutError = exports.BadRequestError = exports.NotImplementedError = exports.TooManyRequestsError = void 0;
exports.ServerError = exports.TestLimitReachedError = exports.UnauthorisedError = exports.TimeoutError = exports.BadRequestError = exports.NotImplementedError = exports.TooManyRequestsError = void 0;
const types_1 = require("../types");

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

* @class
* @name TestLimitReachedError
* @description Maximum number of test reached.
*
* This means you have fully consumed your test quota for your level of subscription.
* This will cause Snyk Test on PRs and CLI to fail. If this is an blocking issue, you can either deactivate Snyk Test on the project of upgrade your subscription.
*
* See more:
* - [https://support.snyk.io/hc/en-us/articles/4409805538833-Rate-limit-hit-while-testing-the-project](https://support.snyk.io/hc/en-us/articles/4409805538833-Rate-limit-hit-while-testing-the-project)
* - [https://docs.snyk.io/scan-using-snyk/working-with-snyk-in-your-environment/what-counts-as-a-test](https://docs.snyk.io/scan-using-snyk/working-with-snyk-in-your-environment/what-counts-as-a-test)
* - [https://support.snyk.io/hc/en-us/articles/360001945297-Snyk-Test-of-PR-failing-due-to-test-limit](https://support.snyk.io/hc/en-us/articles/360001945297-Snyk-Test-of-PR-failing-due-to-test-limit)
* @summary Test Limit Reached error
* @category Snyk
* @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 TestLimitReachedError extends problem_error_1.ProblemError {
constructor(details, additionalData, cause, instance, logs) {
super({
title: 'Test Limit Reached error',
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-0006',
status: 406,
errorCode: 'SNYK-0006',
level: 'error',
classification: types_1.Classification.ACTIONABLE,
instance,
}, details, Object.assign({ links: [
'https://support.snyk.io/hc/en-us/articles/4409805538833-Rate-limit-hit-while-testing-the-project',
'https://docs.snyk.io/scan-using-snyk/working-with-snyk-in-your-environment/what-counts-as-a-test',
'https://support.snyk.io/hc/en-us/articles/360001945297-Snyk-Test-of-PR-failing-due-to-test-limit',
] }, additionalData), cause, logs);
this.name = this.constructor.name;
}
}
exports.TestLimitReachedError = TestLimitReachedError;
/**
* @class
* @name ServerError

@@ -171,0 +210,0 @@ * @description The server cannot process the request due to an unexpected error. Check Snyk status, then try again.

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