Skip to content

Commit

Permalink
update: dist
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed May 10, 2024
1 parent 70bf2fd commit 16a7a59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25784,6 +25784,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.replaceVariables = exports.processFiles = void 0;
const fs_1 = __importDefault(__nccwpck_require__(7147));
/**
* Process files and replace variables
* @param params - Files parameters see {@link FilesParams}
*/
function processFiles(params) {
const { files, encodings, variables, fsModule = fs_1.default, extension } = params;
files.forEach(file => {
Expand All @@ -25802,6 +25806,12 @@ function processFiles(params) {
}
}
exports.processFiles = processFiles;
/**
* Replace variables in content
* @param variables - Map of variables
* @param content - Content to replace variables
* @returns {string} Content with replaced variables
*/
function replaceVariables(variables, content) {
let newContent = content.toString();
variables.forEach((value, key) => {
Expand Down Expand Up @@ -25857,6 +25867,10 @@ function getEnvVariables(ignored) {
.map(([key, value]) => [key, value?.toString() ?? ""]));
}
exports.getEnvVariables = getEnvVariables;
/**
* Get all input parameters
* @returns {InputParams} Input parameters
*/
function getInputParams() {
const rootDir = core.getInput("rootDir", required);
const extension = core.getInput("extension", required);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 16a7a59

Please sign in to comment.