-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade web3 * fix: lockfile * fix: type error * feat: introduce ses in dev * chore: patch immer * fix: gun * chore: patch @uniswap/v3-sdk * chore: injected-script with ses * -n -m chore: patch web3-core-method * fix: lock file * fix: patch ses * chore: add regenerator fixes * fix: regenerator again * chore: remove unused code * chore: remove unused code * chore: try lockdown whole world * fix: lockfile * fix: lockfile * fix: linter * fix: linter * chore: upgrade ses * chore: update lockfile * fix: lockfile * chore: cleanup
- Loading branch information
1 parent
5a4852d
commit b0cef01
Showing
17 changed files
with
2,457 additions
and
24 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { LoaderContext } from 'webpack' | ||
|
||
const reg = /Gp\[iteratorSymbol\]\s*=\s*function\s*\(\)\s*{\n\s*return this;\n\s*};/ | ||
export default function (this: LoaderContext<{}>, source: string) { | ||
if (reg.test(source)) { | ||
// this.emitWarning(new Error(' contains old version of regenerator runtime.')) | ||
return source.replace(reg, 'define(Gp, iteratorSymbol, function () { return this });') | ||
} | ||
return source | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference types="ses" /> | ||
lockdown({ | ||
// In production, we have CSP enforced no eval | ||
// In development, we use Trusted Types. | ||
evalTaming: 'unsafeEval', | ||
// | ||
overrideTaming: 'severe', | ||
consoleTaming: 'unsafe', | ||
errorTaming: 'unsafe', | ||
}) | ||
// completion value | ||
null |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* cspell:disable-next-line */ | ||
import { async, awrap, isGeneratorFunction, keys, mark, values, wrap } from 'regenerator-runtime' | ||
|
||
globalThis.regeneratorRuntime = new Proxy( | ||
Object.freeze({ | ||
async, | ||
/* cspell:disable-next-line */ | ||
awrap, | ||
isGeneratorFunction, | ||
keys, | ||
mark, | ||
values, | ||
wrap, | ||
}), | ||
{ | ||
get(...args) { | ||
console.debug('Try to access regeneratorRuntime') | ||
return Reflect.get(...args) | ||
}, | ||
}, | ||
) |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Upstream issue/PRs | ||
|
||
<https://github.com/vultix/ts-results/issues/37> | ||
<https://github.com/immerjs/immer/pull/914/> | ||
<https://github.com/ChainSafe/web3.js/pull/4918> | ||
<https://github.com/endojs/endo/issues/1139> |
Oops, something went wrong.