Skip to content

Commit a4770be

Browse files
Merge pull request #251 from contentstack/development
Development
2 parents 3ad6219 + 501c78e commit a4770be

File tree

16 files changed

+737
-68
lines changed

16 files changed

+737
-68
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ coverage
1515
dist/*
1616
*.log
1717
.nx/
18+
regions.json

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ src
1919
*.tgz
2020
.talismanrc
2121
tap-html.html
22-
.github
22+
.github
23+
regions.json

.talismanrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 32308dbe614c142c4804ff7c81baedddba058c5458e1d233fefb1d8070bf1905
3+
checksum: 275bc45fd72f2a19f8634536e1e0ea3d6516ea554178d172f9e64d01521b06f7
4+
- filename: test/unit/contentstack.spec.ts
5+
checksum: d5b99c01459ab8bc597baaa9e6cc4aa91ac6d9bf78af08e1d0220d0c5db3d0b3
6+
- filename: test/unit/utils.spec.ts
7+
checksum: 79ce5bd78376db37a34df82c0fea19031e995b66a5a246e73f8262fa05d65a9c
48
- filename: test/unit/query-optimization-comprehensive.spec.ts
59
checksum: f5aaf6c784d7c101a05ca513c584bbd6e95f963d1e42779f2596050d9bcbac96
610
- filename: src/lib/entries.ts

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Version: 4.10.2
2+
#### Date: Oct-29-2025
3+
Enhancement: Added logHandler interceptors for request and response logging
4+
15
### Version: 4.10.1
26
#### Date: Oct-27-2025
37
Fix: Upgrade dependecies

package-lock.json

Lines changed: 22 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/delivery-sdk",
3-
"version": "4.10.1",
3+
"version": "4.10.2",
44
"type": "module",
55
"license": "MIT",
66
"main": "./dist/legacy/index.cjs",
@@ -32,18 +32,21 @@
3232
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json && node tools/rename-cjs.cjs",
3333
"build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json",
3434
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json",
35-
"husky-check": "npm run build && husky && chmod +x .husky/pre-commit"
35+
"husky-check": "npm run build && husky && chmod +x .husky/pre-commit",
36+
"postinstall": "curl -s --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o src/assets/regions.json || echo 'Warning: Failed to download regions.json, using existing file if available'",
37+
"postupdate": "curl -s --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o src/assets/regions.json || echo 'Warning: Failed to download regions.json, using existing file if available'"
3638
},
3739
"dependencies": {
3840
"@contentstack/core": "^1.3.1",
3941
"@contentstack/utils": "^1.5.0",
40-
"axios": "^1.12.2",
42+
"axios": "^1.13.1",
4143
"humps": "^2.0.1"
4244
},
4345
"files": [
4446
"dist",
4547
"package.json",
46-
"README.md"
48+
"README.md",
49+
"src/assets/regions.json"
4750
],
4851
"devDependencies": {
4952
"@nrwl/jest": "^17.3.2",

src/assets/regions.json

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
"regions": [
3+
{
4+
"id": "na",
5+
"name": "AWS North America",
6+
"cloudProvider": "AWS",
7+
"location": "North America",
8+
"alias": ["na", "us", "aws-na", "aws_na"],
9+
"isDefault": true,
10+
"endpoints": {
11+
"application": "https://app.contentstack.com",
12+
"contentDelivery": "https://cdn.contentstack.io",
13+
"contentManagement": "https://api.contentstack.io",
14+
"auth": "https://auth-api.contentstack.com",
15+
"graphqlDelivery": "https://graphql.contentstack.com",
16+
"preview": "https://rest-preview.contentstack.com",
17+
"graphqlPreview": "https://graphql-preview.contentstack.com",
18+
"images": "https://images.contentstack.io",
19+
"assets": "https://assets.contentstack.io",
20+
"automate": "https://automations-api.contentstack.com",
21+
"launch": "https://launch-api.contentstack.com",
22+
"developerHub": "https://developerhub-api.contentstack.com",
23+
"brandKit": "https://brand-kits-api.contentstack.com",
24+
"genAI": "https://ai.contentstack.com",
25+
"personalize": "https://personalize-api.contentstack.com",
26+
"personalizeEdge": "https://personalize-edge.contentstack.com"
27+
}
28+
},
29+
{
30+
"id": "eu",
31+
"name": "AWS Europe",
32+
"cloudProvider": "AWS",
33+
"location": "Europe",
34+
"alias": ["eu", "aws-eu", "aws_eu"],
35+
"isDefault": false,
36+
"endpoints": {
37+
"application": "https://eu-app.contentstack.com",
38+
"contentDelivery": "https://eu-cdn.contentstack.com",
39+
"contentManagement": "https://eu-api.contentstack.com",
40+
"auth": "https://eu-auth-api.contentstack.com",
41+
"graphqlDelivery": "https://eu-graphql.contentstack.com",
42+
"preview": "https://eu-rest-preview.contentstack.com",
43+
"graphqlPreview": "https://eu-graphql-preview.contentstack.com",
44+
"images": "https://eu-images.contentstack.com",
45+
"assets": "https://eu-assets.contentstack.com",
46+
"automate": "https://eu-prod-automations-api.contentstack.com",
47+
"launch": "https://eu-launch-api.contentstack.com",
48+
"developerHub": "https://eu-developerhub-api.contentstack.com",
49+
"brandKit": "https://eu-brand-kits-api.contentstack.com",
50+
"genAI": "https://eu-ai.contentstack.com",
51+
"personalize": "https://eu-personalize-api.contentstack.com",
52+
"personalizeEdge": "https://eu-personalize-edge.contentstack.com"
53+
}
54+
},
55+
{
56+
"id": "au",
57+
"name": "AWS Australia",
58+
"cloudProvider": "AWS",
59+
"location": "Australia",
60+
"alias": ["au", "aws-au", "aws_au"],
61+
"isDefault": false,
62+
"endpoints": {
63+
"application": "https://au-app.contentstack.com",
64+
"contentDelivery": "https://au-cdn.contentstack.com",
65+
"contentManagement": "https://au-api.contentstack.com",
66+
"auth": "https://au-auth-api.contentstack.com",
67+
"graphqlDelivery": "https://au-graphql.contentstack.com",
68+
"preview": "https://au-rest-preview.contentstack.com",
69+
"graphqlPreview": "https://au-graphql-preview.contentstack.com",
70+
"images": "https://au-images.contentstack.com",
71+
"assets": "https://au-assets.contentstack.com",
72+
"automate": "https://au-prod-automations-api.contentstack.com",
73+
"launch": "https://au-launch-api.contentstack.com",
74+
"developerHub": "https://au-developerhub-api.contentstack.com",
75+
"brandKit": "https://au-brand-kits-api.contentstack.com",
76+
"genAI": "https://au-ai.contentstack.com",
77+
"personalize": "https://au-personalize-api.contentstack.com",
78+
"personalizeEdge": "https://au-personalize-edge.contentstack.com"
79+
}
80+
},
81+
{
82+
"id": "azure-na",
83+
"name": "Azure North America",
84+
"cloudProvider": "Azure",
85+
"location": "North America",
86+
"alias": ["azure-na", "azure_na"],
87+
"isDefault": false,
88+
"endpoints": {
89+
"application": "https://azure-na-app.contentstack.com",
90+
"contentDelivery": "https://azure-na-cdn.contentstack.com",
91+
"contentManagement": "https://azure-na-api.contentstack.com",
92+
"auth": "https://azure-na-auth-api.contentstack.com",
93+
"graphqlDelivery": "https://azure-na-graphql.contentstack.com",
94+
"preview": "https://azure-na-rest-preview.contentstack.com",
95+
"graphqlPreview": "https://azure-na-graphql-preview.contentstack.com",
96+
"images": "https://azure-na-images.contentstack.com",
97+
"assets": "https://azure-na-assets.contentstack.com",
98+
"automate": "https://azure-na-automations-api.contentstack.com",
99+
"launch": "https://azure-na-launch-api.contentstack.com",
100+
"developerHub": "https://azure-na-developerhub-api.contentstack.com",
101+
"brandKit": "https://azure-na-brand-kits-api.contentstack.com",
102+
"genAI": "https://azure-na-ai.contentstack.com",
103+
"personalize": "https://azure-na-personalize-api.contentstack.com",
104+
"personalizeEdge": "https://azure-na-personalize-edge.contentstack.com"
105+
}
106+
},
107+
{
108+
"id": "azure-eu",
109+
"name": "Azure Europe",
110+
"cloudProvider": "Azure",
111+
"location": "Europe",
112+
"alias": ["azure-eu", "azure_eu"],
113+
"isDefault": false,
114+
"endpoints": {
115+
"application": "https://azure-eu-app.contentstack.com",
116+
"contentDelivery": "https://azure-eu-cdn.contentstack.com",
117+
"contentManagement": "https://azure-eu-api.contentstack.com",
118+
"auth": "https://azure-eu-auth-api.contentstack.com",
119+
"graphqlDelivery": "https://azure-eu-graphql.contentstack.com",
120+
"preview": "https://azure-eu-rest-preview.contentstack.com",
121+
"graphqlPreview": "https://azure-eu-graphql-preview.contentstack.com",
122+
"images": "https://azure-eu-images.contentstack.com",
123+
"assets": "https://azure-eu-assets.contentstack.com",
124+
"automate": "https://azure-eu-automations-api.contentstack.com",
125+
"launch": "https://azure-eu-launch-api.contentstack.com",
126+
"developerHub": "https://azure-eu-developerhub-api.contentstack.com",
127+
"brandKit": "https://azure-eu-brand-kits-api.contentstack.com",
128+
"genAI": "https://azure-eu-ai.contentstack.com",
129+
"personalize": "https://azure-eu-personalize-api.contentstack.com",
130+
"personalizeEdge": "https://azure-eu-personalize-edge.contentstack.com"
131+
}
132+
},
133+
{
134+
"id": "gcp-na",
135+
"name": "GCP North America",
136+
"cloudProvider": "GCP",
137+
"location": "North America",
138+
"alias": ["gcp-na", "gcp_na"],
139+
"isDefault": false,
140+
"endpoints": {
141+
"application": "https://gcp-na-app.contentstack.com",
142+
"contentDelivery": "https://gcp-na-cdn.contentstack.com",
143+
"contentManagement": "https://gcp-na-api.contentstack.com",
144+
"auth": "https://gcp-na-auth-api.contentstack.com",
145+
"graphqlDelivery": "https://gcp-na-graphql.contentstack.com",
146+
"preview": "https://gcp-na-rest-preview.contentstack.com",
147+
"graphqlPreview": "https://gcp-na-graphql-preview.contentstack.com",
148+
"images": "https://gcp-na-images.contentstack.com",
149+
"assets": "https://gcp-na-assets.contentstack.com",
150+
"automate": "https://gcp-na-automations-api.contentstack.com",
151+
"launch": "https://gcp-na-launch-api.contentstack.com",
152+
"developerHub": "https://gcp-na-developerhub-api.contentstack.com",
153+
"brandKit": "https://gcp-na-brand-kits-api.contentstack.com",
154+
"genAI": "https://gcp-na-brand-kits-api.contentstack.com",
155+
"personalize": "https://gcp-na-personalize-api.contentstack.com",
156+
"personalizeEdge": "https://gcp-na-personalize-edge.contentstack.com"
157+
}
158+
},
159+
{
160+
"id": "gcp-eu",
161+
"name": "GCP Europe",
162+
"cloudProvider": "GCP",
163+
"location": "Europe",
164+
"alias": ["gcp-eu", "gcp_eu"],
165+
"isDefault": false,
166+
"endpoints": {
167+
"application": "https://gcp-eu-app.contentstack.com",
168+
"contentDelivery": "https://gcp-eu-cdn.contentstack.com",
169+
"contentManagement": "https://gcp-eu-api.contentstack.com",
170+
"auth": "https://gcp-eu-auth-api.contentstack.com",
171+
"graphqlDelivery": "https://gcp-eu-graphql.contentstack.com",
172+
"preview": "https://gcp-eu-rest-preview.contentstack.com",
173+
"graphqlPreview": "https://gcp-eu-graphql-preview.contentstack.com",
174+
"images": "https://gcp-eu-images.contentstack.com",
175+
"assets": "https://gcp-eu-assets.contentstack.com",
176+
"automate": "https://gcp-eu-automations-api.contentstack.com",
177+
"launch": "https://gcp-eu-launch-api.contentstack.com",
178+
"developerHub": "https://gcp-eu-developerhub-api.contentstack.com",
179+
"brandKit": "https://gcp-eu-brand-kits-api.contentstack.com",
180+
"genAI": "https://gcp-eu-brand-kits-api.contentstack.com",
181+
"personalize": "https://gcp-eu-personalize-api.contentstack.com",
182+
"personalizeEdge": "https://gcp-eu-personalize-edge.contentstack.com"
183+
}
184+
}
185+
]
186+
}

0 commit comments

Comments
 (0)