Skip to content

Commit e46498f

Browse files
Merge pull request #16 from Contentstack-Solutions/revert-15-fix/CS-33331
Revert "fix: fixed region code issue"
2 parents 94d8916 + 0a06df8 commit e46498f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "1.0.13",
4+
"version": "1.0.12",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {

src/commands/tsgen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
6565
const config: StackConnectionConfig = {
6666
apiKey: token.apiKey,
6767
token: token.token,
68-
region: (this.region.name === 'NA') ? 'us' : this.region.name.toLocaleLowerCase(),
68+
region: (this.region.name === 'eu') ? 'eu' : undefined,
6969
environment: token.environment || '',
7070
}
7171

0 commit comments

Comments
 (0)