Fix TS compilation
This commit is contained in:
parent
793f844d89
commit
78b3bbdf68
4 changed files with 14 additions and 10 deletions
|
|
@ -35,7 +35,7 @@
|
|||
"rollup-plugin-license": "^0.7.0",
|
||||
"rollup-plugin-node-resolve": "^3.0.2",
|
||||
"rollup-plugin-terser": "^1.0.1",
|
||||
"rollup-plugin-typescript2": "^0.15.1",
|
||||
"rollup-plugin-typescript2": "^0.14.0",
|
||||
"semantic-release": "^15.0.2",
|
||||
"travis-deploy-once": "^5.0.0",
|
||||
"tslint": "^5.10.0",
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ export function checkAddress(address: string) {
|
|||
/**
|
||||
* Check if the given work is valid.
|
||||
*
|
||||
* **Note:** this only checks the format of the work, not its difficulty
|
||||
*
|
||||
* @param work - The work to check
|
||||
* @returns Valid
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@ let fillRandom: (bytes: Uint8Array) => Promise<void>;
|
|||
if (!IS_NODE) {
|
||||
fillRandom = bytes => {
|
||||
return new Promise(resolve => {
|
||||
self.crypto.getRandomValues(bytes); // eslint-disable-line
|
||||
// cast as any, otherwise:
|
||||
// error TS2339: Property 'crypto' does not exist on type 'WorkerGlobalScope'
|
||||
(self as any).crypto.getRandomValues(bytes);
|
||||
resolve();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
16
yarn.lock
16
yarn.lock
|
|
@ -4839,14 +4839,14 @@ rollup-plugin-terser@^1.0.1:
|
|||
"@babel/code-frame" "^7.0.0-beta.47"
|
||||
terser "^3.7.5"
|
||||
|
||||
rollup-plugin-typescript2@^0.15.1:
|
||||
version "0.15.1"
|
||||
resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.15.1.tgz#7b35d0eaa6ad5a54a253ed158a565b99d8f15372"
|
||||
rollup-plugin-typescript2@^0.14.0:
|
||||
version "0.14.0"
|
||||
resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.14.0.tgz#b24c1019facdcfb100beff5673e0b229e9c79475"
|
||||
dependencies:
|
||||
fs-extra "^5.0.0"
|
||||
resolve "^1.7.1"
|
||||
rollup-pluginutils "^2.0.1"
|
||||
tslib "1.9.2"
|
||||
tslib "^1.9.0"
|
||||
|
||||
rollup-pluginutils@^2.0.1:
|
||||
version "2.0.1"
|
||||
|
|
@ -5459,14 +5459,14 @@ tslib@1.9.0, tslib@^1.8.0:
|
|||
version "1.9.0"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
|
||||
|
||||
tslib@1.9.2:
|
||||
version "1.9.2"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.2.tgz#8be0cc9a1f6dc7727c38deb16c2ebd1a2892988e"
|
||||
|
||||
tslib@^1.7.1, tslib@^1.8.1:
|
||||
version "1.9.1"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.1.tgz#a5d1f0532a49221c87755cfcc89ca37197242ba7"
|
||||
|
||||
tslib@^1.9.0:
|
||||
version "1.9.3"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
|
||||
|
||||
tslint-config-airbnb@^5.8.0:
|
||||
version "5.9.2"
|
||||
resolved "https://registry.yarnpkg.com/tslint-config-airbnb/-/tslint-config-airbnb-5.9.2.tgz#fdb37a695ec09b663d5ee92e7852a7a9337ec44c"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue