Bump dependencies (#788)
* Bump dependencies * Remove signing length check
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/api": "^0.48.1",
|
||||
"@polkadot/types": "^0.48.1",
|
||||
"@types/memoizee": "^0.4.2",
|
||||
|
||||
@@ -18,13 +18,13 @@ describe('drr', () => {
|
||||
});
|
||||
|
||||
it('should be a ReplaySubject(1)', (done) => {
|
||||
const obs = timer(0, 200).pipe(drr()); // Starts at 0, increments every 200ms
|
||||
const obs = timer(0, 100).pipe(drr()); // Starts at 0, increments every 100ms
|
||||
obs.subscribe(); // Fire the observable
|
||||
|
||||
// Subscribe another time after some time, i.e. after the observable has fired
|
||||
setTimeout(() => {
|
||||
obs.subscribe((value) => {
|
||||
expect(value).toBe(2);
|
||||
expect(value > 1).toBe(true);
|
||||
done();
|
||||
});
|
||||
}, 500);
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/api-derive": "^0.48.1",
|
||||
"@polkadot/extrinsics": "^0.48.1",
|
||||
"@polkadot/rpc-provider": "^0.48.1",
|
||||
"@polkadot/rpc-rx": "^0.48.1",
|
||||
"@polkadot/storage": "^0.48.1",
|
||||
"@polkadot/types": "^0.48.1",
|
||||
"@polkadot/util-crypto": "^0.38.1"
|
||||
"@polkadot/util-crypto": "^0.39.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/jsonrpc": "^0.48.1",
|
||||
"@polkadot/rpc-provider": "^0.48.1",
|
||||
"@polkadot/types": "^0.48.1",
|
||||
"@polkadot/util": "^0.38.1"
|
||||
"@polkadot/util": "^0.39.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.38.1",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/keyring": "^0.39.0-beta.1",
|
||||
"@polkadot/storage": "^0.48.1",
|
||||
"@polkadot/util": "^0.38.1",
|
||||
"@polkadot/util-crypto": "^0.38.1",
|
||||
"@polkadot/util": "^0.39.0-beta.1",
|
||||
"@polkadot/util-crypto": "^0.39.0-beta.1",
|
||||
"@types/nock": "^9.3.1",
|
||||
"eventemitter3": "^3.1.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/rpc-core": "^0.48.1",
|
||||
"@polkadot/rpc-provider": "^0.48.1",
|
||||
"@types/memoizee": "^0.4.2",
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"contributors": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/types": "^0.48.1",
|
||||
"@polkadot/util": "^0.38.1"
|
||||
"@polkadot/util": "^0.39.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-jsonrpc#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4"
|
||||
"@babel/runtime": "^7.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.38.1",
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/keyring": "^0.39.0-beta.1",
|
||||
"@polkadot/types": "^0.48.1",
|
||||
"@polkadot/util": "^0.38.1",
|
||||
"@polkadot/util-crypto": "^0.38.1"
|
||||
"@polkadot/util": "^0.39.0-beta.1",
|
||||
"@polkadot/util-crypto": "^0.39.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,9 +29,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.38.1",
|
||||
"@polkadot/util": "^0.38.1",
|
||||
"core-js": "^2.6.5"
|
||||
"@babel/runtime": "^7.4.0",
|
||||
"@polkadot/keyring": "^0.39.0-beta.1",
|
||||
"@polkadot/util": "^0.39.0-beta.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,12 +94,8 @@ export default class SignaturePayload extends Struct {
|
||||
* @description Sign the payload with the keypair
|
||||
*/
|
||||
sign (signerPair: KeyringPair, version?: RuntimeVersion): Uint8Array {
|
||||
// for newer api versions, hash when length > 256
|
||||
const isLegacy = !version ||
|
||||
(version.specName.eq('node') && version.specVersion.ltn(18)) ||
|
||||
(version.specName.eq('polkadot') && version.specVersion.ltn(107));
|
||||
const u8a = this.toU8a();
|
||||
const encoded = !isLegacy && (u8a.length > 256)
|
||||
const encoded = u8a.length > 256
|
||||
? blake2AsU8a(u8a)
|
||||
: u8a;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user