Skip to content

Commit 8144417

Browse files
authored
Merge pull request #102 from contentstack/next
Fix: [CS-39955] Management token in live preview object fixed
2 parents 5b39b5f + b4bf329 commit 8144417

File tree

15 files changed

+14882
-64
lines changed

15 files changed

+14882
-64
lines changed

.github/workflows/sast-scan.yml

-11
This file was deleted.

.github/workflows/secrets-scan.yml

-11
This file was deleted.

.talismanrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
threshold: medium
22
fileignoreconfig:
33
- filename: package-lock.json
4-
checksum: 1e966081577191b52e4ac7fa113c9563d5e120043a3e399dec06e3943c4d81bc
4+
checksum: 0dbf56c1fd0eda1145d69b718de5b7d419650556492851c343fab05867e233a2
5+
version: ""

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Change log
22

3+
### Version: 3.17.2
4+
#### Date: November-15-2023
5+
##### Bug fix:
6+
- Same management token in Live Preview in different stack object fixed
7+
- X-User-Agent updated
8+
##### New Features
9+
- Early Access added to stack config
10+
311
### Version: 3.17.1
412
#### Date: April-18-2023
513
##### Bug fix:

examples/PromiseError/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Stack = Contentstack.Stack(
4040
Stack.setHost('api.contentstack.io');
4141

4242
const Query = Stack
43-
.ContentType(process.env.CONTENTSTACK_CONTENT_TYPE)
43+
.ContentType(process.env.CONTENT_TYPE)
4444
.Query({})
4545
.language("en-us")
4646
.includeCount();

index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export interface Config {
5555
live_preview?: LivePreview;
5656
plugins?: ContentstackPlugin[];
5757
fetchOptions?: FetchOptions;
58+
early_access?: string[]
5859
}
5960
// Stack Config
6061
export interface StackConfig {
@@ -119,6 +120,7 @@ export class Stack {
119120
cachePolicy: CachePolicy;
120121
config: StackConfig;
121122
fetchOptions: any;
123+
live_preview: { enable: boolean, host: string, management_token: string }
122124

123125
ContentType(uid: string): ContentType;
124126
Assets(uid: string): Asset;

0 commit comments

Comments
 (0)