@worldware/msg 0.6.3 → 0.6.4

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.
@@ -124,7 +124,12 @@ var MsgResource = class _MsgResource extends Map {
124
124
  const messages = [];
125
125
  this.forEach((msg) => {
126
126
  if (this.hasMatchingAttributes(msg)) {
127
- messages.push({ key: msg.key, value: msg.value });
127
+ const data = {
128
+ key: msg.key,
129
+ value: msg.value,
130
+ notes: !stripNotes && msg.notes.length > 0 ? msg.notes : void 0
131
+ };
132
+ messages.push(data);
128
133
  } else {
129
134
  messages.push(msg.getData(stripNotes));
130
135
  }
@@ -216,7 +216,12 @@ var MsgResource = class _MsgResource extends Map {
216
216
  const messages = [];
217
217
  this.forEach((msg) => {
218
218
  if (this.hasMatchingAttributes(msg)) {
219
- messages.push({ key: msg.key, value: msg.value });
219
+ const data = {
220
+ key: msg.key,
221
+ value: msg.value,
222
+ notes: !stripNotes && msg.notes.length > 0 ? msg.notes : void 0
223
+ };
224
+ messages.push(data);
220
225
  } else {
221
226
  messages.push(msg.getData(stripNotes));
222
227
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MsgResource
3
- } from "../../chunk-7LI2M4JY.mjs";
3
+ } from "../../chunk-AWSZFTAJ.mjs";
4
4
  import "../../chunk-WUDKNZV2.mjs";
5
5
  import "../../chunk-QWBDIKQK.mjs";
6
6
  export {
@@ -218,7 +218,12 @@ var MsgResource = class _MsgResource extends Map {
218
218
  const messages = [];
219
219
  this.forEach((msg) => {
220
220
  if (this.hasMatchingAttributes(msg)) {
221
- messages.push({ key: msg.key, value: msg.value });
221
+ const data = {
222
+ key: msg.key,
223
+ value: msg.value,
224
+ notes: !stripNotes && msg.notes.length > 0 ? msg.notes : void 0
225
+ };
226
+ messages.push(data);
222
227
  } else {
223
228
  messages.push(msg.getData(stripNotes));
224
229
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-XS43NAP2.mjs";
5
5
  import {
6
6
  MsgResource
7
- } from "../chunk-7LI2M4JY.mjs";
7
+ } from "../chunk-AWSZFTAJ.mjs";
8
8
  import {
9
9
  MsgMessage
10
10
  } from "../chunk-WUDKNZV2.mjs";
package/dist/index.cjs CHANGED
@@ -218,7 +218,12 @@ var MsgResource = class _MsgResource extends Map {
218
218
  const messages = [];
219
219
  this.forEach((msg) => {
220
220
  if (this.hasMatchingAttributes(msg)) {
221
- messages.push({ key: msg.key, value: msg.value });
221
+ const data = {
222
+ key: msg.key,
223
+ value: msg.value,
224
+ notes: !stripNotes && msg.notes.length > 0 ? msg.notes : void 0
225
+ };
226
+ messages.push(data);
222
227
  } else {
223
228
  messages.push(msg.getData(stripNotes));
224
229
  }
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XS43NAP2.mjs";
5
5
  import {
6
6
  MsgResource
7
- } from "./chunk-7LI2M4JY.mjs";
7
+ } from "./chunk-AWSZFTAJ.mjs";
8
8
  import {
9
9
  MsgMessage
10
10
  } from "./chunk-WUDKNZV2.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldware/msg",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Message localization tooling",
5
5
  "license": "MIT",
6
6
  "author": "Joel Sahleen",