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

@ctx-core/error

Package Overview
Dependencies
Maintainers
0
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 Versions

1
6566

2.0.8

Diff

btakita
published 2.0.7 •

btakita
published 2.0.5 •

btakita
published 2.0.4 •

btakita
published 2.0.0 •

Changelog

Source

12.0.0

Major Changes

  • InvalidArgumentError_T=>invalid_argument_error_o_T

    • InvalidArgumentError_I
    • throw_invalid_argument_ctx_T
  • HttpError constructor arguments: (message?:string):

    HttpError BadCredentialsError BadGatewayError BadRequestError InvalidArgumentError InvalidStateError MissingArgumentError NotFoundError UnauthorizedError

    • errorctx__log,log_error_ctx,_log_error_ctx,_ctxerrorlog
    • error_ctx_I
    • throw_invalid_argument,throw__invalid_argument
    • errorctx,_error_ctx,_ctx__error
    • console_error
    • throw_missing_argument,throw__missing_argument
    • throw_bad_request,throw__bad_request
  • InvalidStateError_T=>invalid_state_error_o_T:

    key?:string reason?:string

    • InvalidStateError_I
    • throw_invalid_state_ctx_type
  • arguments: (message?:string, invalid_state_error_o?:invalid_state_error_o_T):

    invalidstate_error invalid_state__throw

  • arguments: (message?:string, missing_argument_error_o?:missing_argument_error_o_T):

    missingargument_error missing_argument__throw

  • error,__throw: arguments: (message?:string, error_o?:error_o_T):

    badgateway_error badgateway__throw bad_request_error badrequest__throw http_error httperror__throw missing_argument_error missingargument__throw not_found_error notfound__throw unauthorized_error unauthorized__throw

  • arguments: (message?:string, bad_credentials_error_o?:bad_credentials_error_o_T):

    badcredentials_error bad_credentials__throw

    • throw_unauthorized,throw__unauthorized
    • print_error,print__error
  • error_o_T:

    • error_message http_error_message=>httpmessage http_status=>httpstatus
    • key
    • stack
    • type
    • upstream_error
  • arguments: (message?:string, invalid_argument_error_o?:invalid_argument_error_o_T):

    invalidargument_error invalid_argument__throw

  • MissingArgumentError_T=>missing_argument_error_o_T:

    key?:string

    • MissingArgumentError_I
    • throw_http_error
    • throw__http_error
    • throw_not_found,throw__not_found
    • throw_invalid_state,throw__invalid_state
    • throw_bad_credentials,throw__bad_credentials
    • throw_bad_gateway,throw__bad_gateway

Minor Changes

    • bad_credentials_error_o_T

Patch Changes

  • error__print: update console.error message
  • console__error: update console.error message
1
6566
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