Skip to content

Commit

Permalink
fix(api): removes hardcoding and add configured path for breaker config
Browse files Browse the repository at this point in the history
  • Loading branch information
xadil committed May 20, 2024
1 parent e8f148f commit 449ec98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/typescript-fetch/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Configuration } from "./configuration";
{{#dataSourceImportString}}import { {{dataSourceName}} } from '{{dataSourceImportString}}';{{/dataSourceImportString}}
{{#withCircuitBreaker}}
{{^circuitBreakerImportString}}import { circuitBreaker, handleWhen, SamplingBreaker } from 'cockatiel'{{/circuitBreakerImportString}}
{{#circuitBreakerImportString}}import { {{circuitBreakerConfigFn}} } from '@app/circuit-breakers/CircuitBreakerConfig'{{/circuitBreakerImportString}}
{{#circuitBreakerImportString}}import { {{circuitBreakerConfigFn}} } from '{{ circuitBreakerImportString }}'{{/circuitBreakerImportString}}
{{/withCircuitBreaker}}

type GenericObject<key, type> = {}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "jest",
"lint": "eslint \"lib/**/*.js\" --quiet",
"semantic-release": "semantic-release",
"generate-sample": "node ./lib/chimp-datasources-generator.js create ./sample-apis/generated/petstore sample-apis/api-spec/petstore.json -ds \"@app/apis/BaseDataSource#BaseDataSource\" -cb -cbc \"@app/circuit-breakers/CircuitBreakerConfig#getServiceCircuitBreaker\""
"generate-sample": "node ./lib/chimp-datasources-generator.js create ./sample-apis/generated/petstore sample-apis/api-spec/petstore.json -ds \"@app/apis/BaseDataSource#BaseDataSource\" -cb true -cbc \"@app/circuitBreakers/CircuitBreakerConfig#getServiceCircuitBreaker\""
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 449ec98

Please sign in to comment.