Socket
Socket
Sign inDemoInstall

@bpanel/simple-wallet

Package Overview
Dependencies
175
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

5

dist/constants.js

@@ -25,2 +25,5 @@ 'use strict';

// values to use from transaction history api
var TXN_HISTORY_TABLE_VALUES = exports.TXN_HISTORY_TABLE_VALUES = ['block', 'confirmations', 'date', 'fee', 'hash', 'tx', 'virtualSize'];
var TXN_HISTORY_TABLE_VALUES = exports.TXN_HISTORY_TABLE_VALUES = ['block', 'confirmations', 'date', 'fee', 'hash', 'tx', 'virtualSize'];
// HACK: until we have a paginating table
var TXN_DISPLAY_COUNT = exports.TXN_DISPLAY_COUNT = 15;

2

dist/index.js

@@ -114,3 +114,2 @@ 'use strict';

// TODO: still being passed through as parentProps...
var getRouteProps = exports.getRouteProps = (0, _defineProperty3.default)({}, metadata.name, function (parentProps, props) {

@@ -332,3 +331,2 @@ return (0, _assign2.default)(props, (0, _extends3.default)({}, parentProps));

// https://www.npmjs.com/package/seamless-immutable
var reduceWallets = exports.reduceWallets = function reduceWallets(state, action) {

@@ -335,0 +333,0 @@ var type = action.type,

@@ -294,5 +294,2 @@ 'use strict';

}()
// TODO: big try/catch block
}, {

@@ -299,0 +296,0 @@ key: 'handleSelect',

@@ -57,2 +57,6 @@ 'use strict';

var _seamlessImmutable = require('seamless-immutable');
var _seamlessImmutable2 = _interopRequireDefault(_seamlessImmutable);
var _QRCode = require('./QRCode');

@@ -68,6 +72,5 @@

// TODO: import from single file
// TODO: import styles from single file
// Third Party
// TODO: pull this out
var styles = {

@@ -86,2 +89,5 @@ inputStyle: { margin: '0.5rem' },

// Third Party
var SelectWallet = function (_Component) {

@@ -100,3 +106,11 @@ (0, _inherits3.default)(SelectWallet, _Component);

return transactions.map(function (txn) {
// only grab the TXN_DISPLAY_COUNT most recent transactions
// TXN_DISPLAY_COUNT will never be too large of a number
var negated = ~_constants.TXN_DISPLAY_COUNT + 1;
console.assert(negated < _constants.TXN_DISPLAY_COUNT);
// TODO: remove Immutable
// reverse the list to display most recent first
var txns = _seamlessImmutable2.default.asMutable(transactions.slice(negated)).reverse();
return txns.map(function (txn) {
var t = _lodash2.default.pick(txn, _constants.TXN_HISTORY_TABLE_VALUES);

@@ -106,4 +120,4 @@ // make sure all values are strings

(0, _keys2.default)(t).forEach(function (key) {
// sometimes the value is null
//
// sometimes the value is null but don't
// exclude 0 just because it is falsy
if (t[key] || t[key] === 0) {

@@ -110,0 +124,0 @@ t[key] = t[key].toString();

{
"name": "@bpanel/simple-wallet",
"version": "0.0.1",
"version": "0.0.2",
"description": "simple wallet management tool",

@@ -37,3 +37,5 @@ "main": "dist/index.js",

"bcoin": "git+https://github.com/bcoin-org/bcoin.git",
"@bpanel/bpanel-utils": "git+https://github.com/bpanel-org/bpanel-utils"
"@bpanel/bpanel-utils": "git+https://github.com/bpanel-org/bpanel-utils",
"react": "^16.2.0",
"seamless-immutable": "^7.1.2"
},

@@ -50,5 +52,4 @@ "devDependencies": {

"eslint-plugin-prettier": "^2.3.1",
"eslint-plugin-react": "^7.4.0",
"react": "^16.2.0"
"eslint-plugin-react": "^7.4.0"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc