Skip to content

Commit e433659

Browse files
Merge pull request #21 from contentstack/region-support
Region support
2 parents 276a60f + ab2be22 commit e433659

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contentstack",
3-
"version": "3.7.0",
3+
"version": "3.7.1",
44
"description": "Contentstack Javascript SDK",
55
"homepage": "https://www.contentstack.com/",
66
"author": {

src/core/contentstack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Stack from "./stack";
22
import CacheProvider from './cache-provider/index';
3+
import ContentstackRegion from "./contentstackregion";
34

45

56
/**
@@ -23,6 +24,7 @@ class Contentstack {
2324
* Contentstack.CachePolicy.CACHE_THEN_NETWORK
2425
*/
2526
this.CachePolicy = CacheProvider.policies;
27+
this.Region = ContentstackRegion;
2628
}
2729
/**
2830

src/core/contentstackregion.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const ContentstackRegion = {
2+
EU: "eu",
3+
US: "us"
4+
};
5+
6+
export default ContentstackRegion;
7+
//module.exports = ContentstackRegion;

0 commit comments

Comments
 (0)