@aikidosec/safe-chain 1.4.7 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +4069 -0
- package/package.json +1 -1
- package/src/config/settings.js +4 -6
package/package.json
CHANGED
package/src/config/settings.js
CHANGED
|
@@ -209,7 +209,7 @@ export function getMalwareListBaseUrl() {
|
|
|
209
209
|
const cliValue = cliArguments.getMalwareListBaseUrl();
|
|
210
210
|
if (cliValue) {
|
|
211
211
|
const url = removeTrailingSlashes(cliValue);
|
|
212
|
-
ui.
|
|
212
|
+
ui.writeVerbose(`Fetching malware lists from ${url} as defined by CLI argument --safe-chain-malware-list-base-url`);
|
|
213
213
|
return url;
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -217,7 +217,7 @@ export function getMalwareListBaseUrl() {
|
|
|
217
217
|
const envValue = environmentVariables.getMalwareListBaseUrl();
|
|
218
218
|
if (envValue) {
|
|
219
219
|
const url = removeTrailingSlashes(envValue);
|
|
220
|
-
ui.
|
|
220
|
+
ui.writeVerbose(`Fetching malware lists from ${url} as defined by environment variable SAFE_CHAIN_MALWARE_LIST_BASE_URL`);
|
|
221
221
|
return url;
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -225,14 +225,12 @@ export function getMalwareListBaseUrl() {
|
|
|
225
225
|
const configValue = configFile.getMalwareListBaseUrl();
|
|
226
226
|
if (configValue) {
|
|
227
227
|
const url = removeTrailingSlashes(configValue);
|
|
228
|
-
ui.
|
|
228
|
+
ui.writeVerbose(`Fetching malware lists from ${url} as defined by config file (malwareListBaseUrl)`);
|
|
229
229
|
return url;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
// Default
|
|
233
|
-
|
|
234
|
-
ui.writeInformation(`Fetching malware lists from ${url} (default)`);
|
|
235
|
-
return url;
|
|
233
|
+
return removeTrailingSlashes("https://malware-list.aikido.dev");
|
|
236
234
|
}
|
|
237
235
|
|
|
238
236
|
/**
|