File tree 8 files changed +32
-21
lines changed
8 files changed +32
-21
lines changed Original file line number Diff line number Diff line change 1
1
## Change log
2
2
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
3
17
### Version: 3.16.0
4
18
#### Date: February-10-2023
5
19
##### New Features:
Original file line number Diff line number Diff line change 18
18
" src/core/cache.js"
19
19
]
20
20
},
21
- "templates" :
22
- {
23
- "default" :
24
- {
25
- "staticFiles" :
26
- {
27
- "include" : [ " ./contentstack-templates/favicon.ico" ]
28
- }
29
- }
30
- },
31
21
"tags" : {
32
22
"dictionaries" : [" jsdoc" , " closure" ],
33
23
"allowUnknownTags" : true
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " contentstack" ,
3
- "version" : " 3.17.0 " ,
3
+ "version" : " 3.17.1 " ,
4
4
"description" : " Contentstack Javascript SDK" ,
5
5
"homepage" : " https://www.contentstack.com/" ,
6
6
"author" : {
89
89
"nodemailer" : " ^6.9.1" ,
90
90
"request" : " ^2.88.2" ,
91
91
"string-replace-loader" : " 1.3.0" ,
92
+ "taffydb" : " ^2.7.3" ,
92
93
"tap" : " ^16.3.4" ,
93
94
"tap-html" : " ^1.1.0" ,
94
95
"tap-json" : " 1.0.0" ,
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export default class Assets {
120
120
if ( this . asset_uid ) {
121
121
this . requestParams = {
122
122
method : 'POST' ,
123
- headers : this . headers ,
123
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
124
124
url : this . config . protocol + "://" + this . config . host + ':' + this . config . port + '/' + this . config . version + this . config . urls . assets + this . asset_uid ,
125
125
body : {
126
126
_method : 'GET' ,
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ export default class Entry {
355
355
if ( this . entry_uid ) {
356
356
this . requestParams = {
357
357
method : 'POST' ,
358
- headers : this . headers ,
358
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
359
359
url : this . config . protocol + "://" + host + '/' + this . config . version + this . config . urls . content_types + this . content_type_uid + this . config . urls . entries + this . entry_uid ,
360
360
body : {
361
361
_method : 'GET' ,
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ export default class Query extends Entry {
445
445
this . _query [ 'count' ] = true ;
446
446
this . requestParams = {
447
447
method : 'POST' ,
448
- headers : this . headers ,
448
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
449
449
url : url ,
450
450
body : {
451
451
_method : 'GET' ,
@@ -754,7 +754,7 @@ export default class Query extends Entry {
754
754
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 ;
755
755
this . requestParams = {
756
756
method : 'POST' ,
757
- headers : this . headers ,
757
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
758
758
url : url ,
759
759
body : {
760
760
_method : 'GET' ,
@@ -791,7 +791,7 @@ export default class Query extends Entry {
791
791
this . _query . limit = 1 ;
792
792
this . requestParams = {
793
793
method : 'POST' ,
794
- headers : this . headers ,
794
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
795
795
url : url ,
796
796
body : {
797
797
_method : 'GET' ,
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ export default class Stack {
382
382
fetch ( fetchOptions ) {
383
383
this . requestParams = {
384
384
method : 'POST' ,
385
- headers : this . headers ,
385
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
386
386
plugins : this . plugins ,
387
387
url : this . config . protocol + "://" + this . config . host + ':' + this . config . port + '/' + this . config . version + this . config . urls . content_types + this . content_type_uid ,
388
388
body : {
@@ -464,7 +464,7 @@ export default class Stack {
464
464
getLastActivities ( ) {
465
465
this . requestParams = {
466
466
method : 'POST' ,
467
- headers : this . headers ,
467
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
468
468
url : this . config . protocol + "://" + this . config . host + ':' + this . config . port + '/' + this . config . version + this . config . urls . content_types ,
469
469
body : {
470
470
_method : 'GET' ,
@@ -494,7 +494,7 @@ export default class Stack {
494
494
getContentTypes ( param = { } ) {
495
495
this . requestParams = {
496
496
method : 'POST' ,
497
- headers : this . headers ,
497
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
498
498
url : this . config . protocol + "://" + this . config . host + ':' + this . config . port + '/' + this . config . version + this . config . urls . content_types ,
499
499
body : {
500
500
_method : 'GET' ,
@@ -537,7 +537,7 @@ export default class Stack {
537
537
this . _query = Utils . mergeDeep ( this . _query , params ) ;
538
538
this . requestParams = {
539
539
method : 'POST' ,
540
- headers : this . headers ,
540
+ headers : Utils . mergeDeep ( { } , this . headers ) ,
541
541
url : this . config . protocol + "://" + this . config . host + ':' + this . config . port + '/' + this . config . version + this . config . urls . sync ,
542
542
body : {
543
543
_method : 'GET' ,
You can’t perform that action at this time.
0 commit comments