Skip to content

Commit

Permalink
CLOUD-390 - Moving private methods to public to resolve issues with s…
Browse files Browse the repository at this point in the history
…ome loaders
  • Loading branch information
tsigle committed Sep 20, 2024
1 parent b0a978e commit 68ed34d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions lib/LintResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LintResult {
* message and recommendation arguments into the message and recommendation
* strings based on the percent (%) character.
*/
#getMessageObj(code, messageArgs, recommendationArgs, nodeId) {
getMessageObj(code, messageArgs, recommendationArgs, nodeId) {
const messageObj = {
code: code.code,
message: sprintf(code?.message, ...messageArgs),
Expand All @@ -39,7 +39,7 @@ class LintResult {
addError(code, props = {}) {
if (code) {
this.errors.push(
this.#getMessageObj(
this.getMessageObj(
code,
props.messageArgs || [],
props.recommendationArgs || [],
Expand All @@ -48,7 +48,7 @@ class LintResult {
);
} else {
this.errors.push(
this.#getMessageObj(
this.getMessageObj(
{
code: "generic-error",
description:
Expand Down
12 changes: 6 additions & 6 deletions lib/LintRulePack.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class LintRulePack {
});

const config = {
header: this.#getTableHeader(),
header: this.getTableHeader(),
columns: {
0: { width: 24 },
1: {
Expand All @@ -134,7 +134,7 @@ class LintRulePack {
return this.getRules();
}

#getTableHeader() {
getTableHeader() {
return {
alignment: "center",
content:
Expand Down Expand Up @@ -169,7 +169,7 @@ class LintRulePack {
});

const config = {
header: this.#getTableHeader(),
header: this.getTableHeader(),
columns: {
2: {
wrapWord: true,
Expand All @@ -191,7 +191,7 @@ class LintRulePack {
/**
* handleGetTableProps
*/
#handleGetTableProps(props) {
handleGetTableProps(props) {
if (props?.color === false) {
color.disable();
}
Expand All @@ -203,7 +203,7 @@ class LintRulePack {
getResultTable(props) {
const data = [];
const spanningCells = [];
this.#handleGetTableProps(props);
this.handleGetTableProps(props);
let row = 0;

// HEADER
Expand Down Expand Up @@ -276,7 +276,7 @@ class LintRulePack {
});

const config = {
header: this.#getTableHeader(),
header: this.getTableHeader(),
columns: {
0: {
width: 6,
Expand Down
4 changes: 2 additions & 2 deletions lib/PingOneDaVinciLinter.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class PingOneDaVinciLinter {
*
* @param {*} flow
*/
#setFlow(flow) {
setFlow(flow) {
this.allFlows = [];

if (!flow) {
Expand Down Expand Up @@ -142,7 +142,7 @@ class PingOneDaVinciLinter {
* @returns
*/
lintFlow(flow, props = {}) {
this.#setFlow(flow);
this.setFlow(flow);
const ruleProps = props;

try {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ping-identity/dvlint",
"version": "1.0.1",
"version": "1.0.2",
"description": "PingOne DaVinci Flow Linter",
"homepage": "https://library.pingidentity.com/page/davinci-linter-cli",
"main": "lib/index.js",
Expand Down

0 comments on commit 68ed34d

Please sign in to comment.