Commit c08b05b
authored
fix(node): Allow for
fixes #15558
The Node SDK init options allow for `transport` to be set as
`undefined`, but this breaks because of an error `TypeError:
options.transport is not a function`.
You can see a reproduction of this here:
https://stackblitz.com/edit/stackblitz-starters-phh3lfmy?file=index.ts
To fix this, we make sure we use `makeNodeTransport` if
`options.transport` is set to `undefined`.undefined transport to be passed in (#15560)1 parent d95ef57 commit c08b05b
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
| |||
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
0 commit comments