Skip to content

Commit a48ed73

Browse files
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

.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: 2f932522b599050c23c6a2490897301a3efd9258f0c8bef512d099960c76617f
3+
checksum: 2d01a92de8d55b56ba719b8c1a497ecda99b084d9a0f35687a363d99265a1d7c
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
version: ""

0 commit comments

Comments
 (0)