@pristine-ts/core 2.0.4 → 2.0.5
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/dist/lib/cjs/core.module.js +23 -0
- package/dist/lib/cjs/core.module.js.map +1 -1
- package/dist/lib/cjs/errors/core-error-code.enum.js +23 -0
- package/dist/lib/cjs/errors/core-error-code.enum.js.map +1 -0
- package/dist/lib/cjs/errors/errors.js +1 -6
- package/dist/lib/cjs/errors/errors.js.map +1 -1
- package/dist/lib/cjs/errors/event-dispatcher-no-event-handlers.error.js +4 -8
- package/dist/lib/cjs/errors/event-dispatcher-no-event-handlers.error.js.map +1 -1
- package/dist/lib/cjs/errors/kernel-initialization.error.js +1 -5
- package/dist/lib/cjs/errors/kernel-initialization.error.js.map +1 -1
- package/dist/lib/cjs/errors/provider-registration.error.js +5 -9
- package/dist/lib/cjs/errors/provider-registration.error.js.map +1 -1
- package/dist/lib/cjs/errors/runtime.error.js +1 -5
- package/dist/lib/cjs/errors/runtime.error.js.map +1 -1
- package/dist/lib/cjs/kernel.js +59 -1
- package/dist/lib/cjs/kernel.js.map +1 -1
- package/dist/lib/cjs/managers/environment.manager.js +63 -0
- package/dist/lib/cjs/managers/environment.manager.js.map +1 -0
- package/dist/lib/cjs/managers/managers.js +2 -0
- package/dist/lib/cjs/managers/managers.js.map +1 -1
- package/dist/lib/cjs/managers/pristine-environment.enum.js +30 -0
- package/dist/lib/cjs/managers/pristine-environment.enum.js.map +1 -0
- package/dist/lib/cjs/pipelines/event.pipeline.js +40 -17
- package/dist/lib/cjs/pipelines/event.pipeline.js.map +1 -1
- package/dist/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/lib/esm/core.module.js +23 -0
- package/dist/lib/esm/core.module.js.map +1 -1
- package/dist/lib/esm/errors/core-error-code.enum.js +20 -0
- package/dist/lib/esm/errors/core-error-code.enum.js.map +1 -0
- package/dist/lib/esm/errors/errors.js +1 -6
- package/dist/lib/esm/errors/errors.js.map +1 -1
- package/dist/lib/esm/errors/event-dispatcher-no-event-handlers.error.js +5 -9
- package/dist/lib/esm/errors/event-dispatcher-no-event-handlers.error.js.map +1 -1
- package/dist/lib/esm/errors/kernel-initialization.error.js +2 -6
- package/dist/lib/esm/errors/kernel-initialization.error.js.map +1 -1
- package/dist/lib/esm/errors/provider-registration.error.js +6 -10
- package/dist/lib/esm/errors/provider-registration.error.js.map +1 -1
- package/dist/lib/esm/errors/runtime.error.js +2 -6
- package/dist/lib/esm/errors/runtime.error.js.map +1 -1
- package/dist/lib/esm/kernel.js +59 -1
- package/dist/lib/esm/kernel.js.map +1 -1
- package/dist/lib/esm/managers/environment.manager.js +60 -0
- package/dist/lib/esm/managers/environment.manager.js.map +1 -0
- package/dist/lib/esm/managers/managers.js +2 -0
- package/dist/lib/esm/managers/managers.js.map +1 -1
- package/dist/lib/esm/managers/pristine-environment.enum.js +27 -0
- package/dist/lib/esm/managers/pristine-environment.enum.js.map +1 -0
- package/dist/lib/esm/pipelines/event.pipeline.js +41 -18
- package/dist/lib/esm/pipelines/event.pipeline.js.map +1 -1
- package/dist/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/errors/core-error-code.enum.d.ts +18 -0
- package/dist/types/errors/errors.d.ts +1 -6
- package/dist/types/errors/event-dispatcher-no-event-handlers.error.d.ts +2 -2
- package/dist/types/errors/kernel-initialization.error.d.ts +2 -2
- package/dist/types/errors/provider-registration.error.d.ts +2 -2
- package/dist/types/errors/runtime.error.d.ts +2 -2
- package/dist/types/kernel.d.ts +26 -0
- package/dist/types/managers/environment.manager.d.ts +35 -0
- package/dist/types/managers/managers.d.ts +2 -0
- package/dist/types/managers/pristine-environment.enum.d.ts +25 -0
- package/dist/types/pipelines/event.pipeline.d.ts +3 -3
- package/package.json +7 -7
- package/dist/lib/cjs/errors/error-response-interception-execution.error.js +0 -23
- package/dist/lib/cjs/errors/error-response-interception-execution.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-dispatching.error.js +0 -21
- package/dist/lib/cjs/errors/event-dispatching.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-interception-execution.error.js +0 -22
- package/dist/lib/cjs/errors/event-interception-execution.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-mapping.error.js +0 -23
- package/dist/lib/cjs/errors/event-mapping.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-post-mapping-interception.error.js +0 -22
- package/dist/lib/cjs/errors/event-post-mapping-interception.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-post-response-mapping-interception.error.js +0 -22
- package/dist/lib/cjs/errors/event-post-response-mapping-interception.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-pre-mapping-interception.error.js +0 -23
- package/dist/lib/cjs/errors/event-pre-mapping-interception.error.js.map +0 -1
- package/dist/lib/cjs/errors/event-pre-response-mapping-interception.error.js +0 -22
- package/dist/lib/cjs/errors/event-pre-response-mapping-interception.error.js.map +0 -1
- package/dist/lib/esm/errors/error-response-interception-execution.error.js +0 -19
- package/dist/lib/esm/errors/error-response-interception-execution.error.js.map +0 -1
- package/dist/lib/esm/errors/event-dispatching.error.js +0 -17
- package/dist/lib/esm/errors/event-dispatching.error.js.map +0 -1
- package/dist/lib/esm/errors/event-interception-execution.error.js +0 -18
- package/dist/lib/esm/errors/event-interception-execution.error.js.map +0 -1
- package/dist/lib/esm/errors/event-mapping.error.js +0 -19
- package/dist/lib/esm/errors/event-mapping.error.js.map +0 -1
- package/dist/lib/esm/errors/event-post-mapping-interception.error.js +0 -18
- package/dist/lib/esm/errors/event-post-mapping-interception.error.js.map +0 -1
- package/dist/lib/esm/errors/event-post-response-mapping-interception.error.js +0 -18
- package/dist/lib/esm/errors/event-post-response-mapping-interception.error.js.map +0 -1
- package/dist/lib/esm/errors/event-pre-mapping-interception.error.js +0 -19
- package/dist/lib/esm/errors/event-pre-mapping-interception.error.js.map +0 -1
- package/dist/lib/esm/errors/event-pre-response-mapping-interception.error.js +0 -18
- package/dist/lib/esm/errors/event-pre-response-mapping-interception.error.js.map +0 -1
- package/dist/types/errors/error-response-interception-execution.error.d.ts +0 -7
- package/dist/types/errors/event-dispatching.error.d.ts +0 -8
- package/dist/types/errors/event-interception-execution.error.d.ts +0 -8
- package/dist/types/errors/event-mapping.error.d.ts +0 -8
- package/dist/types/errors/event-post-mapping-interception.error.d.ts +0 -8
- package/dist/types/errors/event-post-response-mapping-interception.error.d.ts +0 -7
- package/dist/types/errors/event-pre-mapping-interception.error.d.ts +0 -8
- package/dist/types/errors/event-pre-response-mapping-interception.error.d.ts +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PristineError } from "@pristine-ts/common";
|
|
2
2
|
/**
|
|
3
3
|
* This Error is thrown when there's an error that happens while the kernel or anything is being initialized.
|
|
4
4
|
*/
|
|
5
|
-
export declare class KernelInitializationError extends
|
|
5
|
+
export declare class KernelInitializationError extends PristineError {
|
|
6
6
|
constructor(message: string);
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PristineError } from "@pristine-ts/common";
|
|
2
2
|
import { Kernel } from "../kernel";
|
|
3
3
|
/**
|
|
4
4
|
* This Error is thrown when there's an error that happens while trying to register a Provider registration.
|
|
5
5
|
*/
|
|
6
|
-
export declare class ProviderRegistrationError extends
|
|
6
|
+
export declare class ProviderRegistrationError extends PristineError {
|
|
7
7
|
constructor(message: string, providerRegistration: any, kernel: Kernel);
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PristineError } from "@pristine-ts/common";
|
|
2
2
|
/**
|
|
3
3
|
* This error is a generic error thrown when the kernel is running and you need a generic error.
|
|
4
4
|
*/
|
|
5
|
-
export declare class RuntimeError extends
|
|
5
|
+
export declare class RuntimeError extends PristineError {
|
|
6
6
|
readonly message: string;
|
|
7
7
|
constructor(message: string);
|
|
8
8
|
}
|
package/dist/types/kernel.d.ts
CHANGED
|
@@ -127,9 +127,35 @@ export declare class Kernel {
|
|
|
127
127
|
private registerConfigurationDefinitions;
|
|
128
128
|
/**
|
|
129
129
|
* Loads the configuration values into the previously-registered ConfigurationManager.
|
|
130
|
+
* Collects `configDefaults` from every instantiated module, validates they reference
|
|
131
|
+
* known keys, and passes the merged map to the configuration manager.
|
|
132
|
+
*
|
|
133
|
+
* Throws (before any value resolution):
|
|
134
|
+
* - Two modules disagreeing on the same key's `configDefaults` value.
|
|
135
|
+
* - A `configDefaults` key not declared by any module's `configurationDefinitions`
|
|
136
|
+
* (typo or missing import).
|
|
130
137
|
* @private
|
|
131
138
|
*/
|
|
132
139
|
private loadConfiguration;
|
|
140
|
+
/**
|
|
141
|
+
* Walks every instantiated module and merges their `configDefaults` blocks into a single
|
|
142
|
+
* map. Throws with a precise, actionable error message if two modules in the graph set
|
|
143
|
+
* different values for the same key — that's a misconfiguration the module authors
|
|
144
|
+
* need to resolve. Identical values from two modules silently merge (no conflict).
|
|
145
|
+
*
|
|
146
|
+
* Returns both the merged map and a per-key source tracker so a later validation step
|
|
147
|
+
* can name the originating module when a key is invalid.
|
|
148
|
+
* @private
|
|
149
|
+
*/
|
|
150
|
+
private collectConfigDefaults;
|
|
151
|
+
/**
|
|
152
|
+
* Ensures every key set via a module's `configDefaults` is declared by some module's
|
|
153
|
+
* `configurationDefinitions`. Catches typos and missing-import cases at boot, with a
|
|
154
|
+
* specific error message naming both the source module and the unknown key — so the
|
|
155
|
+
* fix is obvious instead of "your config silently does nothing."
|
|
156
|
+
* @private
|
|
157
|
+
*/
|
|
158
|
+
private validateConfigDefaultsAgainstDefinitions;
|
|
133
159
|
/**
|
|
134
160
|
* This method receives a module and recursively calls back this method with the module dependencies
|
|
135
161
|
* specified as imported by the module.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PristineEnvironment } from "./pristine-environment.enum";
|
|
2
|
+
/**
|
|
3
|
+
* Configuration key for the framework-wide runtime environment. Resolved value is one of
|
|
4
|
+
* `PristineEnvironment`'s well-known values (`"prod"` / `"dev"`) or any custom string
|
|
5
|
+
* (e.g. `"staging"`). Set via `pristine.config.ts` or the `PRISTINE_ENV` env var
|
|
6
|
+
* (registered as a default resolver on `CoreModule`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const PristineEnvironmentConfigurationKey = "pristine.environment";
|
|
9
|
+
/**
|
|
10
|
+
* Exposes the runtime environment to the rest of the framework through a single
|
|
11
|
+
* injectable surface.
|
|
12
|
+
*
|
|
13
|
+
* Consumers (`HttpErrorResponder`, `CliErrorReporter`, anyone else who needs to know what
|
|
14
|
+
* environment the framework is running in) inject `EnvironmentManager` and call
|
|
15
|
+
* `getEnvironment()`. The value flows through the normal config resolution chain —
|
|
16
|
+
* defined in `CoreModule`, overridable via `pristine.config.ts` or the `PRISTINE_ENV`
|
|
17
|
+
* env var.
|
|
18
|
+
*
|
|
19
|
+
* **Bootstrap escape hatch.** Code that runs before DI is ready (the CLI bin's outer
|
|
20
|
+
* `.catch` handler, when kernel-boot itself fails) can `new EnvironmentManager(...)` with
|
|
21
|
+
* the raw env value to get the same parsing logic without going through the container.
|
|
22
|
+
*/
|
|
23
|
+
export declare class EnvironmentManager {
|
|
24
|
+
private readonly rawEnvironment;
|
|
25
|
+
constructor(rawEnvironment: string);
|
|
26
|
+
/**
|
|
27
|
+
* Returns the active environment as a lowercased string. Well-known values are exposed
|
|
28
|
+
* via the `PristineEnvironment` enum (`"prod"`, `"dev"`); custom values (e.g.
|
|
29
|
+
* `"staging"`) pass through verbatim so consumers can branch on them.
|
|
30
|
+
*
|
|
31
|
+
* Use enum-equality for the common dev/prod check:
|
|
32
|
+
* `environmentManager.getEnvironment() === PristineEnvironment.Development`.
|
|
33
|
+
*/
|
|
34
|
+
getEnvironment(): string | PristineEnvironment;
|
|
35
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Well-known runtime environments. Drives how the channel reporters
|
|
3
|
+
* (`HttpErrorResponder` in networking, `CliErrorReporter` in cli) surface errors.
|
|
4
|
+
*
|
|
5
|
+
* - `Production`: sanitized output. Internal-error messages are replaced with a generic
|
|
6
|
+
* "Internal Error"; stack traces and the cause chain are omitted from HTTP responses
|
|
7
|
+
* and CLI stderr. Safe to expose to end users.
|
|
8
|
+
* - `Development`: verbose output. Internal-error messages, full stack, cause chain, and
|
|
9
|
+
* structured details are surfaced. For local development and debugging only.
|
|
10
|
+
*
|
|
11
|
+
* Custom environments (e.g. `"staging"`, `"qa"`) are also supported — `EnvironmentManager`
|
|
12
|
+
* returns `string | PristineEnvironment`, so consumers that care about non-default
|
|
13
|
+
* environments can branch on the raw string. Anything that isn't `"dev"` continues to
|
|
14
|
+
* render sanitized output (fail-safe default).
|
|
15
|
+
*
|
|
16
|
+
* Default: `Production`. Set via the `pristine.environment` configuration (env override:
|
|
17
|
+
* `PRISTINE_ENV`). Resolved through DI by `EnvironmentManager.getEnvironment()` — both
|
|
18
|
+
* reporters inject `EnvironmentManager` rather than reading the env directly, so the
|
|
19
|
+
* environment is part of the application's configuration graph like every other
|
|
20
|
+
* framework setting.
|
|
21
|
+
*/
|
|
22
|
+
export declare enum PristineEnvironment {
|
|
23
|
+
Production = "prod",
|
|
24
|
+
Development = "dev"
|
|
25
|
+
}
|
|
@@ -15,9 +15,9 @@ export declare class EventPipeline {
|
|
|
15
15
|
/**
|
|
16
16
|
* Builds the per-event `EventContext` and runs `fn` inside it. Centralizes the ALS
|
|
17
17
|
* boundary so the sequential and parallel execution paths in `execute()` install the
|
|
18
|
-
* same shape of context. Downstream code (`LogHandler.eventId` fallback, `@traced
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* same shape of context. Downstream code (`LogHandler.eventId` fallback, `@traced`)
|
|
19
|
+
* reads from this context instead of receiving everything threaded through method
|
|
20
|
+
* parameters.
|
|
21
21
|
*/
|
|
22
22
|
private runWithEventContext;
|
|
23
23
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/core.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/core.module.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pristine-ts/common": "^2.0.
|
|
24
|
-
"@pristine-ts/configuration": "^2.0.
|
|
25
|
-
"@pristine-ts/logging": "^2.0.
|
|
26
|
-
"@pristine-ts/security": "^2.0.
|
|
27
|
-
"@pristine-ts/telemetry": "^2.0.
|
|
23
|
+
"@pristine-ts/common": "^2.0.5",
|
|
24
|
+
"@pristine-ts/configuration": "^2.0.5",
|
|
25
|
+
"@pristine-ts/logging": "^2.0.5",
|
|
26
|
+
"@pristine-ts/security": "^2.0.5",
|
|
27
|
+
"@pristine-ts/telemetry": "^2.0.5",
|
|
28
28
|
"uuid": "^9.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"src/*.{js,ts}"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "9a960b330ee1961bb9a6151ce50257c4d8ccd48d",
|
|
68
68
|
"repository": {
|
|
69
69
|
"type": "git",
|
|
70
70
|
"url": "https://github.com/magieno/pristine-ts.git",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorResponseInterceptionExecutionError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when an error happens in the execution of an error response interceptor.
|
|
7
|
-
*/
|
|
8
|
-
class ErrorResponseInterceptionExecutionError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, error, request, interceptor, previousError) {
|
|
10
|
-
super(message, {
|
|
11
|
-
previousError,
|
|
12
|
-
error,
|
|
13
|
-
request,
|
|
14
|
-
interceptor,
|
|
15
|
-
});
|
|
16
|
-
// Set the prototype explicitly.
|
|
17
|
-
// As specified in the documentation in TypeScript
|
|
18
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
19
|
-
Object.setPrototypeOf(this, ErrorResponseInterceptionExecutionError.prototype);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.ErrorResponseInterceptionExecutionError = ErrorResponseInterceptionExecutionError;
|
|
23
|
-
//# sourceMappingURL=error-response-interception-execution.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-response-interception-execution.error.js","sourceRoot":"","sources":["../../../../src/errors/error-response-interception-execution.error.ts"],"names":[],"mappings":";;;AAAA,gDAA2D;AAE3D;;GAEG;AACH,MAAa,uCAAwC,SAAQ,sBAAa;IAExE,YAAmB,OAAe,EAAE,KAAY,EAAE,OAAgB,EAAE,WAAgB,EAAE,aAAqB;QACzG,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,KAAK;YACL,OAAO;YACP,WAAW;SACZ,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uCAAuC,CAAC,SAAS,CAAC,CAAC;IACjF,CAAC;CACF;AAfD,0FAeC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventDispatchingError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when there's an error when dispatching an event.
|
|
7
|
-
*/
|
|
8
|
-
class EventDispatchingError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, originalError, event) {
|
|
10
|
-
super(message, {
|
|
11
|
-
originalError,
|
|
12
|
-
event,
|
|
13
|
-
});
|
|
14
|
-
// Set the prototype explicitly.
|
|
15
|
-
// As specified in the documentation in TypeScript
|
|
16
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
17
|
-
Object.setPrototypeOf(this, EventDispatchingError.prototype);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.EventDispatchingError = EventDispatchingError;
|
|
21
|
-
//# sourceMappingURL=event-dispatching.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-dispatching.error.js","sourceRoot":"","sources":["../../../../src/errors/event-dispatching.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,sBAAa;IAEtD,YAAmB,OAAe,EAAE,aAAoB,EAAE,KAAiB;QACzE,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,KAAK;SACN,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACF;AAbD,sDAaC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventInterceptionExecutionError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when an error happens in the execution of an event interceptor.
|
|
7
|
-
*/
|
|
8
|
-
class EventInterceptionExecutionError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, event, kernel, error) {
|
|
10
|
-
super(message, {
|
|
11
|
-
error,
|
|
12
|
-
event,
|
|
13
|
-
kernel,
|
|
14
|
-
});
|
|
15
|
-
// Set the prototype explicitly.
|
|
16
|
-
// As specified in the documentation in TypeScript
|
|
17
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
18
|
-
Object.setPrototypeOf(this, EventInterceptionExecutionError.prototype);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.EventInterceptionExecutionError = EventInterceptionExecutionError;
|
|
22
|
-
//# sourceMappingURL=event-interception-execution.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-interception-execution.error.js","sourceRoot":"","sources":["../../../../src/errors/event-interception-execution.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,+BAAgC,SAAQ,sBAAa;IAEhE,YAAmB,OAAe,EAAE,KAAU,EAAE,MAAc,EAAE,KAAa;QAC3E,KAAK,CAAC,OAAO,EAAE;YACb,KAAK;YACL,KAAK;YACL,MAAM;SACP,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACzE,CAAC;CACF;AAdD,0EAcC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventMappingError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when there's an error while Mapping an Event in the EventPipeline
|
|
7
|
-
*/
|
|
8
|
-
class EventMappingError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, event, interceptedEvent, executionContext, originalError) {
|
|
10
|
-
super(message, {
|
|
11
|
-
event,
|
|
12
|
-
interceptedEvent,
|
|
13
|
-
executionContext,
|
|
14
|
-
originalError,
|
|
15
|
-
});
|
|
16
|
-
// Set the prototype explicitly.
|
|
17
|
-
// As specified in the documentation in TypeScript
|
|
18
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
19
|
-
Object.setPrototypeOf(this, EventMappingError.prototype);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.EventMappingError = EventMappingError;
|
|
23
|
-
//# sourceMappingURL=event-mapping.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-mapping.error.js","sourceRoot":"","sources":["../../../../src/errors/event-mapping.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,iBAAkB,SAAQ,sBAAa;IAElD,YAAmB,OAAe,EAAE,KAAa,EAAE,gBAAwB,EAAE,gBAAgD,EAAE,aAAqB;QAClJ,KAAK,CAAC,OAAO,EAAE;YACb,KAAK;YACL,gBAAgB;YAChB,gBAAgB;YAChB,aAAa;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF;AAfD,8CAeC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventPostMappingInterceptionError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when there's an error when executing any event post mapping interceptors.
|
|
7
|
-
*/
|
|
8
|
-
class EventPostMappingInterceptionError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, originalError, interceptorName, event) {
|
|
10
|
-
super(message, {
|
|
11
|
-
originalError,
|
|
12
|
-
interceptorName,
|
|
13
|
-
event,
|
|
14
|
-
});
|
|
15
|
-
// Set the prototype explicitly.
|
|
16
|
-
// As specified in the documentation in TypeScript
|
|
17
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
18
|
-
Object.setPrototypeOf(this, EventPostMappingInterceptionError.prototype);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.EventPostMappingInterceptionError = EventPostMappingInterceptionError;
|
|
22
|
-
//# sourceMappingURL=event-post-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-post-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-post-mapping-interception.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,iCAAkC,SAAQ,sBAAa;IAElE,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,KAAiB;QAClG,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,eAAe;YACf,KAAK;SACN,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iCAAiC,CAAC,SAAS,CAAC,CAAC;IAC3E,CAAC;CACF;AAdD,8EAcC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventPostResponseMappingInterceptionError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when there's an error when executing any event pre mapping interceptors.
|
|
7
|
-
*/
|
|
8
|
-
class EventPostResponseMappingInterceptionError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, originalError, interceptorName, eventResponse) {
|
|
10
|
-
super(message, {
|
|
11
|
-
originalError,
|
|
12
|
-
interceptorName,
|
|
13
|
-
eventResponse,
|
|
14
|
-
});
|
|
15
|
-
// Set the prototype explicitly.
|
|
16
|
-
// As specified in the documentation in TypeScript
|
|
17
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
18
|
-
Object.setPrototypeOf(this, EventPostResponseMappingInterceptionError.prototype);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.EventPostResponseMappingInterceptionError = EventPostResponseMappingInterceptionError;
|
|
22
|
-
//# sourceMappingURL=event-post-response-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-post-response-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-post-response-mapping-interception.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAElD;;GAEG;AACH,MAAa,yCAA0C,SAAQ,sBAAa;IAE1E,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,aAAqB;QACtG,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,eAAe;YACf,aAAa;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yCAAyC,CAAC,SAAS,CAAC,CAAC;IACnF,CAAC;CACF;AAdD,8FAcC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventPreMappingInterceptionError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when there's an error when executing any event pre mapping interceptors.
|
|
7
|
-
*/
|
|
8
|
-
class EventPreMappingInterceptionError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, originalError, interceptorName, event, executionContext) {
|
|
10
|
-
super(message, {
|
|
11
|
-
originalError,
|
|
12
|
-
event,
|
|
13
|
-
interceptorName,
|
|
14
|
-
executionContext,
|
|
15
|
-
});
|
|
16
|
-
// Set the prototype explicitly.
|
|
17
|
-
// As specified in the documentation in TypeScript
|
|
18
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
19
|
-
Object.setPrototypeOf(this, EventPreMappingInterceptionError.prototype);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.EventPreMappingInterceptionError = EventPreMappingInterceptionError;
|
|
23
|
-
//# sourceMappingURL=event-pre-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-pre-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-pre-mapping-interception.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,gCAAiC,SAAQ,sBAAa;IAEjE,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,KAAa,EAAE,gBAAgD;QAChJ,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,KAAK;YACL,eAAe;YACf,gBAAgB;SACjB,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gCAAgC,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF;AAfD,4EAeC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventPreResponseMappingInterceptionError = void 0;
|
|
4
|
-
const common_1 = require("@pristine-ts/common");
|
|
5
|
-
/**
|
|
6
|
-
* This Error is thrown when there's an error when executing any event pre mapping interceptors.
|
|
7
|
-
*/
|
|
8
|
-
class EventPreResponseMappingInterceptionError extends common_1.LoggableError {
|
|
9
|
-
constructor(message, originalError, interceptorName, eventResponse) {
|
|
10
|
-
super(message, {
|
|
11
|
-
originalError,
|
|
12
|
-
interceptorName,
|
|
13
|
-
eventResponse,
|
|
14
|
-
});
|
|
15
|
-
// Set the prototype explicitly.
|
|
16
|
-
// As specified in the documentation in TypeScript
|
|
17
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
18
|
-
Object.setPrototypeOf(this, EventPreResponseMappingInterceptionError.prototype);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.EventPreResponseMappingInterceptionError = EventPreResponseMappingInterceptionError;
|
|
22
|
-
//# sourceMappingURL=event-pre-response-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-pre-response-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-pre-response-mapping-interception.error.ts"],"names":[],"mappings":";;;AAAA,gDAAkD;AAGlD;;GAEG;AACH,MAAa,wCAAyC,SAAQ,sBAAa;IAEzE,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,aAAsC;QACvH,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,eAAe;YACf,aAAa;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wCAAwC,CAAC,SAAS,CAAC,CAAC;IAClF,CAAC;CACF;AAdD,4FAcC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when an error happens in the execution of an error response interceptor.
|
|
4
|
-
*/
|
|
5
|
-
export class ErrorResponseInterceptionExecutionError extends LoggableError {
|
|
6
|
-
constructor(message, error, request, interceptor, previousError) {
|
|
7
|
-
super(message, {
|
|
8
|
-
previousError,
|
|
9
|
-
error,
|
|
10
|
-
request,
|
|
11
|
-
interceptor,
|
|
12
|
-
});
|
|
13
|
-
// Set the prototype explicitly.
|
|
14
|
-
// As specified in the documentation in TypeScript
|
|
15
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
16
|
-
Object.setPrototypeOf(this, ErrorResponseInterceptionExecutionError.prototype);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=error-response-interception-execution.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-response-interception-execution.error.js","sourceRoot":"","sources":["../../../../src/errors/error-response-interception-execution.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAU,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,MAAM,OAAO,uCAAwC,SAAQ,aAAa;IAExE,YAAmB,OAAe,EAAE,KAAY,EAAE,OAAgB,EAAE,WAAgB,EAAE,aAAqB;QACzG,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,KAAK;YACL,OAAO;YACP,WAAW;SACZ,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uCAAuC,CAAC,SAAS,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when there's an error when dispatching an event.
|
|
4
|
-
*/
|
|
5
|
-
export class EventDispatchingError extends LoggableError {
|
|
6
|
-
constructor(message, originalError, event) {
|
|
7
|
-
super(message, {
|
|
8
|
-
originalError,
|
|
9
|
-
event,
|
|
10
|
-
});
|
|
11
|
-
// Set the prototype explicitly.
|
|
12
|
-
// As specified in the documentation in TypeScript
|
|
13
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
14
|
-
Object.setPrototypeOf(this, EventDispatchingError.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=event-dispatching.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-dispatching.error.js","sourceRoot":"","sources":["../../../../src/errors/event-dispatching.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,aAAa;IAEtD,YAAmB,OAAe,EAAE,aAAoB,EAAE,KAAiB;QACzE,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,KAAK;SACN,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when an error happens in the execution of an event interceptor.
|
|
4
|
-
*/
|
|
5
|
-
export class EventInterceptionExecutionError extends LoggableError {
|
|
6
|
-
constructor(message, event, kernel, error) {
|
|
7
|
-
super(message, {
|
|
8
|
-
error,
|
|
9
|
-
event,
|
|
10
|
-
kernel,
|
|
11
|
-
});
|
|
12
|
-
// Set the prototype explicitly.
|
|
13
|
-
// As specified in the documentation in TypeScript
|
|
14
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
15
|
-
Object.setPrototypeOf(this, EventInterceptionExecutionError.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=event-interception-execution.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-interception-execution.error.js","sourceRoot":"","sources":["../../../../src/errors/event-interception-execution.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,+BAAgC,SAAQ,aAAa;IAEhE,YAAmB,OAAe,EAAE,KAAU,EAAE,MAAc,EAAE,KAAa;QAC3E,KAAK,CAAC,OAAO,EAAE;YACb,KAAK;YACL,KAAK;YACL,MAAM;SACP,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when there's an error while Mapping an Event in the EventPipeline
|
|
4
|
-
*/
|
|
5
|
-
export class EventMappingError extends LoggableError {
|
|
6
|
-
constructor(message, event, interceptedEvent, executionContext, originalError) {
|
|
7
|
-
super(message, {
|
|
8
|
-
event,
|
|
9
|
-
interceptedEvent,
|
|
10
|
-
executionContext,
|
|
11
|
-
originalError,
|
|
12
|
-
});
|
|
13
|
-
// Set the prototype explicitly.
|
|
14
|
-
// As specified in the documentation in TypeScript
|
|
15
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
16
|
-
Object.setPrototypeOf(this, EventMappingError.prototype);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=event-mapping.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-mapping.error.js","sourceRoot":"","sources":["../../../../src/errors/event-mapping.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAElD,YAAmB,OAAe,EAAE,KAAa,EAAE,gBAAwB,EAAE,gBAAgD,EAAE,aAAqB;QAClJ,KAAK,CAAC,OAAO,EAAE;YACb,KAAK;YACL,gBAAgB;YAChB,gBAAgB;YAChB,aAAa;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when there's an error when executing any event post mapping interceptors.
|
|
4
|
-
*/
|
|
5
|
-
export class EventPostMappingInterceptionError extends LoggableError {
|
|
6
|
-
constructor(message, originalError, interceptorName, event) {
|
|
7
|
-
super(message, {
|
|
8
|
-
originalError,
|
|
9
|
-
interceptorName,
|
|
10
|
-
event,
|
|
11
|
-
});
|
|
12
|
-
// Set the prototype explicitly.
|
|
13
|
-
// As specified in the documentation in TypeScript
|
|
14
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
15
|
-
Object.setPrototypeOf(this, EventPostMappingInterceptionError.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=event-post-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-post-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-post-mapping-interception.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,iCAAkC,SAAQ,aAAa;IAElE,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,KAAiB;QAClG,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,eAAe;YACf,KAAK;SACN,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iCAAiC,CAAC,SAAS,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when there's an error when executing any event pre mapping interceptors.
|
|
4
|
-
*/
|
|
5
|
-
export class EventPostResponseMappingInterceptionError extends LoggableError {
|
|
6
|
-
constructor(message, originalError, interceptorName, eventResponse) {
|
|
7
|
-
super(message, {
|
|
8
|
-
originalError,
|
|
9
|
-
interceptorName,
|
|
10
|
-
eventResponse,
|
|
11
|
-
});
|
|
12
|
-
// Set the prototype explicitly.
|
|
13
|
-
// As specified in the documentation in TypeScript
|
|
14
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
15
|
-
Object.setPrototypeOf(this, EventPostResponseMappingInterceptionError.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=event-post-response-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-post-response-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-post-response-mapping-interception.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD;;GAEG;AACH,MAAM,OAAO,yCAA0C,SAAQ,aAAa;IAE1E,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,aAAqB;QACtG,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,eAAe;YACf,aAAa;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yCAAyC,CAAC,SAAS,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when there's an error when executing any event pre mapping interceptors.
|
|
4
|
-
*/
|
|
5
|
-
export class EventPreMappingInterceptionError extends LoggableError {
|
|
6
|
-
constructor(message, originalError, interceptorName, event, executionContext) {
|
|
7
|
-
super(message, {
|
|
8
|
-
originalError,
|
|
9
|
-
event,
|
|
10
|
-
interceptorName,
|
|
11
|
-
executionContext,
|
|
12
|
-
});
|
|
13
|
-
// Set the prototype explicitly.
|
|
14
|
-
// As specified in the documentation in TypeScript
|
|
15
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
16
|
-
Object.setPrototypeOf(this, EventPreMappingInterceptionError.prototype);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=event-pre-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-pre-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-pre-mapping-interception.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,gCAAiC,SAAQ,aAAa;IAEjE,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,KAAa,EAAE,gBAAgD;QAChJ,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,KAAK;YACL,eAAe;YACf,gBAAgB;SACjB,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gCAAgC,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when there's an error when executing any event pre mapping interceptors.
|
|
4
|
-
*/
|
|
5
|
-
export class EventPreResponseMappingInterceptionError extends LoggableError {
|
|
6
|
-
constructor(message, originalError, interceptorName, eventResponse) {
|
|
7
|
-
super(message, {
|
|
8
|
-
originalError,
|
|
9
|
-
interceptorName,
|
|
10
|
-
eventResponse,
|
|
11
|
-
});
|
|
12
|
-
// Set the prototype explicitly.
|
|
13
|
-
// As specified in the documentation in TypeScript
|
|
14
|
-
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
15
|
-
Object.setPrototypeOf(this, EventPreResponseMappingInterceptionError.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=event-pre-response-mapping-interception.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-pre-response-mapping-interception.error.js","sourceRoot":"","sources":["../../../../src/errors/event-pre-response-mapping-interception.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,OAAO,wCAAyC,SAAQ,aAAa;IAEzE,YAAmB,OAAe,EAAE,aAAoB,EAAE,eAAuB,EAAE,aAAsC;QACvH,KAAK,CAAC,OAAO,EAAE;YACb,aAAa;YACb,eAAe;YACf,aAAa;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wCAAwC,CAAC,SAAS,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LoggableError, Request } from "@pristine-ts/common";
|
|
2
|
-
/**
|
|
3
|
-
* This Error is thrown when an error happens in the execution of an error response interceptor.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ErrorResponseInterceptionExecutionError extends LoggableError {
|
|
6
|
-
constructor(message: string, error: Error, request: Request, interceptor: any, previousError?: Error);
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LoggableError } from "@pristine-ts/common";
|
|
2
|
-
import { Event } from "../models/event";
|
|
3
|
-
/**
|
|
4
|
-
* This Error is thrown when there's an error when dispatching an event.
|
|
5
|
-
*/
|
|
6
|
-
export declare class EventDispatchingError extends LoggableError {
|
|
7
|
-
constructor(message: string, originalError: Error, event: Event<any>);
|
|
8
|
-
}
|