Commit a48ed73
committed
feat: Update package dependencies and add postinstall/postupdate scripts
- Updated @contentstack/core to version ^1.3.1 and @contentstack/utils to version ^1.5.0 in package.json.
- Added postinstall and postupdate scripts to download regions.json from the Contentstack artifacts.
refactor: Enhance stack configuration with dynamic host resolution
- Introduced getHostforRegion function to resolve host based on cloud region.
- Updated stack function to utilize the new host resolution logic.
- Removed legacy host resolution code from stack function.
test: Add comprehensive tests for getHostforRegion and stack methods
- Implemented unit tests for getHostforRegion function covering various regions and edge cases.
- Added integration tests for stack class to ensure correct baseURL setting based on region.
- Enhanced existing tests for stack and utils to validate new functionality.
chore: Enable JSON module resolution in TypeScript configuration
- Updated tsconfig.json to include resolveJsonModule for importing JSON files.1 parent fe0fda6 commit a48ed73
12 files changed
Lines changed: 464 additions & 192 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
0 commit comments