Skip to content

Commit

Permalink
Merge pull request #102 from contentstack/next
Browse files Browse the repository at this point in the history
Fix: [CS-39955] Management token in live preview object fixed
  • Loading branch information
nadeem-cs authored Nov 21, 2023
2 parents 290cda7 + 380fbf4 commit 05180fc
Show file tree
Hide file tree
Showing 15 changed files with 14,882 additions and 64 deletions.
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

0 comments on commit 05180fc

Please sign in to comment.