@upyo/opentelemetry 0.5.0-dev.174 → 0.5.0-dev.178

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/dist/index.cjs CHANGED
@@ -117,7 +117,7 @@ function defaultErrorClassifier(error) {
117
117
  //#endregion
118
118
  //#region package.json
119
119
  var name = "@upyo/opentelemetry";
120
- var version = "0.5.0-dev.174+b968510a";
120
+ var version = "0.5.0-dev.178+9cbf1b9b";
121
121
  var description = "OpenTelemetry observability transport for Upyo email library";
122
122
  var keywords = [
123
123
  "email",
@@ -795,7 +795,7 @@ var OpenTelemetryTransport = class {
795
795
  }
796
796
  extractTransportName(transport) {
797
797
  if (typeof transport.id === "string" && transport.id !== "") return transport.id;
798
- const constructorName = transport.constructor.name;
798
+ const constructorName = transport.constructor?.name;
799
799
  if (constructorName && constructorName !== "Object") return constructorName.toLowerCase().replace("transport", "");
800
800
  if ("config" in transport && transport.config && typeof transport.config === "object") {
801
801
  if ("domain" in transport.config) return "mailgun";
package/dist/index.js CHANGED
@@ -94,7 +94,7 @@ function defaultErrorClassifier(error) {
94
94
  //#endregion
95
95
  //#region package.json
96
96
  var name = "@upyo/opentelemetry";
97
- var version = "0.5.0-dev.174+b968510a";
97
+ var version = "0.5.0-dev.178+9cbf1b9b";
98
98
  var description = "OpenTelemetry observability transport for Upyo email library";
99
99
  var keywords = [
100
100
  "email",
@@ -772,7 +772,7 @@ var OpenTelemetryTransport = class {
772
772
  }
773
773
  extractTransportName(transport) {
774
774
  if (typeof transport.id === "string" && transport.id !== "") return transport.id;
775
- const constructorName = transport.constructor.name;
775
+ const constructorName = transport.constructor?.name;
776
776
  if (constructorName && constructorName !== "Object") return constructorName.toLowerCase().replace("transport", "");
777
777
  if ("config" in transport && transport.config && typeof transport.config === "object") {
778
778
  if ("domain" in transport.config) return "mailgun";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upyo/opentelemetry",
3
- "version": "0.5.0-dev.174",
3
+ "version": "0.5.0-dev.178",
4
4
  "description": "OpenTelemetry observability transport for Upyo email library",
5
5
  "keywords": [
6
6
  "email",
@@ -58,7 +58,7 @@
58
58
  "sideEffects": false,
59
59
  "peerDependencies": {
60
60
  "@opentelemetry/api": "^1.9.0",
61
- "@upyo/core": "0.5.0-dev.174+b968510a"
61
+ "@upyo/core": "0.5.0-dev.178+9cbf1b9b"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@opentelemetry/api": "^1.9.0",