Skip to content

Commit

Permalink
fix: removed namespace from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Jul 9, 2024
1 parent 4210e05 commit a5d452b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions scripts/generateSDK/generateArtificats.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ async function generateTypesForApi(options) {
});
const namespace = `${options.name}Types`;

const codeAst = `
export namespace ${namespace} {
const codeAst = `\n
${baseTypes}
}
`;

return {
Expand Down Expand Up @@ -158,7 +154,6 @@ async function generateTsArtifacts({
content,
);
}

return {
identifier,
codeAst,
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export const parameterChecker = (
if (!url)
throw new Error('No url found!.Use either sandbox or production url');

const urls = ['https://v3-dev.protocol.mygateway.xyz/graphql'];
const urls = [
'https://v3-dev.protocol.mygateway.xyz/graphql',
'https://v3-stg.protocol.mygateway.xyz/graphql',
];

if (urls.includes(url)) return true;
else throw new Error('No valid url found!. Use sandbox or production url');
Expand Down

0 comments on commit a5d452b

Please sign in to comment.