File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @agility/content-fetch" ,
3- "version" : " 0.4.0 " ,
3+ "version" : " 0.4.1 " ,
44 "description" : " JavaScript library for the Agility Fetch API (node and browser)" ,
55 "main" : " dist/agility-content-fetch.node.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11import agility from '../src/content-fetch'
22
3- // Agility Instance = 'Headless Integration Testing'
3+ // Agility Instance = 'Headless Integration Testing' [Dev]
44const instanceID = 'c741222b-1080-45f6-9a7f-982381c5a485' ;
55const accessTokenFetch = 'UnitTestsFetch.2ace650991363fbcffa6776d411d1b0d616b8e3424ce842b81cba7af0039197e' ;
66const accessTokenPreview = 'UnitTestsPreview.69e6bca345ced0b7ca5ab358b351ea5c870790a5945c25d749a865332906b124' ;
77
88function createApiClient ( ) {
99 var api = agility . getApi ( {
1010 instanceID : instanceID ,
11- accessToken : accessTokenFetch ,
12- baseUrl : 'https://agility-fetch-api-dev.azurewebsites.net'
11+ accessToken : accessTokenFetch
1312 } ) ;
1413 return api ;
1514}
@@ -20,8 +19,7 @@ function createCachedApiClient() {
2019 accessToken : accessTokenFetch ,
2120 caching : {
2221 maxAge : 5 * 60 * 1000 //==5mins
23- } ,
24- baseUrl : 'https://agility-fetch-api-dev.azurewebsites.net'
22+ }
2523 } ) ;
2624 return api ;
2725}
@@ -30,8 +28,7 @@ function createPreviewApiClient() {
3028 var api = agility . getApi ( {
3129 instanceID : instanceID ,
3230 accessToken : accessTokenPreview ,
33- isPreview : true ,
34- baseUrl : 'https://agility-fetch-api-dev.azurewebsites.net'
31+ isPreview : true
3532 } ) ;
3633 return api ;
3734}
You can’t perform that action at this time.
0 commit comments