File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
test/unit/cloudinaryUtils Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ exports.CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
8080exports . OLD_AKAMAI_SHARED_CDN = "cloudinary-a.akamaihd.net" ;
8181exports . AKAMAI_SHARED_CDN = "res.cloudinary.com" ;
8282exports . SHARED_CDN = exports . AKAMAI_SHARED_CDN ;
83- exports . USER_AGENT = `CloudinaryNodeJS/${ exports . VERSION } ` ;
83+ exports . USER_AGENT = `CloudinaryNodeJS/${ exports . VERSION } (Node ${ process . versions . node } ) ` ;
8484
8585// Add platform information to the USER_AGENT header
8686// This is intended for platform information and not individual applications!
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ exports.CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";
6666exports . OLD_AKAMAI_SHARED_CDN = "cloudinary-a.akamaihd.net" ;
6767exports . AKAMAI_SHARED_CDN = "res.cloudinary.com" ;
6868exports . SHARED_CDN = exports . AKAMAI_SHARED_CDN ;
69- exports . USER_AGENT = `CloudinaryNodeJS/${ exports . VERSION } ` ;
69+ exports . USER_AGENT = `CloudinaryNodeJS/${ exports . VERSION } (Node ${ process . versions . node } ) ` ;
7070
7171// Add platform information to the USER_AGENT header
7272// This is intended for platform information and not individual applications!
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ describe("getUserAgent", function () {
1212 } ) ;
1313 it ( "should add a user platform to USER_AGENT" , function ( ) {
1414 cloudinary . utils . userPlatform = "Spec/1.0 (Test)" ;
15- expect ( cloudinary . utils . getUserAgent ( ) ) . to . match ( / S p e c \/ 1 .0 \( T e s t \) C l o u d i n a r y N o d e J S \/ [ \d . ] + / ) ;
15+ expect ( cloudinary . utils . getUserAgent ( ) ) . to . match ( / S p e c \/ 1 .0 \( T e s t \) C l o u d i n a r y N o d e J S \/ [ \d . ] + \( N o d e [ \d . ] + \) / ) ;
1616 } ) ;
1717} ) ;
You can’t perform that action at this time.
0 commit comments