UNPKG

@nodesecure/tarball

Version:
40 lines 1.08 kB
// Import Third-party Dependencies import { warnings as originalWarnings } from "@nodesecure/js-x-ray/warnings"; export const warnings = Object.freeze({ ...originalWarnings, "zero-semver": { i18n: "sast_warnings.zero_semver", experimental: false, severity: "Information" }, "empty-package": { i18n: "sast_warnings.empty_package", experimental: false, severity: "Warning" } }); export function getSemVerWarning(value) { return { kind: "zero-semver", file: "package.json", value, location: null, i18n: "sast_warnings.zero_semver", severity: "Information", source: "Scanner", experimental: false }; } export function getEmptyPackageWarning() { return { kind: "empty-package", file: "package.json", value: "package.json", location: null, i18n: "sast_warnings.empty_package", severity: "Critical", source: "Scanner", experimental: false }; } //# sourceMappingURL=warnings.js.map