File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import { TinyEmitter } from 'tiny-emitter';
33import { Base64 } from 'js-base64' ;
44import { FPUser } from './FPUser' ;
55
6+ const PKG_VERSION = require ( "../package.json" ) . version ;
7+ const USER_AGENT = "Js/" + PKG_VERSION ;
8+
69const EVENTS = {
710 READY : 'ready' ,
811 ERROR : 'error' ,
@@ -212,6 +215,7 @@ class FeatureProbe extends TinyEmitter {
212215 headers : {
213216 Authorization : this . clientSdkKey ,
214217 'Content-Type' : 'application/json' ,
218+ 'User-Agent' : USER_AGENT ,
215219 } ,
216220 } )
217221 . then ( ( response ) => {
@@ -251,6 +255,7 @@ class FeatureProbe extends TinyEmitter {
251255 headers : {
252256 Authorization : this . clientSdkKey ,
253257 'Content-Type' : 'application/json' ,
258+ 'User-Agent' : USER_AGENT ,
254259 } ,
255260 body : JSON . stringify ( payload ) ,
256261 } ) ;
You can’t perform that action at this time.
0 commit comments