@strapi/utils
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -72,2 +72,11 @@ 'use strict'; | ||
class PolicyError extends ForbiddenError { | ||
constructor(message, details) { | ||
super(message, details); | ||
this.name = 'PolicyError'; | ||
this.message = message || 'Policy Failed'; | ||
this.details = details || {}; | ||
} | ||
} | ||
module.exports = { | ||
@@ -83,2 +92,3 @@ HttpError, | ||
UnauthorizedError, | ||
PolicyError, | ||
}; |
{ | ||
"name": "@strapi/utils", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Shared utilities for the Strapi packages", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "d81919ac2272948b3f5d3b25a4cf8cc7b6994460" | ||
"gitHead": "45020eee065af8917011cc43398f95c4c624d6ad" | ||
} |
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
62275
1867