(options: NodeOptions | undefined = {})
| 7 | * Initializes the Nitro SDK |
| 8 | */ |
| 9 | export function init(options: NodeOptions | undefined = {}): NodeClient | undefined { |
| 10 | const opts: NodeOptions = { |
| 11 | ...options, |
| 12 | }; |
| 13 | |
| 14 | if (opts.defaultIntegrations === undefined) { |
| 15 | opts.defaultIntegrations = getDefaultIntegrations(opts); |
| 16 | } |
| 17 | |
| 18 | applySdkMetadata(opts, 'nitro', ['nitro', 'node']); |
| 19 | |
| 20 | const client = nodeInit(opts); |
| 21 | |
| 22 | return client; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Get the default integrations for the Nitro SDK. |
nothing calls this directly
no test coverage detected