@adobe/spacecat-shared-utils 1.77.0 → 1.77.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@adobe/spacecat-shared-utils-v1.77.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.77.0...@adobe/spacecat-shared-utils-v1.77.1) (2025-11-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **utils:** correct logWrapper format string handling ([#1156](https://github.com/adobe/spacecat-shared/issues/1156)) ([dabe38c](https://github.com/adobe/spacecat-shared/commit/dabe38c258b2a221c6733165657e856d978e5636))
7
+
1
8
  # [@adobe/spacecat-shared-utils-v1.77.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.76.0...@adobe/spacecat-shared-utils-v1.77.0) (2025-11-20)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.77.0",
3
+ "version": "1.77.1",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -59,7 +59,14 @@ export function logWrapper(fn) {
59
59
  // Enhance context.log directly to include markers in all log statements
60
60
  context.log = logLevels.reduce((accumulator, level) => {
61
61
  if (typeof log[level] === 'function') {
62
- accumulator[level] = (...args) => log[level](markerString, ...args);
62
+ accumulator[level] = (...args) => {
63
+ // If first argument is a string (format string), prepend the marker to it
64
+ if (args.length > 0 && typeof args[0] === 'string') {
65
+ const enhancedArgs = [`${markerString} ${args[0]}`, ...args.slice(1)];
66
+ return log[level](...enhancedArgs);
67
+ }
68
+ return log[level](...args);
69
+ };
63
70
  }
64
71
  return accumulator;
65
72
  }, {});