From 1339dc20e3ffc065f5f79a82baaa67deda76fb36 Mon Sep 17 00:00:00 2001 From: Mark Duckworth <1124037+MarkDuckworth@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:39:38 -0700 Subject: [PATCH] feat: Support `fire-admin` tag for Admin Node SDK (#2238) (#2252) Co-authored-by: Jonathan Edey <145066863+jonathanedey@users.noreply.github.com> --- dev/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/src/index.ts b/dev/src/index.ts index 5bf9c2217..007c08dda 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);