-
Notifications
You must be signed in to change notification settings - Fork 33
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
[FEAT] sync typescript versions #1613
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
02b493b
feat(packages/sui-mock): update ts
kikoruiz af76861
feat(packages/sui-test-contract): update ts
kikoruiz 5a372f0
feat(Root): update ts
kikoruiz d976ff6
chore(packages/sui-mock): update beta
kikoruiz 36a0ad9
chore(packages/sui-test-contract): update beta
kikoruiz cac3edc
fix(packages/sui-mock): fix server methods
kikoruiz 96e120a
Merge branch 'master' into upgrade-typescript-version
kikoruiz 18ee05c
fix(packages/sui-test-contract): fix import
kikoruiz c5153ca
feat(packages/sui-mock): restore current version
kikoruiz 8796745
feat(packages/sui-test-contract): restore current version
kikoruiz d318c57
feat(packages/sui-mock): upgrade to latest versions
kikoruiz 41ef126
feat(packages/sui-test-contract): upgrade to latest versions
kikoruiz 5d5179e
fix(packages/sui-mock): fix msw methods
kikoruiz 391546d
test(packages/sui-test-contract): import package in another way
kikoruiz d686527
feat(packages/sui-mock): revert esm module definition
kikoruiz b362ca1
fix(packages/sui-bundler): fix plugin extension
kikoruiz af01e76
Merge branch 'typescript-support' into upgrade-typescript-version
kikoruiz de522f1
feat(packages/sui-mock): restore current versions
kikoruiz f23e9ed
feat(packages/sui-test-contract): restore current versions
kikoruiz 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
export {rest} from 'msw' | ||
|
||
export const getServerMocker = async (handlers = []) => { | ||
const {setupServer} = require('msw/node') | ||
const setupServer = await import('msw/node').then(pkg => pkg.setupServer) | ||
const worker = setupServer(...handlers) | ||
|
||
return { | ||
...worker, | ||
start: worker.listen, | ||
stop: worker.close | ||
start: worker.listen.bind(worker), | ||
stop: worker.close.bind(worker), | ||
listen: worker.listen.bind(worker), | ||
close: worker.close.bind(worker), | ||
use: worker.use.bind(worker), | ||
resetHandlers: worker.resetHandlers.bind(worker), | ||
restoreHandlers: worker.restoreHandlers.bind(worker), | ||
printHandlers: worker.printHandlers.bind(worker) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import {stringify} from 'qs' | ||
|
||
import {writeData2File} from '@pactflow/pact-msw-adapter/dist/utils/utils.js' | ||
import {createWriter} from '@pactflow/pact-msw-adapter/dist/utils/utils.js' | ||
|
||
const flatEntries = (input, prefix = '') => | ||
Object.entries(input).flatMap(([key, value]) => { | ||
|
@@ -61,7 +61,7 @@ export const writerFactory = providers => (path, data) => { | |
}) | ||
|
||
console.log(`Writing the Pact file "${path}"`) // eslint-disable-line | ||
writeData2File(path, data) | ||
createWriter()(path, data) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix for a breaking change introduced in v1.4.0: pactflow/pact-msw-adapter@6d45541 |
||
} | ||
|
||
export const mapProviders = providers => | ||
|
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.
We'll change it when the new
sui-mock
version is released in the next master workflow execution.