diff --git a/src/warnings.js b/src/warnings.js index a9c3a99..7ca34cc 100644 --- a/src/warnings.js +++ b/src/warnings.js @@ -54,7 +54,7 @@ export const warnings = Object.freeze({ }); export function generateWarning(kind, options) { - const { location, file = null, value = null, source = "JS-X-Ray"} = options; + const { location, file = null, value = null, source = null } = options; if (kind === "encoded-literal") { return Object.assign( diff --git a/types/warnings.d.ts b/types/warnings.d.ts index eefd5d1..75edd59 100644 --- a/types/warnings.d.ts +++ b/types/warnings.d.ts @@ -25,7 +25,7 @@ interface WarningDefault { kind: WarningName; file?: string; value: string; - source: "JS-X-Ray" | "Scanner"; + source?: string; location: WarningLocation | WarningLocation[]; i18n: string; severity: "Information" | "Warning" | "Critical";