update randombytes reference
parent
4c5a7e6042
commit
8c6e828a8e
|
@ -12,7 +12,11 @@ const withBrowserDefaults = require('../shared.webpack.config').browser;
|
|||
|
||||
module.exports = withBrowserDefaults({
|
||||
context: __dirname,
|
||||
node: false,
|
||||
node: {
|
||||
global: true,
|
||||
__filename: false,
|
||||
__dirname: false,
|
||||
},
|
||||
entry: {
|
||||
extension: './src/extension.ts',
|
||||
},
|
||||
|
@ -23,11 +27,6 @@ module.exports = withBrowserDefaults({
|
|||
alias: {
|
||||
'./env/node': path.resolve(__dirname, 'src/env/browser'),
|
||||
'./authServer': path.resolve(__dirname, 'src/env/browser/authServer'),
|
||||
'buffer': path.resolve(__dirname, 'node_modules/buffer/index.js'),
|
||||
'node-fetch': path.resolve(__dirname, 'node_modules/node-fetch/browser.js'),
|
||||
'randombytes': path.resolve(__dirname, 'node_modules/randombytes/browser.js'),
|
||||
'stream': path.resolve(__dirname, 'node_modules/stream/index.js'),
|
||||
'uuid': path.resolve(__dirname, 'node_modules/uuid/dist/esm-browser/index.js')
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
"dependencies": {
|
||||
"buffer": "^5.6.0",
|
||||
"node-fetch": "2.6.1",
|
||||
"randombytes": "github:rmacfarlane/randombytes#b28d4ecee46262801ea09f15fa1f1513a05c5971",
|
||||
"randombytes": "~2.1.0",
|
||||
"sha.js": "2.4.11",
|
||||
"stream": "0.0.2",
|
||||
"uuid": "^8.2.0",
|
||||
|
|
|
@ -110,9 +110,10 @@ node-fetch@2.6.1:
|
|||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
|
||||
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
|
||||
|
||||
"randombytes@github:rmacfarlane/randombytes#b28d4ecee46262801ea09f15fa1f1513a05c5971":
|
||||
randombytes@~2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://codeload.github.com/rmacfarlane/randombytes/tar.gz/b28d4ecee46262801ea09f15fa1f1513a05c5971"
|
||||
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
|
||||
integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
|
||||
dependencies:
|
||||
safe-buffer "^5.1.0"
|
||||
|
||||
|
|
Loading…
Reference in New Issue