File tree Expand file tree Collapse file tree 8 files changed +32
-21
lines changed Expand file tree Collapse file tree 8 files changed +32
-21
lines changed Original file line number Diff line number Diff line change 11## Change log  
22
3+ ### Version: 3.17.1  
4+ #### Date: April-18-2023  
5+ ##### Bug fix:  
6+  -  Access token for header issue resolved
7+ 
8+ ### Version: 3.17.0  
9+ #### Date: March-30-2023  
10+ ##### Bug fix:  
11+  -  Cache set issue resolved
12+  -  Type-definition for SyncResult updated
13+ 
14+ ### Version: 3.16.1  
15+ #### Date: February-28-2023  
16+  -  Package dependency updated
317### Version: 3.16.0  
418#### Date: February-10-2023  
519#####  New Features:  
Original file line number Diff line number Diff line change 1818            " src/core/cache.js" 
1919        ]
2020    },
21-     "templates" : 
22-     {
23-         "default" : 
24-         {
25-             "staticFiles" : 
26-             {
27-                 "include" : [ " ./contentstack-templates/favicon.ico" 
28-             }
29-         }
30-     },
3121    "tags" : {
3222        "dictionaries" : [" jsdoc" " closure" 
3323        "allowUnknownTags" : true 
Original file line number Diff line number Diff line change 11{
22  "name" : " contentstack" 
3-   "version" : " 3.17.0 " 
3+   "version" : " 3.17.1 " 
44  "description" : " Contentstack Javascript SDK" 
55  "homepage" : " https://www.contentstack.com/" 
66  "author" : {
8989    "nodemailer" : " ^6.9.1" 
9090    "request" : " ^2.88.2" 
9191    "string-replace-loader" : " 1.3.0" 
92+     "taffydb" : " ^2.7.3" 
9293    "tap" : " ^16.3.4" 
9394    "tap-html" : " ^1.1.0" 
9495    "tap-json" : " 1.0.0" 
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export default class Assets {
120120        if  ( this . asset_uid )  { 
121121            this . requestParams  =  { 
122122                method : 'POST' , 
123-                 headers : this . headers , 
123+                 headers : Utils . mergeDeep ( { } ,   this . headers ) , 
124124                url : this . config . protocol  +  "://"  +  this . config . host  +  ':'  +  this . config . port  +  '/'  +  this . config . version  +  this . config . urls . assets  +  this . asset_uid , 
125125                body : { 
126126                    _method : 'GET' , 
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ export default class Entry {
355355        if  ( this . entry_uid )  { 
356356            this . requestParams  =  { 
357357                method : 'POST' , 
358-                 headers : this . headers , 
358+                 headers : Utils . mergeDeep ( { } ,   this . headers ) , 
359359                url : this . config . protocol  +  "://"  +  host  +  '/'  +  this . config . version  +  this . config . urls . content_types  +  this . content_type_uid  +  this . config . urls . entries  +  this . entry_uid , 
360360                body : { 
361361                    _method : 'GET' , 
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ export default class Query extends Entry {
445445        this . _query [ 'count' ]  =  true ; 
446446        this . requestParams  =  { 
447447            method : 'POST' , 
448-             headers : this . headers , 
448+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
449449            url : url , 
450450            body : { 
451451                _method : 'GET' , 
@@ -754,7 +754,7 @@ export default class Query extends Entry {
754754            url  =  ( this . type  &&  this . type  ===  'asset' )  ? baseURL  +  this . config . urls . assets  : baseURL  +  this . config . urls . content_types  +  this . content_type_uid  +  this . config . urls . entries ; 
755755        this . requestParams  =  { 
756756            method : 'POST' , 
757-             headers : this . headers , 
757+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
758758            url : url , 
759759            body : { 
760760                _method : 'GET' , 
@@ -791,7 +791,7 @@ export default class Query extends Entry {
791791        this . _query . limit  =  1 ; 
792792        this . requestParams  =  { 
793793            method : 'POST' , 
794-             headers : this . headers , 
794+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
795795            url : url , 
796796            body : { 
797797                _method : 'GET' , 
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ export default class Stack {
382382    fetch ( fetchOptions )  { 
383383        this . requestParams  =  { 
384384            method : 'POST' , 
385-             headers : this . headers , 
385+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
386386            plugins : this . plugins , 
387387            url : this . config . protocol  +  "://"  +  this . config . host  +  ':'  +  this . config . port  +  '/'  +  this . config . version  +  this . config . urls . content_types  +  this . content_type_uid , 
388388            body : { 
@@ -464,7 +464,7 @@ export default class Stack {
464464    getLastActivities ( )  { 
465465        this . requestParams  =  { 
466466            method : 'POST' , 
467-             headers : this . headers , 
467+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
468468            url : this . config . protocol  +  "://"  +  this . config . host  +  ':'  +  this . config . port  +  '/'  +  this . config . version  +  this . config . urls . content_types , 
469469            body : { 
470470                _method : 'GET' , 
@@ -494,7 +494,7 @@ export default class Stack {
494494    getContentTypes ( param  =  { } )  {  
495495        this . requestParams  =  { 
496496            method : 'POST' , 
497-             headers : this . headers , 
497+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
498498            url : this . config . protocol  +  "://"  +  this . config . host  +  ':'  +  this . config . port  +  '/'  +  this . config . version  +  this . config . urls . content_types , 
499499            body : { 
500500                _method : 'GET' , 
@@ -537,7 +537,7 @@ export default class Stack {
537537        this . _query  =  Utils . mergeDeep ( this . _query ,  params ) ; 
538538        this . requestParams  =  { 
539539            method : 'POST' , 
540-             headers : this . headers , 
540+             headers : Utils . mergeDeep ( { } ,   this . headers ) , 
541541            url : this . config . protocol  +  "://"  +  this . config . host  +  ':'  +  this . config . port  +  '/'  +  this . config . version  +  this . config . urls . sync , 
542542            body : { 
543543                _method : 'GET' , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments