forest-express
Advanced tools
Comparing version 10.1.0 to 10.1.1
@@ -32,9 +32,9 @@ "use strict"; | ||
var _approvalNotAllowedError = _interopRequireDefault(require("./errors/approvalNotAllowedError")); | ||
var _approvalNotAllowedError = _interopRequireDefault(require("./errors/approval-not-allowed-error")); | ||
var _customActionRequiresApprovalError = _interopRequireDefault(require("./errors/customActionRequiresApprovalError")); | ||
var _customActionRequiresApprovalError = _interopRequireDefault(require("./errors/custom-action-requires-approval-error")); | ||
var _customActionTriggerForbiddenError = _interopRequireDefault(require("./errors/customActionTriggerForbiddenError")); | ||
var _customActionTriggerForbiddenError = _interopRequireDefault(require("./errors/custom-action-trigger-forbidden-error")); | ||
var _invalidActionConditionError = _interopRequireDefault(require("./errors/invalidActionConditionError")); | ||
var _invalidActionConditionError = _interopRequireDefault(require("./errors/invalid-action-condition-error")); | ||
@@ -41,0 +41,0 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } |
@@ -32,3 +32,3 @@ "use strict"; | ||
detail: error.message, | ||
name: error.constructor.name | ||
name: error.name | ||
}, error.data ? { | ||
@@ -35,0 +35,0 @@ data: error.data |
@@ -31,3 +31,3 @@ "use strict"; | ||
_this = _super.call(this, message || 'Error while authorizing the user on Forest Admin'); | ||
_this.name = _this.constructor.name; | ||
_this.name = 'AuthorizationError'; | ||
_this.status = status || 500; | ||
@@ -34,0 +34,0 @@ return _this; |
@@ -33,3 +33,3 @@ "use strict"; | ||
_this = _super.call(this, errorMessages.SERVER_TRANSACTION.SECRET_AND_RENDERINGID_INCONSISTENT); | ||
_this.name = _this.constructor.name; | ||
_this.name = 'InconsistentSecretAndRenderingError'; | ||
_this.status = 500; | ||
@@ -36,0 +36,0 @@ return _this; |
@@ -31,3 +31,3 @@ "use strict"; | ||
_this = _super.call(this, 'Cannot retrieve the project you\'re trying to unlock. ' + 'Please check that you\'re using the right environment secret regarding your project and environment.'); | ||
_this.name = _this.constructor.name; | ||
_this.name = 'SecretNotFoundError'; | ||
_this.status = 500; | ||
@@ -34,0 +34,0 @@ return _this; |
@@ -31,3 +31,3 @@ "use strict"; | ||
_this = _super.call(this, 'Two factor authentication required'); | ||
_this.name = _this.constructor.name; | ||
_this.name = 'TwoFactorAuthenticationRequiredError'; | ||
_this.status = 403; | ||
@@ -34,0 +34,0 @@ return _this; |
{ | ||
"name": "forest-express", | ||
"description": "Official package for all Forest Express Lianas", | ||
"version": "10.1.0", | ||
"version": "10.1.1", | ||
"author": "Sandro Munda <sandro@munda.me>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
/* eslint-disable jest/no-hooks */ | ||
import ActionAuthorizationService from '../../../src/services/authorization/action-authorization'; | ||
import CustomActionTriggerForbiddenError from '../../../src/services/authorization/errors/customActionTriggerForbiddenError'; | ||
import InvalidActionConditionError from '../../../src/services/authorization/errors/invalidActionConditionError'; | ||
import CustomActionTriggerForbiddenError from '../../../src/services/authorization/errors/custom-action-trigger-forbidden-error'; | ||
import InvalidActionConditionError from '../../../src/services/authorization/errors/invalid-action-condition-error'; | ||
@@ -7,0 +7,0 @@ const mockRecordsCounterCount = jest.fn(); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
882413
17278