Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case insensitive service check from root endpoint #74

Open
wants to merge 1 commit into
base: v4main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,38 +48,38 @@
let status = 30
const inputsDir = `${path}/inputs`
try {
fs.mkdirSync(inputsDir)

Check warning on line 51 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.mkdirSync with non literal argument at index 0
fs.chmodSync(inputsDir, 777)

Check warning on line 52 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.chmodSync with non literal argument at index 0
} catch (e) {
console.error(e)
}
const transformationsDir = `${path}/transformations`
try {
fs.mkdirSync(transformationsDir)

Check warning on line 58 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.mkdirSync with non literal argument at index 0
} catch (e) {
console.error(e)
}
const logsDir = `${path}/logs`
try {
fs.mkdirSync(logsDir)

Check warning on line 64 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.mkdirSync with non literal argument at index 0
fs.chmodSync(logsDir, 777)

Check warning on line 65 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.chmodSync with non literal argument at index 0
// create the algo log as well
const algoLogPath = `${path}/logs/algorithm.log`
fs.writeFileSync(algoLogPath, '')

Check warning on line 68 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.writeFileSync with non literal argument at index 0
fs.chmodSync(algoLogPath, 777)

Check warning on line 69 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.chmodSync with non literal argument at index 0
} catch (e) {
console.error(e)
}
const ddoDir = `${path}/ddos`
try {
fs.mkdirSync(ddoDir)

Check warning on line 75 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.mkdirSync with non literal argument at index 0
} catch (e) {
console.error(e)
}
const outputsDir = `${path}/outputs`
try {
fs.mkdirSync(outputsDir)

Check warning on line 81 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.mkdirSync with non literal argument at index 0
fs.chmodSync(outputsDir, 777)

Check warning on line 82 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

Found fs.chmodSync with non literal argument at index 0
} catch (e) {
console.error(e)
}
Expand Down Expand Up @@ -333,7 +333,7 @@
})
const providerData = await response.json()
for (const i in providerData.serviceEndpoints) {
if (i === serviceName) {
if (i.toLowerCase() === serviceName.toLowerCase()) {
return providerData.serviceEndpoints[i]
}
}
Expand Down
Loading