File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33 *
44 *
55 */
6- pjson = require ( '../package.json' ) ;
6+ var pjson = require ( '../package.json' ) ;
7+
8+ // some bundlers prevents import of json files
9+ var version = pjson ? pjson . version : '2.1.6' ;
710
811var configuration = {
912 //The base Uri for API calls
1013 BaseUri : "https://api.moesif.net" ,
1114
1215 //Your Application Id for authentication/authorization
1316 ApplicationId : "SET_ME" ,
14- UserAgent : 'moesifapi-nodejs/' + pjson . version
17+ UserAgent : 'moesifapi-nodejs/' + version
1518
1619} ;
1720
Original file line number Diff line number Diff line change 11{
22 "name" : " moesifapi" ,
3- "version" : " 2.1.5 " ,
3+ "version" : " 2.1.6 " ,
44 "description" : " Collection/Data Ingestion API for Moesif" ,
55 "main" : " ./lib/index.js" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments