Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
2f6835d
README.md updated
hiteshbal91 Oct 31, 2017
20112c2
Merge branch 'release/3.3.0'
hiteshbal91 Oct 31, 2017
717f30c
serializing changed for the array
hiteshbal91 Nov 1, 2017
bd2ea76
Merge branch 'release/3.3.0'
hiteshbal91 Nov 1, 2017
1a23c08
New feature
Dec 28, 2017
499560b
New feature
Dec 28, 2017
237e02d
Updated the sdk with new method
Dec 29, 2017
608df6b
Updated the sdk with new method
Dec 29, 2017
33091aa
updated in request file for react-native type
Jan 2, 2018
ddc2a3d
updated in reference folder
Jan 5, 2018
d34888d
Merge pull request #1 from builtio-contentstack/add_param_method
rohitmishra209 Jan 5, 2018
acd76a7
updated the folder structure
Jan 5, 2018
10a8890
Merge pull request #2 from builtio-contentstack/add_param_method
rohitmishra209 Jan 5, 2018
539ded9
updated in query file
Jan 8, 2018
d97985d
updated in query file
Jan 8, 2018
f9ea8ec
updated the doc file
Jan 10, 2018
4ed9b2e
updated the doc file
Jan 10, 2018
f906a9d
updated version in package file
Jan 10, 2018
4f0e8b9
updated version in package file
Jan 10, 2018
4d963f0
Merge pull request #3 from builtio-contentstack/add_param_method
rohitmishra209 Jan 10, 2018
c81c539
Updated the modules
Jan 16, 2018
e0261c4
New branch for SyncApi method
Jan 23, 2018
c836084
New branch for SyncApi feature
Jan 24, 2018
7aac208
Added the missing file of Nativescript module
Jan 25, 2018
fbf79b2
Added the missing file of Nativescript module
Jan 25, 2018
efee06b
Merge pull request #4 from builtio-contentstack/missingNSfile_hotfix/…
rohitmishra209 Jan 25, 2018
9ca9d29
updated the Api Link under README file
Jan 31, 2018
f64442a
updated the Api Link under README file
Jan 31, 2018
8a350ef
updated the version in package.json
Jan 31, 2018
ec1658c
Updated under Utils file
Mar 30, 2018
59b474b
Added Testcases for sync
Apr 9, 2018
40ca234
Added Testcases for sync
Apr 9, 2018
fe31337
updated in testcases file
Apr 10, 2018
a68c9e8
Made some changes in sync file
Apr 11, 2018
d26d8ce
Made some changes in sync file
Apr 11, 2018
b8f7cc4
Made some changes in sync file
Apr 11, 2018
19c9ec2
Made some changes in sync file
Apr 11, 2018
1821451
updated the sync method in stack file
Apr 11, 2018
6351786
made changes in sync-example folder
May 2, 2018
ba6def8
made changes in module
rohitmishra209 Sep 21, 2018
a7518b6
updated the testcases
rohitmishra209 Oct 5, 2018
7c58361
fix capitalization in code sample
scott-silver Oct 10, 2018
845713f
Merge pull request #6 from scott-silver/silver/fix-typo
ninadhatkar Oct 13, 2018
ffb0c04
updated the sync Api method and testcases of sync
rohitmishra209 Oct 19, 2018
d643e98
updated the sync Api method and testcases of sync
rohitmishra209 Oct 19, 2018
ca88127
Added SyncApi feature
rohitmishra209 Oct 24, 2018
8823855
Added SyncApi feature
rohitmishra209 Oct 24, 2018
b4c8d63
Added SyncApi feature
rohitmishra209 Oct 24, 2018
70917d1
Updated in README file
rohitmishra209 Oct 26, 2018
1744043
Merged with master and rebuild all sdk's
rohitmishra209 Oct 26, 2018
a0c332c
Merge pull request #7 from contentstack/sync_api
rohitmishra209 Oct 26, 2018
a30e801
Updated the version in package.json
rohitmishra209 Oct 26, 2018
4179bb3
Merge pull request #8 from contentstack/sync_api
rohitmishra209 Oct 26, 2018
49f9f0e
Js Sdk reference doc
rohitmishra209 Nov 1, 2018
057716d
Updated a Reference doc
rohitmishra209 Nov 2, 2018
eb8a92b
Updated a Reference doc
rohitmishra209 Nov 2, 2018
4fe77c0
Merge pull request #9 from contentstack/doc-Hotfix3.5.1
rohitmishra209 Nov 2, 2018
6e3840e
updated in reference doc
rohitmishra209 Nov 21, 2018
700ba08
updated in reference doc
rohitmishra209 Nov 21, 2018
322da85
rename the folder name
rohitmishra209 Feb 18, 2019
f83b71e
Merge pull request #10 from contentstack/doc-Hotfix3.5.1
rohitmishra209 Feb 19, 2019
ca1355a
Cache issue implementation
uttamukkoji Feb 28, 2019
2cd1ecf
Added two new methods and solved the catchpolicy
rohitmishra209 Mar 5, 2019
c12fa38
Added two new methods and solved the cachepolicy
rohitmishra209 Mar 5, 2019
a3e2793
solved the cachepolicy issue
rohitmishra209 Mar 6, 2019
cd6520c
updated the example file
rohitmishra209 Mar 15, 2019
45c117e
Merge pull request #13 from contentstack/cache_hotfix
rohitmishra209 Mar 15, 2019
b05157c
updated the version
rohitmishra209 Mar 18, 2019
8b14b27
updated the version
rohitmishra209 Mar 18, 2019
02d8754
Merge pull request #14 from contentstack/cache_hotfix
rohitmishra209 Mar 18, 2019
cfa9a8a
removed unwanted code
rohitmishra209 Mar 20, 2019
3320720
Merge pull request #15 from contentstack/cache_hotfix
rohitmishra209 Mar 20, 2019
632327d
two new methods
rohitmishra209 Apr 12, 2019
27704ab
supporting two new methods
rohitmishra209 Apr 12, 2019
767c0bf
supporting two new methods
rohitmishra209 Apr 12, 2019
4a8e44a
Merge pull request #16 from contentstack/contenttype-methods
rohitmishra209 Apr 12, 2019
c4e5df8
API implementation for Content Types information
rohitmishra209 Apr 12, 2019
68f82bc
Updated the reference doc
rohitmishra209 Apr 12, 2019
3d7591a
Merge pull request #17 from contentstack/contenttype-methods
rohitmishra209 Apr 12, 2019
a1161ca
Added new Query support of MultiCtReference
rohitmishra209 Jul 25, 2019
7888ea7
Supporting Multi ContentType reference in reference field.
rohitmishra209 Jul 27, 2019
77034bb
removed the unwanted code and updated the testcases
rohitmishra209 Jul 29, 2019
dada48e
removed the unwanted code and updated the testcases
rohitmishra209 Jul 29, 2019
03464a1
removed the unwanted code and updated the testcases
rohitmishra209 Jul 29, 2019
df2c8f6
Build the code in react-native
rohitmishra209 Jul 29, 2019
c39e3c4
Merge pull request #18 from contentstack/multiple-ct-reference
rohitmishra209 Jul 29, 2019
e51c263
Region support
rohitmishra209 Sep 5, 2019
ccd23f9
Region support
rohitmishra209 Sep 5, 2019
573b512
Region support
rohitmishra209 Sep 5, 2019
7e2ec1c
Merge pull request #21 from contentstack/region-support
rohitmishra209 Sep 5, 2019
649bc97
Support the Include snippet schema feature
rohitmishra209 Sep 19, 2019
ac9fc7a
updated the name from snippet to global_field
rohitmishra209 Oct 30, 2019
65e8739
Made changes for global fields
rohitmishra209 Nov 6, 2019
99d9d07
Update README.md
uttamukkoji Nov 6, 2019
d345ba5
Reference IN & NIN
uttamukkoji Nov 14, 2019
46a18fc
Merge pull request #22 from contentstack/master
rohitmishra209 Nov 15, 2019
b55315e
updated the testcases and package file
rohitmishra209 Nov 15, 2019
2e4857d
updated the testcases and package file
rohitmishra209 Nov 15, 2019
e5fbbd4
updated the testcases and package file
rohitmishra209 Nov 15, 2019
3b6bcb1
Merge pull request #23 from contentstack/snippet-implementation
rohitmishra209 Nov 15, 2019
f18b2c8
Updated the doc and build the code
rohitmishra209 Nov 19, 2019
48d128f
Updated the doc and made changes in stack module
rohitmishra209 Nov 19, 2019
34e5835
Merge pull request #24 from contentstack/hotfix-3.8.1
rohitmishra209 Nov 19, 2019
4e1bfcd
initial implementation
uttamukkoji Dec 20, 2019
2c32130
Update LICENSE.txt
uttamukkoji Dec 26, 2019
33c5754
refactor: readme updated
skyzenr Feb 16, 2020
1cd8e79
Merge pull request #25 from skyzenr/readme_updated
uttamukkoji Feb 17, 2020
fa4511d
Update README.md
uttamukkoji Feb 27, 2020
1dc6c71
Proxy option added
uttamukkoji Apr 23, 2020
2457a58
favicon added to documentation
uttamukkoji Jun 2, 2020
f902371
Automation config file added
uttamukkoji Jun 3, 2020
dcc142c
Fetch option with timeout
uttamukkoji Jun 16, 2020
f8adc34
Default time-out set
uttamukkoji Jun 16, 2020
c89d041
Default time-out set
uttamukkoji Jun 16, 2020
befae63
Default time-out set
uttamukkoji Jun 16, 2020
7133a53
Stack initialization param added
uttamukkoji Jun 17, 2020
14abe1f
Merge branch 'master' into automation
uttamukkoji Jun 17, 2020
147a385
Merge pull request #30 from contentstack/automation
uttamukkoji Jun 17, 2020
af563d7
Stack instance initialization issue resolved
uttamukkoji Jun 17, 2020
d21df53
Stack instance initialization issue resolved
uttamukkoji Jun 17, 2020
2e72786
package updated
uttamukkoji Jun 17, 2020
520e15a
Merge pull request #31 from contentstack/automation
uttamukkoji Jun 17, 2020
c3d14bb
Region added
uttamukkoji Jun 17, 2020
49972da
Region added
uttamukkoji Jun 17, 2020
602182f
Merge pull request #32 from contentstack/automation
uttamukkoji Jun 17, 2020
a6a7a96
Removed default timeout
uttamukkoji Jun 19, 2020
37110b4
Removed default timeout
uttamukkoji Jun 19, 2020
94b199e
dist verion update
uttamukkoji Jun 19, 2020
7e85fa6
Config url issue
uttamukkoji Jun 19, 2020
c66a56f
include content-type in single entry
uttamukkoji Jun 29, 2020
04c6537
include content-type in single entry
uttamukkoji Jun 29, 2020
e2c200f
include content-type in single entry
uttamukkoji Jun 29, 2020
f45a897
Change log file added
uttamukkoji Jun 30, 2020
a5c5f24
Update CHANGELOG.md
uttamukkoji Jun 30, 2020
4f82dc4
Bump lodash from 4.17.14 to 4.17.19
dependabot[bot] Jul 21, 2020
52ce723
Merge pull request #33 from contentstack/dependabot/npm_and_yarn/loda…
uttamukkoji Jul 21, 2020
ff95fba
Bump elliptic from 6.4.1 to 6.5.3
dependabot[bot] Aug 2, 2020
550ae69
Merge pull request #34 from contentstack/dependabot/npm_and_yarn/elli…
uttamukkoji Aug 2, 2020
b74a342
Sync function documentation update
uttamukkoji Aug 25, 2020
fae1d0d
Merge branch 'master' of https://github.com/contentstack/contentstack…
uttamukkoji Aug 25, 2020
e0716ea
Error message from SDK
uttamukkoji Sep 3, 2020
f72fdca
Retry functionality added
uttamukkoji Sep 7, 2020
775c7a2
log removed
uttamukkoji Sep 8, 2020
d5c3b3c
Typescript definition and test case,
uttamukkoji Sep 11, 2020
37d046c
Typescript definition and test case
uttamukkoji Sep 11, 2020
80cfdbc
Typesript definitions and test case added
uttamukkoji Sep 14, 2020
57b1edc
Only and Except documentation update
uttamukkoji Sep 14, 2020
38b09c6
only and except documentation update
uttamukkoji Sep 14, 2020
71c3407
version update
uttamukkoji Sep 14, 2020
7fed53e
Retry options added for delay request
uttamukkoji Sep 15, 2020
a376325
Documentation update for Quering assets
uttamukkoji Sep 24, 2020
f0580c1
Setting Region doc added
uttamukkoji Sep 24, 2020
cb692d0
Region document update
uttamukkoji Sep 24, 2020
c933431
Merge pull request #36 from contentstack/error_handling
uttamukkoji Sep 25, 2020
f71101e
Merge pull request #37 from contentstack/request_retry
uttamukkoji Sep 25, 2020
b77bb0c
dist update
uttamukkoji Sep 25, 2020
43f28f3
Embedded Objects implementation in Query and Entry
uttamukkoji Oct 1, 2020
b6a5f75
Include Fallback implementation
uttamukkoji Oct 6, 2020
ea64cf4
fallback content on publish test case
uttamukkoji Oct 7, 2020
27886f7
Fetch content without fallback test case added
uttamukkoji Oct 8, 2020
a1fe43f
added Utils class methods
uttamukkoji Dec 5, 2020
cb49f34
Merge pull request #38 from contentstack/publish_fallback
uttamukkoji Dec 5, 2020
b4358cb
Changelog update with package version 3.12.0
uttamukkoji Dec 5, 2020
7fa47f4
Changelog updated
uttamukkoji Dec 5, 2020
79bd5ae
Entry class TD return type update
uttamukkoji Dec 5, 2020
9f35bb7
API documentation
uttamukkoji Dec 7, 2020
91dba13
Bump ini from 1.3.5 to 1.3.8
dependabot[bot] Dec 13, 2020
34e99c4
include_embedded name change to include_embedded_items
uttamukkoji Dec 14, 2020
a30a794
Bump node-notifier from 8.0.0 to 8.0.1
dependabot[bot] Dec 22, 2020
6dd936c
Merge pull request #40 from contentstack/dependabot/npm_and_yarn/node…
uttamukkoji Dec 23, 2020
a098220
Merge pull request #39 from contentstack/dependabot/npm_and_yarn/ini-…
uttamukkoji Dec 23, 2020
345865e
Test case update
uttamukkoji Dec 30, 2020
24ecb4d
Test case updated
uttamukkoji Jan 20, 2021
6bc4a1d
Unhandle promise issue
uttamukkoji Jan 20, 2021
223620c
Unhandle promise rejectiopn issue fixed
uttamukkoji Jan 21, 2021
78a3778
Version upate and changelog added
uttamukkoji Jan 21, 2021
bca9034
Version upate and changelog added
uttamukkoji Jan 21, 2021
40229b8
Merge pull request #42 from contentstack/error_handling
uttamukkoji Jan 22, 2021
9333133
Build script ran
uttamukkoji Jan 22, 2021
b2e77cb
fix: Increase timeout to 30 Sec
uttamukkoji Feb 9, 2021
062a75c
Type defination added for Include Embed items function
uttamukkoji Feb 11, 2021
43c206b
Url for Docs updated
uttamukkoji Feb 12, 2021
3add52e
Support for TS: Query function where, equal and notEqual to include b…
uttamukkoji Feb 17, 2021
0de906a
Merge pull request #44 from contentstack/update_timeout
uttamukkoji Feb 19, 2021
9120396
Merge branch 'master' of https://github.com/contentstack/contentstack…
uttamukkoji Feb 19, 2021
ab5b3c2
Build update with new changes
uttamukkoji Feb 19, 2021
f5d6ad2
Npm ignore update to ignore coverage
uttamukkoji Feb 19, 2021
e54a2ca
Npm ignore update to ignore coverage
uttamukkoji Feb 19, 2021
24a9576
Merge branch 'master' into embedded_objects
uttamukkoji Mar 8, 2021
6a8e004
feat: :package: Contentstack Utils package added
uttamukkoji Mar 8, 2021
a45aa57
docs: :memo: Documentation for ImageDelivery
uttamukkoji Mar 9, 2021
6c02d04
Remove Config initialization
uttamukkoji Mar 25, 2021
29da388
docs: :memo: Documentation update
uttamukkoji Mar 25, 2021
6efd7f4
Bump elliptic from 6.5.3 to 6.5.4
dependabot[bot] Mar 25, 2021
03a5d26
Merge branch 'master' into embedded_objects
uttamukkoji Mar 25, 2021
0d44b37
Bump y18n from 4.0.0 to 4.0.1
dependabot[bot] Apr 1, 2021
325543e
Merge pull request #47 from contentstack/dependabot/npm_and_yarn/y18n…
uttamukkoji Apr 1, 2021
1fe5c50
Merge pull request #45 from contentstack/dependabot/npm_and_yarn/elli…
uttamukkoji Apr 1, 2021
5cb26eb
Sync Cache issue resolve
uttamukkoji Apr 1, 2021
d9c6678
update dist lib folder
uttamukkoji Apr 1, 2021
c79dedb
Merge branch 'master' into embedded_objects
uttamukkoji Apr 1, 2021
4f07699
Updated readme file
uttamukkoji Apr 1, 2021
090a21a
Utils SDK added
uttamukkoji Apr 5, 2021
3f95df2
Changelog updated
uttamukkoji Apr 5, 2021
70143ff
Merge pull request #48 from contentstack/embedded_objects
uttamukkoji Apr 6, 2021
d5c1331
test: :white_check_mark: Update test case for find one with reference
uttamukkoji Apr 6, 2021
3d62e23
docs: :package: Package file update
uttamukkoji Apr 6, 2021
08ea221
docs: :memo: Docs: embedded itmes doc added
uttamukkoji Apr 6, 2021
bf9abe7
fix: :bug: node fetch issue resolved
uttamukkoji Apr 16, 2021
148ca2f
docs: :memo: ReadMe updated
uttamukkoji Apr 16, 2021
cdd84d3
Package version and changelog added
uttamukkoji Apr 16, 2021
6f22178
Merge pull request #51 from contentstack/bugfix/ie11-node-fetch-error
uttamukkoji Apr 16, 2021
1c96243
fix: :bug: Utils library update
uttamukkoji May 6, 2021
095b4d2
build: :package: Update Utils package
uttamukkoji May 26, 2021
be7cd40
docs: :memo: Changelog Update
uttamukkoji May 26, 2021
2a870f8
Merge pull request #55 from contentstack/bug/utils-lib
uttamukkoji May 26, 2021
fe10875
docs: :memo: Update Embedded-Items reference
uttamukkoji May 26, 2021
8dbe0cb
:tada: Json RTE support added
uttamukkoji Jul 16, 2021
6e4dc59
Merge pull request #57 from contentstack/feature/json-rte
uttamukkoji Jul 16, 2021
7bb019a
:package: Utils Package update
uttamukkoji Jul 16, 2021
1e9bf20
feat: :building_construction: Live Preview
uttamukkoji Aug 11, 2021
ba61030
:recycle: Rename Live Preview Query
uttamukkoji Aug 13, 2021
1f3083d
Create CODEOWNERS
nandeesh-gajula Sep 9, 2021
7687354
fix: :bug: live preview config error
uttamukkoji Sep 15, 2021
76fae27
fix typo in contentTypeCollection
samijaber Sep 17, 2021
5c3f0cb
fix: :bug: resolve issue for hash passing from query
uttamukkoji Sep 20, 2021
0cdda70
:package: Dist folder update
uttamukkoji Oct 4, 2021
397d4d3
:bug: promise handle fixes
uttamukkoji Oct 5, 2021
e63d7c0
Merge branch 'pr/61' into bug/promise-handled
uttamukkoji Oct 5, 2021
f98d872
:recycle: Host setup
uttamukkoji Oct 13, 2021
fc00bd6
Merge branch 'bug/promise-handled' into feature/live-preview
uttamukkoji Oct 13, 2021
a4fe94c
:package: Package created
uttamukkoji Oct 13, 2021
c056318
:memo: Live preview docs update
uttamukkoji Oct 19, 2021
15905aa
:memo: Change log update
uttamukkoji Oct 19, 2021
4758c1f
Removed issues
uttamukkoji Oct 19, 2021
f5a5021
Merge pull request #63 from contentstack/feature/live-preview
uttamukkoji Oct 19, 2021
4855f37
fix: :package: Update package
uttamukkoji Oct 19, 2021
4d60166
:bug: removed tags issues
uttamukkoji Oct 21, 2021
6ba376e
refactor: :lock: Security issues fixes
uttamukkoji Oct 21, 2021
e0f881c
:recycle: Removed unused code
uttamukkoji Oct 21, 2021
6ceb3fe
:recycle: Removed unnecessary code and variables
uttamukkoji Oct 21, 2021
9535fe7
test: :white_check_mark: Ran test for api and ts
uttamukkoji Oct 21, 2021
73ed875
Resolved issues related to secret tokens
uttamukkoji Oct 26, 2021
cf13e79
Live preview default config
uttamukkoji Oct 26, 2021
046b8a0
Content Branching merge
uttamukkoji Oct 26, 2021
a1fb358
Live preview
uttamukkoji Nov 25, 2021
430deef
Config update
uttamukkoji Nov 25, 2021
3709597
deprecated typeahead
uttamukkoji Dec 6, 2021
b617a6a
Merge branch 'master' into bug/security
uttamukkoji Dec 6, 2021
7db8eb8
script remove
uttamukkoji Dec 6, 2021
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
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ typescript-html-report
webpack
jest.config.js
coverage
CODEOWNERS
10 changes: 2 additions & 8 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
fileignoreconfig:
- filename: dist/react-native/contentstack.js
checksum: 6ec0482ba61056b8d079e776719164924e3ecd6c8123f03fd6dc01a727013d95
- filename: dist/node/contentstack.js
checksum: 31877d4663fa195f8dd581279dbf4784567b5ed0a1923487ef1851cecbd5254f
- filename: dist/nativescript/contentstack.js
checksum: 8acfc161d1a7fdaec02fc378e00cdd381d89dd19dedc25e7ee2b32be9a40f2a1
- filename: dist/web/contentstack.js
checksum: 50454530e51fd6235680fe980cd411091ec052fb8d94b151c40dd9e1ed8c0e3f
- filename: test/automation-script.js
checksum: dd31ccc9f78dbcfb48eafa5d7ab80d480776c70bc36d6a10eb86229fb79443af
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## Change log
### Version: 3.15.0
#### Date: Oct-29-2021
##### New Features:
- Content branching feature support added


