@digitaldefiance/i18n-lib 1.1.4 → 1.1.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/README.md +5 -0
- package/dist/context-error.d.ts +3 -2
- package/dist/context-error.js +8 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -936,6 +936,11 @@ Part of the DigitalBurnbag project - a secure file sharing and automated protoco
|
|
|
936
936
|
|
|
937
937
|
## ChangeLog
|
|
938
938
|
|
|
939
|
+
### Version 1.1.5
|
|
940
|
+
|
|
941
|
+
- Tue Oct 14 2025 14:48:00 GMT-0700 (Pacific Daylight Time)
|
|
942
|
+
- HotFix for GlobalActiveContext
|
|
943
|
+
|
|
939
944
|
### Version 1.1.4
|
|
940
945
|
|
|
941
946
|
- Tue Oct 14 2025 14:21:00 GMT-0700 (Pacific Daylight Time)
|
package/dist/context-error.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContextErrorType } from './context-error-type';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare class ContextError extends Error {
|
|
3
|
+
readonly type: ContextErrorType;
|
|
4
|
+
readonly contextKey?: string;
|
|
4
5
|
constructor(type: ContextErrorType, contextKey?: string);
|
|
5
6
|
}
|
package/dist/context-error.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContextError = void 0;
|
|
4
|
-
|
|
5
|
-
const core_string_key_1 = require("./core-string-key");
|
|
6
|
-
const plugin_i18n_engine_1 = require("./plugin-i18n-engine");
|
|
7
|
-
const typed_error_1 = require("./typed-error");
|
|
8
|
-
class ContextError extends typed_error_1.CoreTypedError {
|
|
4
|
+
class ContextError extends Error {
|
|
9
5
|
constructor(type, contextKey) {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
const message = contextKey
|
|
7
|
+
? `Invalid context: ${contextKey}`
|
|
8
|
+
: 'Invalid context';
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = 'ContextError';
|
|
11
|
+
this.type = type;
|
|
12
|
+
this.contextKey = contextKey;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
exports.ContextError = ContextError;
|