From 95f532b565062c4ea7a4ad7e35eae1123b503184 Mon Sep 17 00:00:00 2001 From: Jonathan Edey Date: Mon, 25 Nov 2024 11:07:46 -0500 Subject: [PATCH] feat: Support `fire-admin` tag for Admin Node SDK --- dev/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/src/index.ts b/dev/src/index.ts index 46ad88dfd..aaa2c490d 100644 --- a/dev/src/index.ts +++ b/dev/src/index.ts @@ -588,6 +588,11 @@ export class Firestore implements firestore.Firestore { libraryHeader.libVersion += ' fire/' + settings.firebaseVersion; } + if (settings && settings.firebaseAdminVersion) { + libraryHeader.libVersion += + ' fire-admin/' + settings.firebaseAdminVersion; + } + this.validateAndApplySettings({...settings, ...libraryHeader}); this._traceUtil = this.newTraceUtilInstance(this._settings);