@worldware/msg 0.8.1 → 0.10.0

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.
Files changed (37) hide show
  1. package/README.md +2 -1
  2. package/dist/{chunk-NWJ7MVVV.mjs → chunk-DJFPVXQ5.mjs} +15 -0
  3. package/dist/{chunk-X6CRKSNU.mjs → chunk-HUWFAJAN.mjs} +82 -4
  4. package/dist/chunk-KQTWUIAM.mjs +0 -0
  5. package/dist/{chunk-HCR2UNSE.mjs → chunk-OKEV7FY7.mjs} +52 -2
  6. package/dist/chunk-PU7ZZ5XH.mjs +13 -0
  7. package/dist/classes/MsgInterface/MsgInterface.d.cts +24 -1
  8. package/dist/classes/MsgInterface/MsgInterface.d.ts +24 -1
  9. package/dist/classes/MsgMessage/MsgMessage.cjs +52 -2
  10. package/dist/classes/MsgMessage/MsgMessage.d.cts +61 -2
  11. package/dist/classes/MsgMessage/MsgMessage.d.ts +61 -2
  12. package/dist/classes/MsgMessage/MsgMessage.mjs +1 -1
  13. package/dist/classes/MsgProject/MsgProject.cjs +15 -0
  14. package/dist/classes/MsgProject/MsgProject.d.cts +1 -1
  15. package/dist/classes/MsgProject/MsgProject.d.ts +1 -1
  16. package/dist/classes/MsgProject/MsgProject.mjs +1 -1
  17. package/dist/classes/MsgResource/MsgResource.cjs +133 -5
  18. package/dist/classes/MsgResource/MsgResource.d.cts +3 -78
  19. package/dist/classes/MsgResource/MsgResource.d.ts +3 -78
  20. package/dist/classes/MsgResource/MsgResource.mjs +2 -2
  21. package/dist/classes/index.cjs +148 -5
  22. package/dist/classes/index.d.cts +209 -3
  23. package/dist/classes/index.d.ts +209 -3
  24. package/dist/classes/index.mjs +5 -5
  25. package/dist/index.cjs +170 -14
  26. package/dist/index.d.cts +3 -2
  27. package/dist/index.d.ts +3 -2
  28. package/dist/index.mjs +13 -6
  29. package/dist/lib/index.cjs +40 -0
  30. package/dist/lib/index.d.cts +1 -0
  31. package/dist/lib/index.d.ts +1 -0
  32. package/dist/lib/index.mjs +9 -0
  33. package/dist/lib/lang-utils.cjs +38 -0
  34. package/dist/lib/lang-utils.d.cts +14 -0
  35. package/dist/lib/lang-utils.d.ts +14 -0
  36. package/dist/lib/lang-utils.mjs +8 -0
  37. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/lib/index.ts
21
+ var lib_exports = {};
22
+ __export(lib_exports, {
23
+ getLang: () => getLang,
24
+ setLang: () => setLang
25
+ });
26
+ module.exports = __toCommonJS(lib_exports);
27
+
28
+ // src/lib/lang-utils.ts
29
+ var lang;
30
+ function setLang(tag) {
31
+ lang = tag;
32
+ }
33
+ function getLang() {
34
+ return lang;
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ getLang,
39
+ setLang
40
+ });
@@ -0,0 +1 @@
1
+ export { getLang, setLang } from './lang-utils.cjs';
@@ -0,0 +1 @@
1
+ export { getLang, setLang } from './lang-utils.js';
@@ -0,0 +1,9 @@
1
+ import "../chunk-KQTWUIAM.mjs";
2
+ import {
3
+ getLang,
4
+ setLang
5
+ } from "../chunk-PU7ZZ5XH.mjs";
6
+ export {
7
+ getLang,
8
+ setLang
9
+ };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/lib/lang-utils.ts
21
+ var lang_utils_exports = {};
22
+ __export(lang_utils_exports, {
23
+ getLang: () => getLang,
24
+ setLang: () => setLang
25
+ });
26
+ module.exports = __toCommonJS(lang_utils_exports);
27
+ var lang;
28
+ function setLang(tag) {
29
+ lang = tag;
30
+ }
31
+ function getLang() {
32
+ return lang;
33
+ }
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ getLang,
37
+ setLang
38
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Set value of lang
3
+ *
4
+ * @param tag string
5
+ */
6
+ declare function setLang(tag: string): void;
7
+ /**
8
+ * Returns value of lang;
9
+ *
10
+ * @returns string | undefined
11
+ */
12
+ declare function getLang(): string | undefined;
13
+
14
+ export { getLang, setLang };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Set value of lang
3
+ *
4
+ * @param tag string
5
+ */
6
+ declare function setLang(tag: string): void;
7
+ /**
8
+ * Returns value of lang;
9
+ *
10
+ * @returns string | undefined
11
+ */
12
+ declare function getLang(): string | undefined;
13
+
14
+ export { getLang, setLang };
@@ -0,0 +1,8 @@
1
+ import {
2
+ getLang,
3
+ setLang
4
+ } from "../chunk-PU7ZZ5XH.mjs";
5
+ export {
6
+ getLang,
7
+ setLang
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldware/msg",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "description": "Message localization tooling",
5
5
  "license": "MIT",
6
6
  "author": "Joel Sahleen",