Skip to content

Commit

Permalink
chore: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed Jun 7, 2024
1 parent 8810817 commit 9305aa7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion languages/javascript/templates/sdk/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

//import { setMockResponses } from './Transport/MockTransport.mjs'
import { setMockResponses } from './Transport/MockTransport.mjs'

/* ${MOCK_IMPORTS} */

Expand Down
1 change: 1 addition & 0 deletions src/shared/modules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion test/TransportHarness.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
}
}

win.__firebolt.setTransportLayer(transport)
win.__firebolt.transport = transport

export default transport
2 changes: 1 addition & 1 deletion test/sdk/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

//import { setMockResponses } from './Transport/MockTransport.mjs'
import { setMockResponses } from './Transport/MockTransport.mjs'

/* ${MOCK_IMPORTS} */

Expand Down

0 comments on commit 9305aa7

Please sign in to comment.