mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Fix linting and type errors
This commit is contained in:
parent
5f82e45b2b
commit
c7ec7fcf37
2 changed files with 2 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ import { readFileSync } from "fs";
|
||||||
import EventEmitter from "events";
|
import EventEmitter from "events";
|
||||||
import { modifyResponseEventEmitter } from "./interceptors/npm/modifyNpmInfo.js";
|
import { modifyResponseEventEmitter } from "./interceptors/npm/modifyNpmInfo.js";
|
||||||
import { cleanupCertBundle } from "../certBundle.js";
|
import { cleanupCertBundle } from "../certBundle.js";
|
||||||
import { getHasSuppressedVersions } from "./interceptors/suppressedVersionsState.js";
|
|
||||||
|
|
||||||
/** *
|
/** *
|
||||||
* @returns {import("../registryProxy.js").SafeChainProxy} */
|
* @returns {import("../registryProxy.js").SafeChainProxy} */
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { EventEmitter } from "events";
|
import { EventEmitter } from "events";
|
||||||
import {
|
import {
|
||||||
|
getMinimumPackageAgeExclusions,
|
||||||
getMinimumPackageAgeHours,
|
getMinimumPackageAgeHours,
|
||||||
getNpmMinimumPackageAgeExclusions,
|
|
||||||
} from "../../../../config/settings.js";
|
} from "../../../../config/settings.js";
|
||||||
import { ui } from "../../../../environment/userInteraction.js";
|
import { ui } from "../../../../environment/userInteraction.js";
|
||||||
import { clearCachingHeaders, getHeaderValueAsString } from "../../http-utils.js";
|
import { clearCachingHeaders, getHeaderValueAsString } from "../../http-utils.js";
|
||||||
|
|
@ -70,7 +70,7 @@ export function modifyNpmInfoResponse(body, headers) {
|
||||||
|
|
||||||
// Check if this package is excluded from minimum age filtering
|
// Check if this package is excluded from minimum age filtering
|
||||||
const packageName = bodyJson.name;
|
const packageName = bodyJson.name;
|
||||||
const exclusions = getNpmMinimumPackageAgeExclusions();
|
const exclusions = getMinimumPackageAgeExclusions();
|
||||||
if (
|
if (
|
||||||
packageName &&
|
packageName &&
|
||||||
exclusions.some((pattern) =>
|
exclusions.some((pattern) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue