Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ctx-core/error

Package Overview
Dependencies
Maintainers
1
Versions
665
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctx-core/error - npm Package Compare versions

Comparing version 4.0.10 to 4.0.11

46

lib.js
/**
* Error functions
* @module @ctx-core/error/lib
* @module @ctx-core/error/lib.js
*/

@@ -23,3 +23,3 @@ import { assign, clone, defaults } from '@ctx-core/object'

*/
export function throw__error(ctx, ctx__error__param, ...arr__ctx__error) {
export function throw__error(ctx, ctx__error__param, ...a1__ctx__error) {
log(`${logPrefix}|throw__error`)

@@ -30,3 +30,3 @@ const ctx__error =

ctx__error__param,
...arr__ctx__error)
...a1__ctx__error)
throw ctx__error

@@ -48,3 +48,3 @@ }

ctx__error__param,
...ARR__ctx__error
...a1__ctx__error
) {

@@ -55,3 +55,3 @@ log(`${logPrefix}|_ctx__error__log`)

ctx__error__param,
...ARR__ctx__error)
...a1__ctx__error)
console__error(ctx__error)

@@ -82,3 +82,3 @@ return ctx__error

ctx__error__or__error_message,
...arr__ctx__error
...a1__ctx__error
) {

@@ -96,3 +96,3 @@ log(`${logPrefix}|_ctx__error`)

ctx__error__or__error_message,
...arr__ctx__error)
...a1__ctx__error)
const error_message__ =

@@ -131,3 +131,3 @@ ctx__error__or__error_message

*/
export function throw__bad_request(ctx, ...arr__ctx__error) {
export function throw__bad_request(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__bad_request`)

@@ -142,3 +142,3 @@ throw__error(

},
...arr__ctx__error)
...a1__ctx__error)
}

@@ -157,3 +157,3 @@ /**

*/
export function throw__unauthorized(ctx, ...arr__ctx__error) {
export function throw__unauthorized(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__unauthorized`)

@@ -168,3 +168,3 @@ throw__error(

},
...arr__ctx__error)
...a1__ctx__error)
}

@@ -183,3 +183,3 @@ /**

*/
export function throw__bad_credentials(ctx, ...arr__ctx__error) {
export function throw__bad_credentials(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__bad_credentials`)

@@ -193,3 +193,3 @@ throw__error(

},
...arr__ctx__error)
...a1__ctx__error)
}

@@ -208,3 +208,3 @@ /**

*/
export function throw__not_found(ctx, ...arr__ctx__error) {
export function throw__not_found(ctx, ...a1__ctx__error) {
log(`${logPrefix}|not_found`)

@@ -218,3 +218,3 @@ throw__error(

},
...arr__ctx__error)
...a1__ctx__error)
}

@@ -233,5 +233,5 @@ /**

*/
export function throw__missing_argument(ctx, ...arr__ctx__error) {
export function throw__missing_argument(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__missing_argument`)
const ctx__error = clone(...arr__ctx__error)
const ctx__error = clone(...a1__ctx__error)
throw__error(

@@ -259,5 +259,5 @@ ctx,

*/
export function throw__invalid_argument(ctx, ...arr__ctx__error) {
export function throw__invalid_argument(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__invalid_argument`)
const ctx__error = clone(...arr__ctx__error)
const ctx__error = clone(...a1__ctx__error)
throw__error(

@@ -286,5 +286,5 @@ ctx,

*/
export function throw__invalid_state(ctx, ...arr__ctx__error) {
export function throw__invalid_state(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__invalid_state`)
const ctx__error = clone(...arr__ctx__error)
const ctx__error = clone(...a1__ctx__error)
const reason =

@@ -315,3 +315,3 @@ ctx__error.reason

*/
export function throw__bad_gateway(ctx, ...arr__ctx__error) {
export function throw__bad_gateway(ctx, ...a1__ctx__error) {
log(`${logPrefix}|throw__bad_gateway`)

@@ -325,3 +325,3 @@ throw__error(

},
...arr__ctx__error)
...a1__ctx__error)
}
{
"name": "@ctx-core/error",
"version": "4.0.10",
"version": "4.0.11",
"description": "ctx-core error",

@@ -27,3 +27,3 @@ "main": "lib.js",

},
"gitHead": "b273f40ccf6c7c98cb6258ae1408be27a8611fac"
"gitHead": "4f7c894fe26c575b27fda697da9faf698cd879f4"
}
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