@parcel/logger 2.0.0-canary.1761 → 2.0.0-canary.1764

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/lib/Logger.js CHANGED
@@ -99,11 +99,11 @@ class PluginLogger {
99
99
  return Array.isArray(diagnostic) ? diagnostic.map(d => {
100
100
  return {
101
101
  ...d,
102
- origin: this.origin
102
+ origin: d.origin ?? this.origin
103
103
  };
104
104
  }) : {
105
105
  ...diagnostic,
106
- origin: this.origin
106
+ origin: diagnostic.origin ?? this.origin
107
107
  };
108
108
  }
109
109
  verbose(diagnostic) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/logger",
3
- "version": "2.0.0-canary.1761+d19b1f6bd",
3
+ "version": "2.0.0-canary.1764+8a15d0c64",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -20,8 +20,8 @@
20
20
  "node": ">= 16.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.0.0-canary.1761+d19b1f6bd",
24
- "@parcel/events": "2.0.0-canary.1761+d19b1f6bd"
23
+ "@parcel/diagnostic": "2.0.0-canary.1764+8a15d0c64",
24
+ "@parcel/events": "2.0.0-canary.1764+8a15d0c64"
25
25
  },
26
- "gitHead": "d19b1f6bdb05eb5a3085f44daae15c0fe2709ab9"
26
+ "gitHead": "8a15d0c64fc95a151bcf8b3f0428acc4cda745ee"
27
27
  }
package/src/Logger.js CHANGED
@@ -102,9 +102,9 @@ export class PluginLogger implements IPluginLogger {
102
102
  ): Diagnostic | Array<Diagnostic> {
103
103
  return Array.isArray(diagnostic)
104
104
  ? diagnostic.map(d => {
105
- return {...d, origin: this.origin};
105
+ return {...d, origin: d.origin ?? this.origin};
106
106
  })
107
- : {...diagnostic, origin: this.origin};
107
+ : {...diagnostic, origin: diagnostic.origin ?? this.origin};
108
108
  }
109
109
 
110
110
  verbose(