From 9305aa766012cb81ba07468d6eef2fc2e8ffda22 Mon Sep 17 00:00:00 2001 From: Jeremy LaCivita Date: Fri, 7 Jun 2024 11:01:36 -0400 Subject: [PATCH] chore: WIP --- languages/javascript/templates/sdk/index.mjs | 2 +- src/shared/modules.mjs | 1 + test/TransportHarness.js | 2 +- test/sdk/index.mjs | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/languages/javascript/templates/sdk/index.mjs b/languages/javascript/templates/sdk/index.mjs index c74476e4..a9f2f5ca 100644 --- a/languages/javascript/templates/sdk/index.mjs +++ b/languages/javascript/templates/sdk/index.mjs @@ -16,7 +16,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -//import { setMockResponses } from './Transport/MockTransport.mjs' +import { setMockResponses } from './Transport/MockTransport.mjs' /* ${MOCK_IMPORTS} */ diff --git a/src/shared/modules.mjs b/src/shared/modules.mjs index a8c46838..7b1f1e68 100644 --- a/src/shared/modules.mjs +++ b/src/shared/modules.mjs @@ -1808,6 +1808,7 @@ const getModule = (name, json, copySchemas, extractSubSchemas) => { let openrpc = JSON.parse(JSON.stringify(json)) openrpc.methods = openrpc.methods .filter(method => method.name.toLowerCase().startsWith(name.toLowerCase() + '.')) + .filter(method => method.name !== 'rpc.discover') // .map(method => Object.assign(method, { name: method.name.split('.').pop() })) openrpc.info.title = name openrpc.components.schemas = Object.fromEntries(Object.entries(openrpc.components.schemas).filter( ([key, schema]) => key.startsWith('http') || key.split('.')[0] === name)) diff --git a/test/TransportHarness.js b/test/TransportHarness.js index 88ab891a..3ef3b2bb 100644 --- a/test/TransportHarness.js +++ b/test/TransportHarness.js @@ -57,6 +57,6 @@ } } - win.__firebolt.setTransportLayer(transport) + win.__firebolt.transport = transport export default transport \ No newline at end of file diff --git a/test/sdk/index.mjs b/test/sdk/index.mjs index c74476e4..a9f2f5ca 100644 --- a/test/sdk/index.mjs +++ b/test/sdk/index.mjs @@ -16,7 +16,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -//import { setMockResponses } from './Transport/MockTransport.mjs' +import { setMockResponses } from './Transport/MockTransport.mjs' /* ${MOCK_IMPORTS} */