Skip to content

Commit 29ae9e4

Browse files
authored
Merge branch 'main' into @invertase/feat-add-python-disable-gunicorn-flag
2 parents 85f8e93 + 7781a66 commit 29ae9e4

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

npm-shrinkwrap.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-tools",
3-
"version": "15.22.2",
3+
"version": "15.22.3",
44
"description": "Command-Line Interface for Firebase",
55
"main": "./lib/index.js",
66
"mcpName": "io.github.firebase/firebase-mcp",

scripts/publish/cloudbuild.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,17 @@ steps:
134134
sleep 60
135135
echo "Package firebase-tools@$(cat /workspace/version_number.txt) is now available on npm."
136136
137-
# Set up the hub credentials for firepit-builder.
137+
# Set up the hub and npm credentials for firepit-builder.
138138
- name: "gcr.io/$PROJECT_ID/firepit-builder"
139139
entrypoint: "bash"
140140
args:
141141
- "-c"
142142
- |
143143
if [ "${_VERSION}" != "preview" ]; then
144144
mkdir -vp ~/.config && cp -v hub ~/.config/hub
145+
cp -v npmrc ~/.npmrc
145146
else
146-
echo "Skipping hub credentials for firepit-builder for preview."
147+
echo "Skipping credentials for firepit-builder for preview."
147148
fi
148149
149150
# Publish the firepit builds.

src/apiv2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function proxyURIFromEnv(): string | undefined {
168168
// https://github.com/node-fetch/node-fetch/issues/1767.
169169
const httpAgentNoKeepAlive = new http.Agent({ keepAlive: false });
170170
const httpsAgentNoKeepAlive = new https.Agent({ keepAlive: false });
171-
function noKeepAliveAgent(parsedURL: URL): http.Agent | https.Agent {
171+
export function noKeepAliveAgent(parsedURL: URL): http.Agent | https.Agent {
172172
return parsedURL.protocol === "https:" ? httpsAgentNoKeepAlive : httpAgentNoKeepAlive;
173173
}
174174

src/requireAuth.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,18 @@ function getAuthClient(config: GoogleAuthOptions): GoogleAuth {
2828
return authClient;
2929
}
3030

31-
authClient = new GoogleAuth(config);
31+
const authConfig: GoogleAuthOptions = {
32+
...config,
33+
clientOptions: {
34+
...config.clientOptions,
35+
transporterOptions: {
36+
...config.clientOptions?.transporterOptions,
37+
agent: apiv2.noKeepAliveAgent,
38+
},
39+
},
40+
};
41+
42+
authClient = new GoogleAuth(authConfig);
3243
return authClient;
3344
}
3445

0 commit comments

Comments
 (0)