@ctx-core/error
Advanced tools
Comparing version 4.0.9 to 4.0.10
40
lib.js
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
export function throw__error(ctx, ctx__error__param, ...ARR__ctx__error) { | ||
export function throw__error(ctx, ctx__error__param, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__error`) | ||
@@ -30,3 +30,3 @@ const ctx__error = | ||
ctx__error__param, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
throw ctx__error | ||
@@ -80,3 +80,3 @@ } | ||
ctx__error__or__error_message, | ||
...ARR__ctx__error | ||
...arr__ctx__error | ||
) { | ||
@@ -94,3 +94,3 @@ log(`${logPrefix}|_ctx__error`) | ||
ctx__error__or__error_message, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
const error_message__ = | ||
@@ -129,3 +129,3 @@ ctx__error__or__error_message | ||
*/ | ||
export function throw__bad_request(ctx, ...ARR__ctx__error) { | ||
export function throw__bad_request(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__bad_request`) | ||
@@ -140,3 +140,3 @@ throw__error( | ||
}, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
} | ||
@@ -155,3 +155,3 @@ /** | ||
*/ | ||
export function throw__unauthorized(ctx, ...ARR__ctx__error) { | ||
export function throw__unauthorized(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__unauthorized`) | ||
@@ -166,3 +166,3 @@ throw__error( | ||
}, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
} | ||
@@ -181,3 +181,3 @@ /** | ||
*/ | ||
export function throw__bad_credentials(ctx, ...ARR__ctx__error) { | ||
export function throw__bad_credentials(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__bad_credentials`) | ||
@@ -191,3 +191,3 @@ throw__error( | ||
}, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
} | ||
@@ -206,3 +206,3 @@ /** | ||
*/ | ||
export function throw__not_found(ctx, ...ARR__ctx__error) { | ||
export function throw__not_found(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|not_found`) | ||
@@ -216,3 +216,3 @@ throw__error( | ||
}, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
} | ||
@@ -231,5 +231,5 @@ /** | ||
*/ | ||
export function throw__missing_argument(ctx, ...ARR__ctx__error) { | ||
export function throw__missing_argument(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__missing_argument`) | ||
const ctx__error = clone(...ARR__ctx__error) | ||
const ctx__error = clone(...arr__ctx__error) | ||
throw__error( | ||
@@ -257,5 +257,5 @@ ctx, | ||
*/ | ||
export function throw__invalid_argument(ctx, ...ARR__ctx__error) { | ||
export function throw__invalid_argument(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__invalid_argument`) | ||
const ctx__error = clone(...ARR__ctx__error) | ||
const ctx__error = clone(...arr__ctx__error) | ||
throw__error( | ||
@@ -284,5 +284,5 @@ ctx, | ||
*/ | ||
export function throw__invalid_state(ctx, ...ARR__ctx__error) { | ||
export function throw__invalid_state(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__invalid_state`) | ||
const ctx__error = clone(...ARR__ctx__error) | ||
const ctx__error = clone(...arr__ctx__error) | ||
const reason = | ||
@@ -313,3 +313,3 @@ ctx__error.reason | ||
*/ | ||
export function throw__bad_gateway(ctx, ...ARR__ctx__error) { | ||
export function throw__bad_gateway(ctx, ...arr__ctx__error) { | ||
log(`${logPrefix}|throw__bad_gateway`) | ||
@@ -323,3 +323,3 @@ throw__error( | ||
}, | ||
...ARR__ctx__error) | ||
...arr__ctx__error) | ||
} |
{ | ||
"name": "@ctx-core/error", | ||
"version": "4.0.9", | ||
"version": "4.0.10", | ||
"description": "ctx-core error", | ||
@@ -27,3 +27,3 @@ "main": "lib.js", | ||
}, | ||
"gitHead": "82781f4adcfd78bc1f632e237c86cd19c11e0687" | ||
"gitHead": "b273f40ccf6c7c98cb6258ae1408be27a8611fac" | ||
} |
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
9173