diff --git a/.gitignore b/.gitignore index 817e065..d085572 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /node_modules /.pnp .pnp.js +/.vscode # testing /coverage diff --git a/src/TestBench.js b/src/TestBench.js index 1bbcded..cb9142a 100644 --- a/src/TestBench.js +++ b/src/TestBench.js @@ -226,7 +226,7 @@ export default class TestBench extends React.Component { return query; }; - if (manifestVersion?.includes(specVersions["0.3"])) { + if (manifestVersion?.includes(specVersions["v1.0-draft"])) { return { queries: [{ ...(isCustomType ? { type: this.state.reconCustomType.id } : isNotNoType ? { type: this.state.reconType } : {}), diff --git a/src/utils.js b/src/utils.js index f01e0d1..747b347 100644 --- a/src/utils.js +++ b/src/utils.js @@ -6,6 +6,7 @@ export const specVersions={ "0.2":"0.2", "0.3":"0.3", "draft":"draft", +"v1.0-draft":"v1.0-draft", } const addParams = (baseUrl, params) => { let url = new URL(baseUrl); @@ -42,7 +43,7 @@ export const postParams = ({ manifestVersion = [specVersions["0.2"]], }) => { let currentManifestVersion = specVersions["0.2"]; - if(manifestVersion?.includes(specVersions["0.3"])) currentManifestVersion = specVersions["0.3"]; + if(manifestVersion?.includes(specVersions["v1.0-draft"])) currentManifestVersion = specVersions["v1.0-draft"]; switch (currentManifestVersion) { case "0.2": @@ -55,7 +56,7 @@ export const postParams = ({ queries, }), }); - case "0.3": + case "v1.0-draft": return fetch(url, { method: "POST", headers: {