@mark1russell7/otel-ts 0.10.2 → 0.10.3

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 (1) hide show
  1. package/package.json +31 -19
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/otel-ts",
4
- "version": "0.10.2",
4
+ "version": "0.10.3",
5
5
  "description": "Frontend observability in one init() call — OpenTelemetry + Grafana Faro for any TypeScript web app",
6
6
  "license": "MIT",
7
7
  "author": "Mark Russell (https://github.com/mark1russell7)",
@@ -22,55 +22,68 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
- "import": "./dist/index.js"
25
+ "import": "./dist/index.js",
26
+ "default": "./dist/index.js"
26
27
  },
27
28
  "./zone": {
28
29
  "types": "./dist/zone.d.ts",
29
- "import": "./dist/zone.js"
30
+ "import": "./dist/zone.js",
31
+ "default": "./dist/zone.js"
30
32
  },
31
33
  "./core": {
32
34
  "types": "./dist/core.d.ts",
33
- "import": "./dist/core.js"
35
+ "import": "./dist/core.js",
36
+ "default": "./dist/core.js"
34
37
  },
35
38
  "./context": {
36
39
  "types": "./dist/context.d.ts",
37
- "import": "./dist/context.js"
40
+ "import": "./dist/context.js",
41
+ "default": "./dist/context.js"
38
42
  },
39
43
  "./incoming-span": {
40
44
  "types": "./dist/incoming-span.d.ts",
41
- "import": "./dist/incoming-span.js"
45
+ "import": "./dist/incoming-span.js",
46
+ "default": "./dist/incoming-span.js"
42
47
  },
43
48
  "./node": {
44
49
  "types": "./dist/node.d.ts",
45
- "import": "./dist/node.js"
50
+ "import": "./dist/node.js",
51
+ "default": "./dist/node.js"
46
52
  },
47
53
  "./node/context": {
48
54
  "types": "./dist/node-context.d.ts",
49
- "import": "./dist/node-context.js"
55
+ "import": "./dist/node-context.js",
56
+ "default": "./dist/node-context.js"
50
57
  },
51
58
  "./node/testing": {
52
59
  "types": "./dist/node-testing.d.ts",
53
- "import": "./dist/node-testing.js"
60
+ "import": "./dist/node-testing.js",
61
+ "default": "./dist/node-testing.js"
54
62
  },
55
63
  "./lag": {
56
64
  "types": "./dist/lag.d.ts",
57
- "import": "./dist/lag.js"
65
+ "import": "./dist/lag.js",
66
+ "default": "./dist/lag.js"
58
67
  },
59
68
  "./pull": {
60
69
  "types": "./dist/pull.d.ts",
61
- "import": "./dist/pull.js"
70
+ "import": "./dist/pull.js",
71
+ "default": "./dist/pull.js"
62
72
  },
63
73
  "./error": {
64
74
  "types": "./dist/error-record.d.ts",
65
- "import": "./dist/error-record.js"
75
+ "import": "./dist/error-record.js",
76
+ "default": "./dist/error-record.js"
66
77
  },
67
78
  "./error-view": {
68
79
  "types": "./dist/error-view.d.ts",
69
- "import": "./dist/error-view.js"
80
+ "import": "./dist/error-view.js",
81
+ "default": "./dist/error-view.js"
70
82
  },
71
83
  "./call-trace": {
72
84
  "types": "./dist/call-trace.d.ts",
73
- "import": "./dist/call-trace.js"
85
+ "import": "./dist/call-trace.js",
86
+ "default": "./dist/call-trace.js"
74
87
  }
75
88
  },
76
89
  "files": [
@@ -80,8 +93,8 @@
80
93
  ],
81
94
  "sideEffects": false,
82
95
  "dependencies": {
83
- "@mark1russell7/text": "^0.0.20",
84
96
  "@grafana/faro-web-sdk": "^2.13.0",
97
+ "@mark1russell7/text": "^0.0.20",
85
98
  "@opentelemetry/api": "^1.10.0",
86
99
  "@opentelemetry/auto-instrumentations-web": "^0.70.1",
87
100
  "@opentelemetry/context-async-hooks": "^3.1.1",
@@ -115,6 +128,7 @@
115
128
  }
116
129
  },
117
130
  "devDependencies": {
131
+ "@mark1russell7/api-report": "^0.5.22",
118
132
  "@mark1russell7/conventions": "^0.52.8",
119
133
  "@mark1russell7/grafana-infra": "github:mark1russell7/grafana-infra#618d1ab7042455f81a81e219af6d33022551305e",
120
134
  "@mark1russell7/lag": "^0.5.0",
@@ -139,9 +153,6 @@
139
153
  "bench/*.mjs"
140
154
  ],
141
155
  "reason": "The memory bench (bench/*.mjs) moves to TypeScript with its own types and test in a later change. A new script must be TypeScript."
142
- },
143
- "api-report-script": {
144
- "off": "The API report of the package comes in a later change: its first report needs a build and a review of each export."
145
156
  }
146
157
  }
147
158
  },
@@ -153,6 +164,7 @@
153
164
  "infra:down": "cd node_modules/@mark1russell7/grafana-infra && docker compose down",
154
165
  "infra:logs": "cd node_modules/@mark1russell7/grafana-infra && docker compose logs -f",
155
166
  "test": "vitest run",
156
- "check:conventions": "conventions check"
167
+ "check:conventions": "conventions check",
168
+ "check:api": "api-report check"
157
169
  }
158
170
  }