mirror of
https://code.forgejo.org/actions/setup-node
synced 2025-06-21 10:57:59 +02:00
updated test cases
This commit is contained in:
parent
e5561a4d32
commit
7a5031f96f
9 changed files with 172 additions and 272 deletions
11
dist/cache-save/index.js
vendored
11
dist/cache-save/index.js
vendored
|
@ -91098,7 +91098,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.unique = exports.printEnvDetailsAndSetOutput = exports.getNodeVersionFromFile = void 0;
|
||||
exports.unique = exports.validateMirrorURL = exports.printEnvDetailsAndSetOutput = exports.getNodeVersionFromFile = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
const exec = __importStar(__nccwpck_require__(1514));
|
||||
const io = __importStar(__nccwpck_require__(7436));
|
||||
|
@ -91186,6 +91186,15 @@ function getToolVersion(tool, options) {
|
|||
}
|
||||
});
|
||||
}
|
||||
function validateMirrorURL(mirrorURL) {
|
||||
if (mirrorURL === ' ' || mirrorURL.trim() === 'undefined') {
|
||||
throw new Error('Mirror URL is empty. Please provide a valid mirror URL.');
|
||||
}
|
||||
else {
|
||||
return mirrorURL;
|
||||
}
|
||||
}
|
||||
exports.validateMirrorURL = validateMirrorURL;
|
||||
const unique = () => {
|
||||
const encountered = new Set();
|
||||
return (value) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue