@substrate/context
Advanced tools
Comparing version 0.3.18 to 0.3.20
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.3.20](https://github.com/paritytech/Nomidot/compare/v0.3.19...v0.3.20) (2020-02-11) | ||
### Bug Fixes | ||
* Remove useless stuff from context & ui-components ([#161](https://github.com/paritytech/Nomidot/issues/161)) ([99466a7](https://github.com/paritytech/Nomidot/commit/99466a7a7d012326d8d536f848ac31f75ed7812d)) | ||
## [0.3.18](https://github.com/paritytech/Nomidot/compare/v0.3.17...v0.3.18) (2020-02-05) | ||
@@ -8,0 +19,0 @@ |
@@ -8,3 +8,2 @@ export * from './AccountsContext'; | ||
export * from './TxQueueContext'; | ||
export * from './types'; | ||
export * from './util'; |
@@ -79,2 +79,18 @@ "use strict"; | ||
/** | ||
* Clear the txQueue. | ||
*/ | ||
var clear = function () { | ||
var msg = []; | ||
txQueue.forEach(function (_a) { | ||
var method = _a.extrinsic.method, unsubscribe = _a.unsubscribe; | ||
msg.push(method.sectionName + "." + method.methodName); | ||
unsubscribe(); | ||
}); | ||
setTxQueue([]); | ||
l.log('Cleared all extrinsics'); | ||
cancelObservable.next({ | ||
msg: "cleared the following extrinsic(s): " + msg.join(' '), | ||
}); | ||
}; | ||
/** | ||
* Unsubscribe the tx with id `extrinsicId` | ||
@@ -86,3 +102,3 @@ */ | ||
tx.unsubscribe(); | ||
setTxQueue(txQueue.splice(txQueue.indexOf(tx), 1)); | ||
setTxQueue(txQueue.filter(function (tx) { return tx.id !== extrinsicId; })); | ||
} | ||
@@ -159,18 +175,2 @@ }; | ||
}; | ||
/** | ||
* Clear the txQueue. | ||
*/ | ||
var clear = function () { | ||
var msg = []; | ||
txQueue.forEach(function (_a) { | ||
var method = _a.extrinsic.method, unsubscribe = _a.unsubscribe; | ||
msg.push(method.sectionName + "." + method.methodName); | ||
unsubscribe(); | ||
}); | ||
setTxQueue([]); | ||
l.log('Cleared all extrinsics'); | ||
cancelObservable.next({ | ||
msg: "cleared the following extrinsic(s): " + msg.join(' '), | ||
}); | ||
}; | ||
return (react_1.default.createElement(exports.TxQueueContext.Provider, { value: { | ||
@@ -177,0 +177,0 @@ clear: clear, |
export * from './keyring'; | ||
export * from './provider'; | ||
export * from './ui'; | ||
export * from './validate'; |
@@ -12,2 +12,1 @@ "use strict"; | ||
__export(require("./ui")); | ||
__export(require("./validate")); |
{ | ||
"name": "@substrate/context", | ||
"version": "0.3.18", | ||
"version": "0.3.20", | ||
"author": "Parity Technologies <admin@parity.io>", | ||
@@ -27,3 +27,3 @@ "description": "Wrapper to connect React components to PolkadotJS Api", | ||
}, | ||
"gitHead": "beb68e2d0df2f37712060e144acec1fadbedf37e" | ||
"gitHead": "db36bd078daa82f4edd8ece51e93d585f5dbc6ad" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64923
28
1095