@digitaldefiance/i18n-lib 1.1.7 → 1.1.8
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/translatable-generic-error.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1026,6 +1026,11 @@ Part of the DigitalBurnbag project - a secure file sharing and automated protoco
|
|
|
1026
1026
|
|
|
1027
1027
|
## ChangeLog
|
|
1028
1028
|
|
|
1029
|
+
### Version 1.1.8
|
|
1030
|
+
|
|
1031
|
+
- Wed Oct 15 2025 16:43:00 GMT-0700 (Pacific Daylight Time)
|
|
1032
|
+
- Fix to translatable prototype inheritance
|
|
1033
|
+
|
|
1029
1034
|
### Version 1.1.7
|
|
1030
1035
|
|
|
1031
1036
|
- Wed Oct 15 2025 16:13:00 GMT-0700 (Pacific Daylight Time)
|
|
@@ -32,7 +32,8 @@ class TranslatableGenericError extends Error {
|
|
|
32
32
|
this.language = language;
|
|
33
33
|
this.variables = variables;
|
|
34
34
|
this.metadata = metadata;
|
|
35
|
-
|
|
35
|
+
// Ensure proper prototype chain for instanceof checks across transpiled targets
|
|
36
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Create error with explicit engine instance
|