### Version: 3.14.0
#### Date: Oct-19-2021
##### New Features:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)


Copyright (c) 2016-2020 Contentstack
Copyright (c) 2016-2021 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ To use the JavaScript SDK, download it from [here](https://contentstack.com/docs
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.

```javascript
const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name");
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
```

For Setting the European Region:
If you want to set and use European region, refer to the code below:

```javascript
const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name", Contentstack.Region.EU);
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment", "region": Contentstack.Region.EU });
```

#### For Node.js
Expand All @@ -45,21 +45,21 @@ npm i contentstack
To import the SDK in your project, use the following command:

```javascript
import contentstack from ‘contentstack’
import Contentstack from ‘contentstack’
```

To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.

```javascript
const Stack = contentstack.Stack("api_key","delivery_token","environment_name");
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
```

For Setting the European Region:

If you want to set and use European region, refer to the code below:

```javascript
const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name", Contentstack.Region.EU);
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment", "region": Contentstack.Region.EU });
```

#### For React Native
Expand All @@ -73,21 +73,21 @@ npm i contentstack
To import the SDK in your project, use the following command:

```javascript
import contentstack from `contentstack/react-native`
import Contentstack from `contentstack/react-native`
```

To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.

```javascript
const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name");
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
```

For Setting the European Region:

If you want to set and use European region, refer to the code below:

```javascript
const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name", Contentstack.Region.EU);
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" "region": Contentstack.Region.EU });
```

### Key Concepts for using Contentstack
Expand Down Expand Up @@ -119,7 +119,7 @@ A publishing environment corresponds to one or more deployment servers or a cont
You will need to specify the API key, Delivery Token, and Environment Name of your stack to initialize the SDK:

```javascript
const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name");
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
```

Once you have initialized the SDK, you can start getting content in your app.
Expand All @@ -129,7 +129,7 @@ Once you have initialized the SDK, you can start getting content in your app.
To get a single entry, you need to specify the content type as well as the ID of the entry.

```javascript
const Query = Stack.ContentType('blog').Entry("blt123something");
const Query = Stack.ContentType('blog').Entry("<entry_uid>");

Query.fetch()
.then(function success(entry) {
Expand Down
4 changes: 4 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const config = {
entries: "/entries/",
assets: "/assets/",
environments: "/environments/"
},
live_preview: {
enable: false,
host: 'api.contentstack.io'
}
};

Expand Down
2 changes: 0 additions & 2 deletions contentstack-templates/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var util = require('util');
var htmlsafe = helper.htmlsafe;
var linkto = helper.linkto;
var resolveAuthorLinks = helper.resolveAuthorLinks;
var scopeToPunc = helper.scopeToPunc;
var hasOwnProp = Object.prototype.hasOwnProperty;

var data;
Expand Down Expand Up @@ -295,7 +294,6 @@ function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) {

items.forEach(function(item) {
var methods = find({kind:'function', memberof: item.longname});
var members = find({kind:'member', memberof: item.longname});

if ( !hasOwnProp.call(item, 'longname') ) {
itemsNav += '<li>' + linktoFn('', item.name);
Expand Down
11 changes: 2 additions & 9 deletions contentstack-templates/static/styles/jsdoc-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ p, ul, ol, blockquote {

h1, h2, h3, h4, h5, h6 {
font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
color: #000;
font-weight: 400;
margin: 0;
Expand Down Expand Up @@ -140,7 +137,6 @@ nav {
}

nav h3 {
margin-top: 12px;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
Expand Down Expand Up @@ -265,11 +261,8 @@ footer {
}

.details ul {
margin: 0
}

.details ul {
list-style-type: none
margin: 0;
list-style-type: none;
}

.details li {
Expand Down
6 changes: 4 additions & 2 deletions contentstack-templates/static/styles/prettify-tomorrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,14 @@ li.L6,
li.L7,
li.L8,
li.L9 {
/* */ }

}

/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
/* */ }

}
34 changes: 17 additions & 17 deletions contentstack-templates/tmpl/layout.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<noscript><iframe title="Google Tag Manager" src="https://www.googletagmanager.com/ns.html?id=GTM-WGP99J7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
Expand Down Expand Up @@ -54,11 +54,11 @@
<pre class="prettyprint"><code>&lt;script type="text/javascript" src="/path/to/contentstack.min.js"&gt;&lt;/script&gt;;
</code></pre>
<p>To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
</code></pre>

<p>To initialize the SDK for European Region you want to set and use European region, refer to the code below:</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name", Contentstack.Region.EU);
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment", "region": Contentstack.Region.EU });
</code></pre>

<h4><a id="For_Nodejs_25"></a>For Node.js</h4>
Expand All @@ -69,10 +69,10 @@
<pre class="prettyprint"><code>import contentstack from ‘contentstack’
</code></pre>
<p>To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key","delivery_token","environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment");
</code></pre>
<p>To initialize the SDK for European Region you want to set and use European region, refer to the code below:</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name", Contentstack.Region.EU);
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment", "region": Contentstack.Region.EU });
</code></pre>
<h4><a id="For_React_Native_39"></a>For React Native</h4>
<p>React Native uses the Javascript SDK to create apps. To use the JavaScript Delivery SDK, download it from <a href="https://www.contentstack.com/docs/platforms/javascript-browser/javascript_sdk_latest">here</a>, OR install ist via npm:</p>
Expand All @@ -82,10 +82,10 @@
<pre class="prettyprint" class="prettyprint"><code>import contentstack from `contentstack/react-native`
</code></pre>
<p>To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
</code></pre>
<p>To initialize the SDK for European Region you want to set and use European region, refer to the code below:</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name", Contentstack.Region.EU);
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment", "region": Contentstack.Region.EU };
</code></pre>
<h3><a id="Key_Concepts_for_using_Contentstack_54"></a>Key Concepts for using Contentstack</h3>
<h4><a id="Stack_56"></a>Stack</h4>
Expand All @@ -101,14 +101,14 @@
<h3><a id="Contentstack_JavaScript_SDK_5minute_Quickstart_78"></a>Contentstack JavaScript Delivery SDK: 5-minute Quickstart</h3>
<h4><a id="Initializing_your_SDK_80"></a>Initializing your SDK</h4>
<p>You will need to specify the API key, Access token, and Environment Name of your stack to initialize the SDK:</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
</code></pre>
<p>Once you have initialized the SDK, you can start getting content in your app.</p>
<h4><a id="Querying_content_from_your_stack_90"></a>Querying content from your stack</h4>
<p>To get a single entry, you need to specify the content type as well as the ID of the entry.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });

const Query = Stack.ContentType('blog').Entry("blt123something");
const Query = Stack.ContentType('blog').Entry("entry_uid");

Query.fetch()
.then(function success(entry) {
Expand All @@ -122,7 +122,7 @@ Query.fetch()
<pre class="prettyprint"><code>Stack.ContentType(type).Query().language('fr-fr').toJSON().find()</code></pre>
It will provide all entries of a content type published on the French locale.</p>
<p>To retrieve multiple entries of a content type, you need to specify the content type uid. You can also specify search parameters to filter results.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });

const Query = Stack.ContentType('blog').Query();

Expand All @@ -146,7 +146,7 @@ Query
<h4><a id="Paginating_Responses"></a>Paginating Responses</h4>
<p>In a single instance, the Get Multiple Entries query will retrieve only the first 100 items of the specified content type. You can paginate and retrieve the rest of the items in batches using the <a href="/docs/platforms/javascript-browser/api-reference/Query.html#skip">skip</a> and <a href="/docs/platforms/javascript-browser/api-reference/Query.html#limit">limit</a> parameters in subsequent requests.</p>

<pre class="prettyprint"><code>const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });
let blogQuery = Stack.ContentType('example').Query();
let data = blogQuery.skip(20).limit(20).find()
data.then(function(result) {
Expand All @@ -158,9 +158,9 @@ data.then(function(result) {

<h4><a id="Querying_content_from_your_stack_90"></a>Querying Assets from your stack</h4>
<p>To get a single asset, you need to specify the UID of the asset.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });

const Asset = Stack.Asset("blt123something");
const Asset = Stack.Asset("<asset_uid>");

Asset.fetch()
.then(function success(asset) {
Expand All @@ -171,7 +171,7 @@ Asset.fetch()
});
</code></pre>
<p>To retrieve multiple assets. You can also specify search parameters to filter results.</p>
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
<pre class="prettyprint"><code>const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });

const Query = Stack.Asset().Query();

Expand Down Expand Up @@ -212,15 +212,15 @@ Query.setCachePolicy(Contentstack.CachePolicy.CACHE_THEN_NETWORK)
<p>Following are Image Delivery API examples.</p>
<pre class="prettyprint"><code>
// Set the quality 100
const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });

const imageUrl = Stack.imageTransform(imageUrl, {
'quality': 100
})
</code></pre>
<pre class="prettyprint"><code>
// set the quality to 100, auto optimization, width and height
const Stack = Contentstack.Stack("stack_api_key", "delivery_token", "environment_name");
const Stack = Contentstack.Stack({ "api_key": "api_key", "delivery_token": "delivery_token", "environment": "environment" });

const imageUrl = Stack.imageTransform(imageUrl, {
'quality': 100,
Expand Down
8 changes: 4 additions & 4 deletions contentstack-templates/tmpl/params.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@
});
?>

<table class="params">
<table class="params" aria-describedby="params">
<thead>
<tr>
<?js if (params.hasName) {?>
<th>Name</th>
<th id="name">Name</th>
<?js } ?>

<?js if (params.hasAttributes) {?>
<th>Attributes</th>
<th id="attributes">Attributes</th>
<?js } ?>

<?js if (params.hasDefault) {?>
<th>Default</th>
<th id="default">Default</th>
<?js } ?>

<th class="last">Description</th>
Expand Down
10 changes: 5 additions & 5 deletions contentstack-templates/tmpl/properties.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@
});
?>

<table class="props">
<table class="props" aria-describedby="props">
<thead>
<tr>
<?js if (props.hasName) {?>
<th>Name</th>
<th id="name">Name</th>
<?js } ?>

<th>Type</th>
<th id="type">Type</th>

<?js if (props.hasAttributes) {?>
<th>Attributes</th>
<th id="attributes">Attributes</th>
<?js } ?>

<?js if (props.hasDefault) {?>
<th>Default</th>
<th id="default">Default</th>
<?js } ?>

<th class="last">Description</th>
Expand Down
Loading