GoogleCloudPlatform / cloud-sql-nodejs-connector

A JavaScript library for connecting securely to your Cloud SQL instances
Apache License 2.0
66 stars 8 forks source link

feat: add `universeDomain` option to Connector #331

Closed jackwotherspoon closed 4 months ago

jackwotherspoon commented 4 months ago

In googleapis-common v7.1.0 a GlobalOption for universeDomain was added with the respective error handling for TPC support.

This gives the Node Connector support TPC by adding the universeDomain as a ConnectorOptions:

import { Connector } from '@google-cloud/cloud-sql-connector';

const connector = new Connector({
    universeDomain: 'my-universe-domain'
});

Ref: https://github.com/googleapis/nodejs-googleapis-common/pull/548