Skip to content

Commit

Permalink
added typecasting - Typecasting because of this issue: kaelzhang/node…
Browse files Browse the repository at this point in the history
…-comment-json#42

Signed-off-by: jace-roell <jace.roell@hotmail.com>
  • Loading branch information
jace-roell committed Jun 4, 2024
1 parent ae1b1ce commit c2533fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/apiml/Services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ export class Services {
conflictingPluginsList += `
// "${element}": "${profileInfo.gatewayUrlConflicts[element].join('", "')}"`;
});

// Typecasting because of this issue: https://github.com/kaelzhang/node-comment-json/issues/42

const basepathConflictMessage = `
// ---
// Warning: basePath conflict detected!
Expand All @@ -261,7 +264,7 @@ export class Services {
${_genCommentsHelper("basePath", basePaths)}
"basePath": "${defaultBasePath}"
}`
);
) as any;
}
});

Expand All @@ -287,7 +290,7 @@ export class Services {
"${defaultKey}": "${trueDefault}"`;
// Terminate the JSON string
jsonString += '\n}';
configDefaults = JSONC.parse(jsonString);
configDefaults = JSONC.parse(jsonString) as any;
}
}

Expand Down

0 comments on commit c2533fa

Please sign in to comment.