@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 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)
@@ -1,5 +1,6 @@
1
1
  import { ContextErrorType } from './context-error-type';
2
- import { CoreTypedError } from './typed-error';
3
- export declare class ContextError extends CoreTypedError<typeof ContextErrorType> {
2
+ export declare class ContextError extends Error {
3
+ readonly type: ContextErrorType;
4
+ readonly contextKey?: string;
4
5
  constructor(type: ContextErrorType, contextKey?: string);
5
6
  }
@@ -1,16 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContextError = void 0;
4
- const context_error_type_1 = require("./context-error-type");
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 engine = plugin_i18n_engine_1.PluginI18nEngine.getInstance();
11
- super(engine, type, {
12
- [context_error_type_1.ContextErrorType.InvalidContext]: core_string_key_1.CoreStringKey.Error_InvalidContextTemplate,
13
- }, undefined, { ...(contextKey && { contextKey }) });
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/i18n-lib",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Generic i18n library with enum translation support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",