Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL Advanced"
name: 'CodeQL Advanced'

on:
push:
branches: ["main", "release-v*"]
branches: ['main', 'release-v*']
pull_request:
branches: ["main"]
branches: ['main']
schedule:
- cron: "40 12 * * 3"
- cron: '40 12 * * 3'

permissions:
contents: read
Expand Down Expand Up @@ -53,4 +53,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
with:
category: "/language:${{matrix.language}}"
category: '/language:${{matrix.language}}'
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
provenance:
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_nodejs_slsa3.yml@f7dd8c54c2067bafc12ca7a55595d5ee9b75204a # v2.1.0
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_nodejs_slsa3.yml@f7dd8c54c2067bafc12ca7a55595d5ee9b75204a # v2.1.0
with:
run-scripts: 'install-pnpm, install-deps, style, nx-build-skip-cache, nx-test-skip-cache, generate'
node-version: '22.14.0'
Expand Down
4 changes: 4 additions & 0 deletions custom-models/plugin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export interface PluginContext {
kv: PluginKVStore;
headers: PluginHeaders;
params: any;
route: string;
config?: Record<string, any>;
method: string;
query: Record<string, string[]>;
}

export interface PluginAPI {
Expand Down
19 changes: 11 additions & 8 deletions examples/plugins/callPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ const config = new Configuration({

const pluginsApi = new PluginsApi(config);

const plugin_id = 'example';
const plugin_id = 'plugin-example'; // replace with your actual plugin id

pluginsApi.callPlugin(plugin_id, {
// these params will be passed to the plugin.
params: {
foo: 'bar',
baz: 123,
},
});
pluginsApi
.callPlugin(plugin_id, {
// these params will be passed to the plugin.
params: {
foo: 'bar',
baz: 123,
},
})
.then((response) => console.log(JSON.stringify(response.data, null, 2)))
.catch(console.error);
348 changes: 214 additions & 134 deletions examples/relayers/stellar/pnpm-lock.yaml

Large diffs are not rendered by default.

2,842 changes: 1,745 additions & 1,097 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/models/plugin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export interface PluginContext {
kv: PluginKVStore;
headers: PluginHeaders;
params: any;
route: string;
config?: Record<string, any>;
method: string;
query: Record<string, string[]>;
}

export interface PluginAPI {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "examples", "custom-models"]
}
}
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "examples", "custom-models"]
}
}