Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmorizon committed Oct 7, 2023
1 parent 391f9a3 commit 6a2efd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion development/webpackTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function normalizeConfig({
config.resolve.fallback = {
...config.resolve.fallback,
'crypto': require.resolve(
'../packages/shared/src/modules3rdParty/cross-crypto',
'@onekeyhq/shared/src/modules3rdParty/cross-crypto/index.js',
),
'stream': require.resolve('stream-browserify'),
'path': false,
Expand Down
2 changes: 1 addition & 1 deletion packages/ext/development/nextWebpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function nextWebpack(
config.resolve.fallback = {
...config.resolve.fallback,
'crypto': require.resolve(
'../../../packages/shared/src/modules3rdParty/cross-crypto',
'@onekeyhq/shared/src/modules3rdParty/cross-crypto/index.js',
),
'stream': require.resolve('stream-browserify'),
'path': false,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/modules3rdParty/cross-crypto/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as crypto from 'crypto';
const globalCrypto = global.crypto;

// @ts-ignore
assert.ok(globalCrypto?.$$isOneKeyShim, 'nativeCrypto is not polyfilled');
assert.ok(globalCrypto?.$$isOneKeyShim, 'global crypto is not polyfilled');
// @ts-ignore
assert.ok(crypto?.$$isOneKeyShim, 'crypto is not polyfilled');

Expand Down

0 comments on commit 6a2efd4

Please sign in to comment.