@bitblit/ratchet-epsilon-common 4.0.184-alpha → 4.0.185-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/epsilon-global-handler.d.ts +1 -1
- package/lib/http/error/bad-gateway.d.ts +2 -2
- package/lib/http/error/bad-request-error.d.ts +2 -2
- package/lib/http/error/conflict-error.d.ts +2 -2
- package/lib/http/error/forbidden-error.d.ts +2 -2
- package/lib/http/error/gateway-timeout.d.ts +2 -2
- package/lib/http/error/method-not-allowed-error.d.ts +2 -2
- package/lib/http/error/misconfigured-error.d.ts +2 -2
- package/lib/http/error/not-found-error.d.ts +2 -2
- package/lib/http/error/not-implemented.d.ts +2 -2
- package/lib/http/error/request-timeout-error.d.ts +2 -2
- package/lib/http/error/service-unavailable.d.ts +2 -2
- package/lib/http/error/too-many-requests-error.d.ts +2 -2
- package/lib/http/error/unauthorized-error.d.ts +2 -2
- package/lib/http/response-util.d.ts +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +13 -32
- package/lib/http/error/epsilon-http-error.d.ts +0 -41
- package/lib/http/error/epsilon-http-error.spec.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, ProxyResult } from 'aws-lambda';
|
|
2
|
+
import { LoggerOptions } from '@bitblit/ratchet-common';
|
|
2
3
|
import { BackgroundEntry } from './background/background-entry.js';
|
|
3
4
|
import { EpsilonInstance } from './epsilon-instance.js';
|
|
4
|
-
import { LoggerOptions } from '@bitblit/ratchet-common';
|
|
5
5
|
export declare class EpsilonGlobalHandler {
|
|
6
6
|
private _epsilon;
|
|
7
7
|
private static LOGGER_CONFIGURED;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BadGateway<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class BadGateway<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BadRequestError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class BadRequestError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ConflictError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class ConflictError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ForbiddenError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class ForbiddenError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class GatewayTimeout<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class GatewayTimeout<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MethodNotAllowedError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class MethodNotAllowedError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MisconfiguredError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class MisconfiguredError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotFoundError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class NotFoundError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotImplemented<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class NotImplemented<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RequestTimeoutError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class RequestTimeoutError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ServiceUnavailable<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class ServiceUnavailable<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class TooManyRequestsError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class TooManyRequestsError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UnauthorizedError<T = void> extends
|
|
1
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
2
|
+
export declare class UnauthorizedError<T = void> extends RestfulApiHttpError<T> {
|
|
3
3
|
static readonly HTTP_CODE: number;
|
|
4
4
|
constructor(...errors: string[]);
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { ProxyResult } from 'aws-lambda';
|
|
3
|
-
import {
|
|
3
|
+
import { RestfulApiHttpError } from '@bitblit/ratchet-common';
|
|
4
4
|
export declare class ResponseUtil {
|
|
5
5
|
private constructor();
|
|
6
|
-
static errorResponse<T>(err:
|
|
6
|
+
static errorResponse<T>(err: RestfulApiHttpError<T>): ProxyResult;
|
|
7
7
|
static redirect(target: string, code?: number, queryParams?: any): ProxyResult;
|
|
8
8
|
static coerceToProxyResult(input: any): ProxyResult;
|
|
9
9
|
static applyGzipIfPossible(encodingHeader: string, proxyResult: ProxyResult): Promise<ProxyResult>;
|
package/lib/index.d.ts
CHANGED
|
@@ -102,7 +102,6 @@ export * from './http/auth/web-token-manipulator.js';
|
|
|
102
102
|
export * from './http/error/bad-gateway.js';
|
|
103
103
|
export * from './http/error/bad-request-error.js';
|
|
104
104
|
export * from './http/error/conflict-error.js';
|
|
105
|
-
export * from './http/error/epsilon-http-error.js';
|
|
106
105
|
export * from './http/error/forbidden-error.js';
|
|
107
106
|
export * from './http/error/gateway-timeout.js';
|
|
108
107
|
export * from './http/error/method-not-allowed-error.js';
|