-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: base64 default for sast analysis
- Loading branch information
Showing
7 changed files
with
10 additions
and
54 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
import config from './config'; | ||
import { config as userConfig } from './user-config'; | ||
|
||
export function getCodeClientProxyUrl() { | ||
export function getCodeClientProxyUrl(): string { | ||
const url = new URL(config.API); | ||
const domain = url.origin; | ||
return ( | ||
config.CODE_CLIENT_PROXY_URL || | ||
domain.replace(/\/\/(ap[pi]\.)?/, '//deeproxy.') | ||
); | ||
} | ||
|
||
export function getBase64Encoding( | ||
enabled = userConfig.get('use-base64-encoding'), | ||
): boolean { | ||
if (enabled) { | ||
return enabled.toLowerCase() === 'true'; | ||
} | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
test/jest/acceptance/snyk-code-config/snyk-code-config.spec.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters