diff --git a/projects/js-packages/scan/changelog/add-threat-types b/projects/js-packages/scan/changelog/add-threat-types deleted file mode 100644 index e549d3e8a3f87..0000000000000 --- a/projects/js-packages/scan/changelog/add-threat-types +++ /dev/null @@ -1,4 +0,0 @@ -Significance: minor -Type: added - -Add threat TypeScript types diff --git a/projects/js-packages/scan/src/types/threat.d.ts b/projects/js-packages/scan/src/types/threat.d.ts deleted file mode 100644 index 757503972fa0c..0000000000000 --- a/projects/js-packages/scan/src/types/threat.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -export type ThreatStatus = 'fixed' | 'ignored' | 'current'; - -export type ThreatFixType = 'replace' | 'delete' | 'update' | string; - -export type Threat = { - /** The threat's unique ID. */ - id: number; - - /** The threat's signature. */ - signature: string; - - /** The threat's title. */ - title: string; - - /** The threat's description. */ - description: string; - - /** The threat's current status. */ - status: ThreatStatus; - - /** The threat's severity level (0-10). */ - severity: number; - - /** The date the threat was first detected on the site, in YYYY-MM-DDTHH:MM:SS.000Z format. */ - firstDetected: string; - - /** The version the threat is fixed in. */ - fixedIn?: string | null; - - /** The date the threat was fixed, in YYYY-MM-DDTHH:MM:SS.000Z format. */ - fixedOn?: string | null; - - /** The fixable details. */ - fixable: - | { - fixer: ThreatFixType; - target?: string | null; - extensionStatus?: string | null; - } - | false; - - /** The threat's source. */ - source?: string; - - /** The threat's context. */ - context?: Record< string, unknown > | null; - - /** The name of the affected file. */ - filename: string | null; - - /** The rows affected by the database threat. */ - rows?: unknown; - - /** The table name of the database threat. */ - table?: string; - - /** The diff showing the threat's modified file contents. */ - diff?: string; -}; diff --git a/projects/plugins/protect/changelog/move-components-to-package b/projects/plugins/protect/changelog/move-components-to-package deleted file mode 100644 index 29ead1e0b072a..0000000000000 --- a/projects/plugins/protect/changelog/move-components-to-package +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: changed -Comment: Moved components to package - - diff --git a/projects/plugins/protect/tsconfig.json b/projects/plugins/protect/tsconfig.json index 3efc0b5fbb273..bc49ef3cebb58 100644 --- a/projects/plugins/protect/tsconfig.json +++ b/projects/plugins/protect/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "jetpack-js-tools/tsconfig.base.json", - "include": [ "./src/js", "../../js-packages/components/components/threats-data-view" ], + "include": [ "./src/js" ], "compilerOptions": { "sourceMap": true, "outDir": "./build/",