UNPKG

snyk-docker-plugin

Version:
14 lines • 472 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fullImageSavePath = fullImageSavePath; const crypto = require("crypto"); const os = require("os"); const path = require("path"); function fullImageSavePath(imageSavePath) { let imagePath = os.tmpdir(); if (imageSavePath) { imagePath = path.normalize(imageSavePath); } return path.join(imagePath, crypto.randomUUID()); } //# sourceMappingURL=image-save-path.js.map