Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Feb 20, 2023
1 parent 86ed45a commit c90f3fc
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16025,6 +16025,31 @@ exports.Response = Response;
exports.FetchError = FetchError;


/***/ }),

/***/ 6446:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

exports.__esModule = true;
exports.normalizeBoolean = void 0;
function normalizeBoolean(value) {
if (!['boolean', 'string', 'number'].includes(typeof value)) {
return false;
}
var normalizedValue = !isNaN(parseInt(value)) ? parseInt(value) : value;
if (typeof normalizedValue === 'string') {
return ['true', 'on', 'yes', 'y'].includes(normalizedValue.toLowerCase().trim());
}
if (typeof normalizedValue === 'number') {
return normalizedValue === 1;
}
return Boolean(value);
}
exports.normalizeBoolean = normalizeBoolean;
//# sourceMappingURL=index.js.map

/***/ }),

/***/ 7952:
Expand Down Expand Up @@ -20025,36 +20050,14 @@ const generateIssueContent = async (scores) => {
return ejs.render(template, { scores: scoresInScope })
}

const normalizeBoolean = (value) => {
// Ignore non-primitive values
if (!['boolean', 'string', 'number'].includes(typeof value)) {
return false
}

const normalizedValue = !isNaN(parseInt(value)) ? parseInt(value) : value

// Add support for string values
if (typeof normalizedValue === 'string') {
return ['true', 'on', 'yes', 'y'].includes(normalizedValue.toLowerCase().trim())
}

// Add support for number values
if (typeof normalizedValue === 'number') {
return normalizedValue === 1
}

return Boolean(value)
}

module.exports = {
getProjectScore,
isDifferentContent,
saveScore,
getScore,
spliceIntoChunks,
generateReportContent,
generateIssueContent,
normalizeBoolean
generateIssueContent
}


Expand Down Expand Up @@ -20296,10 +20299,10 @@ var __webpack_exports__ = {};
const core = __nccwpck_require__(2186)
const github = __nccwpck_require__(5438)
const exec = __nccwpck_require__(1514)

const { normalizeBoolean } = __nccwpck_require__(6446)
const { readFile, writeFile, stat } = (__nccwpck_require__(7147).promises)

const { isDifferentContent, normalizeBoolean } = __nccwpck_require__(1608)
const { isDifferentContent } = __nccwpck_require__(1608)
const { generateScores } = __nccwpck_require__(4351)

async function run () {
Expand Down

0 comments on commit c90f3fc

Please sign in to comment.