Socket
Socket
Sign inDemoInstall

@springworks/error-factory

Package Overview
Dependencies
Maintainers
3
Versions
433
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springworks/error-factory - npm Package Compare versions

Comparing version 3005.86.6 to 3005.90.3

build/__tests__/client-error.test.d.ts

1

build/client-error/client-error.d.ts

@@ -20,2 +20,3 @@ export declare type ClientHttpStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 422 | 425 | 426 | 428 | 429 | 431 | 451;

export declare function createClientErrorForResponse(response: any): ClientError;
export declare function isClientError(input: unknown): input is ClientError;
//# sourceMappingURL=client-error.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createClientErrorForResponse = exports.createClientError = void 0;
exports.isClientError = exports.createClientErrorForResponse = exports.createClientError = void 0;
class ClientErrorImpl extends Error {

@@ -35,1 +35,5 @@ constructor(params) {

exports.createClientErrorForResponse = createClientErrorForResponse;
function isClientError(input) {
return input instanceof ClientErrorImpl && typeof input.is_client_error === 'boolean';
}
exports.isClientError = isClientError;

@@ -35,2 +35,3 @@ import { Output } from '@hapi/boom';

export declare function createError(params?: CreateErrorParams): FelError;
export declare function isFelError(input: unknown): input is FelError;
//# sourceMappingURL=fel.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createError = exports.toStringDebug = exports.isJoi = exports.getRootErrorId = exports.getStatusCode = void 0;
exports.isFelError = exports.createError = exports.toStringDebug = exports.isJoi = exports.getRootErrorId = exports.getStatusCode = void 0;
const boom_1 = require("@hapi/boom");

@@ -85,1 +85,5 @@ const random_string_1 = require("@springworks/random-string");

exports.createError = createError;
function isFelError(input) {
return input instanceof Error && typeof input.toJSON === 'function';
}
exports.isFelError = isFelError;

8

build/main.d.ts

@@ -1,6 +0,5 @@

import { ClientError, ClientHttpStatusCode, createClientError, CreateClientErrorParams, ErrorResponse, createClientErrorForResponse } from './client-error/client-error';
import { isClientError, ClientError, ClientHttpStatusCode, createClientError, CreateClientErrorParams, ErrorResponse, createClientErrorForResponse } from './client-error/client-error';
import { client_error_response_schema, localized_client_error_response_schema } from './client-error/schemas';
import { FelError } from './fel';
export { FelError };
export { createClientError, createClientErrorForResponse, CreateClientErrorParams, ClientHttpStatusCode, ErrorResponse, ClientError, client_error_response_schema, localized_client_error_response_schema, };
import { FelError, isFelError } from './fel';
export { createClientError, createClientErrorForResponse, CreateClientErrorParams, ClientHttpStatusCode, ErrorResponse, ClientError, client_error_response_schema, localized_client_error_response_schema, isClientError, isFelError, FelError, };
export interface CreateErrorParams {

@@ -14,3 +13,2 @@ code?: number;

export declare function createError(params?: CreateErrorParams | unknown): FelError;
export declare function isFelError(input: unknown): input is FelError;
//# sourceMappingURL=main.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFelError = exports.createError = exports.localized_client_error_response_schema = exports.client_error_response_schema = exports.createClientErrorForResponse = exports.createClientError = void 0;
exports.createError = exports.isFelError = exports.isClientError = exports.localized_client_error_response_schema = exports.client_error_response_schema = exports.createClientErrorForResponse = exports.createClientError = void 0;
const client_error_1 = require("./client-error/client-error");
Object.defineProperty(exports, "isClientError", { enumerable: true, get: function () { return client_error_1.isClientError; } });
Object.defineProperty(exports, "createClientError", { enumerable: true, get: function () { return client_error_1.createClientError; } });

@@ -11,2 +12,3 @@ Object.defineProperty(exports, "createClientErrorForResponse", { enumerable: true, get: function () { return client_error_1.createClientErrorForResponse; } });

const fel_1 = require("./fel");
Object.defineProperty(exports, "isFelError", { enumerable: true, get: function () { return fel_1.isFelError; } });
const internals_1 = require("./internals");

@@ -35,5 +37,1 @@ // The reason for allowing unknown is because we are using this function mostly

exports.createError = createError;
function isFelError(input) {
return input instanceof Error && typeof input.toJSON === 'function';
}
exports.isFelError = isFelError;

@@ -6,2 +6,14 @@ # Change Log

## [3005.90.3](https://github.com/Springworks/m2h-mono/compare/v3005.90.2...v3005.90.3) (2021-11-26)
## 3005.90.1 (2021-11-25)
**Note:** Version bump only for package @springworks/error-factory
## [3005.86.6](https://github.com/Springworks/m2h-mono/compare/v3005.86.5...v3005.86.6) (2021-11-22)

@@ -8,0 +20,0 @@

{
"name": "@springworks/error-factory",
"version": "3005.86.6",
"version": "3005.90.3",
"description": "Custom error that makes use of HTTP error codes to identify different error types.",

@@ -29,3 +29,3 @@ "main": "build/main.js",

"homepage": "https://github.com/Springworks/m2h-mono/tree/master/packages/error-factory#readme",
"gitHead": "ff57878695ad6e098ef04bf8d0ae286e0b6d4ca1"
"gitHead": "2eaa1728589e68ecd7a86dc19bf696023934db3e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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