UNPKG

snyk-docker-plugin

Version:
18 lines 834 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getApkDbFileContent = exports.getApkDbFileContentAction = void 0; const path_1 = require("path"); const extractor_1 = require("../../extractor"); const stream_utils_1 = require("../../stream-utils"); exports.getApkDbFileContentAction = { actionName: "apk-db", filePathMatches: (filePath) => filePath === (0, path_1.normalize)("/lib/apk/db/installed") || filePath === (0, path_1.normalize)("/usr/lib/apk/db/installed"), callback: stream_utils_1.streamToString, }; function getApkDbFileContent(extractedLayers) { const apkDb = (0, extractor_1.getContentAsString)(extractedLayers, exports.getApkDbFileContentAction); return apkDb || ""; } exports.getApkDbFileContent = getApkDbFileContent; //# sourceMappingURL=static.js.map