Skip to content

Commit 938c57d

Browse files
Updated in README file
1 parent 9a69985 commit 938c57d

File tree

14 files changed

+43
-29
lines changed

14 files changed

+43
-29
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_modules/*
55
reports/*
66
apidocs-templates/*
77
test/smtpconfig.js
8-
test/config.js
8+
test/config.js
9+
test/sync_config.js

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const config = {
22
protocol: "https",
3-
host: "stag-cdn.contentstack.io",
3+
host: "cdn.contentstack.io",
44
port: 443,
55
version: "v3",
66
urls: {

dist/native-script/contentstack.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,11 @@ var Stack = function () {
861861
* @example
862862
* Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
863863
* @example
864-
* Stack.sync({'init': 'true', 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
864+
* Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
865865
* @example
866-
* Stack.sync({'init': 'true', 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
866+
* Stack.sync({'init': true, 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
867+
* @example
868+
* Stack.sync({'init': true, 'type': 'entry_published'}) //Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.
867869
* @example
868870
* Stack.sync({'pagination_token': '<btlsomething>'}) // For fetching the next batch of entries using pagination token
869871
* @example

dist/node/contentstack.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,11 @@ var Stack = function () {
872872
* @example
873873
* Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
874874
* @example
875-
* Stack.sync({'init': 'true', 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
875+
* Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
876876
* @example
877-
* Stack.sync({'init': 'true', 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
877+
* Stack.sync({'init': true, 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
878+
* @example
879+
* Stack.sync({'init': true, 'type': 'entry_published'}) //Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.
878880
* @example
879881
* Stack.sync({'pagination_token': '<btlsomething>'}) // For fetching the next batch of entries using pagination token
880882
* @example
@@ -2454,7 +2456,7 @@ Object.defineProperty(exports, "__esModule", {
24542456
});
24552457
var config = {
24562458
protocol: "https",
2457-
host: "stag-cdn.contentstack.io",
2459+
host: "cdn.contentstack.io",
24582460
port: 443,
24592461
version: "v3",
24602462
urls: {

dist/react-native/contentstack.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,11 @@ var Stack = function () {
861861
* @example
862862
* Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
863863
* @example
864-
* Stack.sync({'init': 'true', 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
864+
* Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
865865
* @example
866-
* Stack.sync({'init': 'true', 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
866+
* Stack.sync({'init': true, 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
867+
* @example
868+
* Stack.sync({'init': true, 'type': 'entry_published'}) //Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.
867869
* @example
868870
* Stack.sync({'pagination_token': '<btlsomething>'}) // For fetching the next batch of entries using pagination token
869871
* @example

js-sdk-reference.zip

-605 KB
Binary file not shown.

js-sdk-reference/global.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,9 +1532,11 @@ <h5>Examples</h5>
15321532

15331533
<pre class="prettyprint"><code>Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale</code></pre>
15341534

1535-
<pre class="prettyprint"><code>Stack.sync({'init': 'true', 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date</code></pre>
1535+
<pre class="prettyprint"><code>Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date</code></pre>
15361536

1537-
<pre class="prettyprint"><code>Stack.sync({'init': 'true', 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type</code></pre>
1537+
<pre class="prettyprint"><code>Stack.sync({'init': true, 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type</code></pre>
1538+
1539+
<pre class="prettyprint"><code>Stack.sync({'init': true, 'type': 'entry_published'}) //Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.</code></pre>
15381540

15391541
<pre class="prettyprint"><code>Stack.sync({'pagination_token': '&lt;btlsomething>'}) // For fetching the next batch of entries using pagination token</code></pre>
15401542

js-sdk-reference/stack.js.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,11 @@ <h1 class="page-title">stack.js</h1>
307307
* @example
308308
* Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
309309
* @example
310-
* Stack.sync({'init': 'true', 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
310+
* Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
311311
* @example
312-
* Stack.sync({'init': 'true', 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
312+
* Stack.sync({'init': true, 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
313+
* @example
314+
* Stack.sync({'init': true, 'type': 'entry_published'}) //Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.
313315
* @example
314316
* Stack.sync({'pagination_token': '&lt;btlsomething>'}) // For fetching the next batch of entries using pagination token
315317
* @example

src/core/lib/request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default function Request(options) {
4242
queryParams = serialize(options.body);
4343
}
4444

45+
4546
fetch(url + '?' + queryParams, {
4647
method: 'GET',
4748
headers: headers

src/core/stack.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,11 @@ export default class Stack {
267267
* @example
268268
* Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
269269
* @example
270-
* Stack.sync({'init': 'true', 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
270+
* Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
271271
* @example
272-
* Stack.sync({'init': 'true', 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
272+
* Stack.sync({'init': true, 'content_type_id': 'session'}) //For initializing sync with entries of a specific content type
273+
* @example
274+
* Stack.sync({'init': true, 'type': 'entry_published'}) //Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.
273275
* @example
274276
* Stack.sync({'pagination_token': '<btlsomething>'}) // For fetching the next batch of entries using pagination token
275277
* @example

0 commit comments

Comments
 (0)