-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fallback to manifest values if they're not specified in ExtismPluginOptions #73
Merged
Merged
Changes from 4 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c8070a4
fix: fallback to manifest values if they're not specified in ExtismPl…
mhmd-azeez fb9b1a3
add tests
mhmd-azeez 7e73e7f
log manifest
mhmd-azeez d004368
fix tests
mhmd-azeez 24c1f8a
refactor
mhmd-azeez d3e0dbc
fix tests
mhmd-azeez 5f658d4
fix property names to match the json structure
mhmd-azeez 99618e2
add manifest timeout
mhmd-azeez 4d2d57d
fix tests
mhmd-azeez 70b1e71
fix call timeout
mhmd-azeez 4c458e8
fix tests
mhmd-azeez 4fe346f
make manifest property names consistent with ExtismPluginOptions
mhmd-azeez 4568274
memory options
mhmd-azeez 0bff08b
add tests for memory
mhmd-azeez dd3908c
add more tests
mhmd-azeez 3248e19
add timeout test
mhmd-azeez 43e75ac
add cancellation to call context
mhmd-azeez 4f4edc8
add guard before host functions
mhmd-azeez 7fdd7f6
timeout.wasm => sleep.wasm
mhmd-azeez aa3b507
use worker.terminate to cancel a call
mhmd-azeez 9914611
refactor
mhmd-azeez c033ea6
fix build
mhmd-azeez 355d1ad
revert background plugin cancellation work
mhmd-azeez 4bf6cc9
refactor
mhmd-azeez c68125d
bring back cancellation
mhmd-azeez b6300e4
fix build
mhmd-azeez 6404b64
refactor
mhmd-azeez 5032877
remove timeout
mhmd-azeez 2a8f747
apply chris' suggestions
mhmd-azeez 8cbfdd8
use log_error instead of error_set
mhmd-azeez b868ec5
formatting
mhmd-azeez a780636
use release build
mhmd-azeez 9630a69
fix tests
mhmd-azeez 13fa089
fix test
mhmd-azeez 35495de
pass worker into BackgroundPlugin's ctor
mhmd-azeez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to support manifest options when the manifest is provided via
fetch
, we might rework_toWasmModuleData
to return a third item,manifestOpts
, then perform this call before normalizing the options in this function.intoManifest
is the chokepoint at which all the disparate input types are unified into something "manifest-like", so we could extract manifest-provided options here and then use them increatePlugin
to finish normalizing the input options.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this what you meant?
js-sdk/src/manifest.ts
Line 97 in d3e0dbc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! That's perfect, thank you!