Skip to content

Fix: [CS-39955] Management token in live preview object fixed #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/sast-scan.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/secrets-scan.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
threshold: medium
fileignoreconfig:
- filename: package-lock.json
checksum: 1e966081577191b52e4ac7fa113c9563d5e120043a3e399dec06e3943c4d81bc
checksum: 0dbf56c1fd0eda1145d69b718de5b7d419650556492851c343fab05867e233a2
version: ""
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Change log

### Version: 3.17.2
#### Date: November-15-2023
##### Bug fix:
- Same management token in Live Preview in different stack object fixed
- X-User-Agent updated
##### New Features
- Early Access added to stack config

### Version: 3.17.1
#### Date: April-18-2023
##### Bug fix:
Expand Down
2 changes: 1 addition & 1 deletion examples/PromiseError/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Stack = Contentstack.Stack(
Stack.setHost('api.contentstack.io');

const Query = Stack
.ContentType(process.env.CONTENTSTACK_CONTENT_TYPE)
.ContentType(process.env.CONTENT_TYPE)
.Query({})
.language("en-us")
.includeCount();
Expand Down
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface Config {
live_preview?: LivePreview;
plugins?: ContentstackPlugin[];
fetchOptions?: FetchOptions;
early_access?: string[]
}
// Stack Config
export interface StackConfig {
Expand Down Expand Up @@ -119,6 +120,7 @@ export class Stack {
cachePolicy: CachePolicy;
config: StackConfig;
fetchOptions: any;
live_preview: { enable: boolean, host: string, management_token: string }

ContentType(uid: string): ContentType;
Assets(uid: string): Asset;
Expand Down
Loading