New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphenejs-lib

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphenejs-lib - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

12

dist/chain/src/AccountLogin.js

@@ -5,4 +5,2 @@ "use strict";

var _state = require("./state");
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -13,2 +11,8 @@

var _require = require("./state");
var get = _require.get;
var set = _require.set;
var _keyCachePriv = {};

@@ -22,4 +26,4 @@ var _keyCachePub = {};

var state = { loggedIn: false, roles: ["active", "owner", "memo"] };
this.get = (0, _state.get)(state);
this.set = (0, _state.set)(state);
this.get = get(state);
this.set = set(state);

@@ -26,0 +30,0 @@ this.subs = {};

@@ -122,4 +122,3 @@ "use strict";

if (!db_api) {
setTimeout(_init.bind(_this, resolve, reject), 1000);
return;
return reject(new Error("Api not found, please initialize the api instance before calling the ChainStore"));
}

@@ -1044,6 +1043,6 @@ return db_api.exec("get_objects", [["2.1.0"]]).then(function (optional_objects) {

} else {
var balances = owner.get("balances");
if (!balances) owner = owner.set("balances", Immutable.Map());
owner = owner.setIn(['balances', object.asset_type], object.id);
}
var balances = owner.get("balances");
if (!balances) owner = owner.set("balances", Immutable.Map());
owner = owner.setIn(['balances', object.asset_type], object.id);
}
this.objects_by_id = this.objects_by_id.set(object.owner, owner);

@@ -1169,5 +1168,5 @@ }

} else if (object.id.substring(0, proposal_prefix.length) == proposal_prefix) {
this.addProposalData(object.required_active_approvals, object.id);
this.addProposalData(object.required_owner_approvals, object.id);
}
this.addProposalData(object.required_active_approvals, object.id);
this.addProposalData(object.required_owner_approvals, object.id);
}

@@ -1174,0 +1173,0 @@ if (notify_subscribers) this.notifySubscribers();

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.get = get;
exports.set = set;
function get(state) {

@@ -19,2 +14,7 @@ return function (key) {

};
}
}
module.exports = {
get: get,
set: set
};

@@ -6,6 +6,3 @@ "use strict";

var
//id_type,
//varint32,
uint8 = types.uint8;
var uint8 = types.uint8;
var uint16 = types.uint16;

@@ -12,0 +9,0 @@ var uint32 = types.uint32;

{
"name": "graphenejs-lib",
"version": "0.4.0",
"version": "0.4.1",
"description": "Pure JavaScript Bitshares/Graphene library for node.js and browsers.",

@@ -45,3 +45,3 @@ "browser": {

"event-emitter": "^0.3.4",
"graphenejs-ws": "^0.1.0",
"graphenejs-ws": "^0.1.3",
"immutable": "^3.7.6",

@@ -53,3 +53,3 @@ "secure-random": "^1.1.1"

"babel-cli": "^6.9.0",
"babel-core": "^6.9.1",
"babel-core": "^6.10.4",
"babel-eslint": "^6.0.4",

@@ -56,0 +56,0 @@ "babel-preset-es2015": "^6.9.0",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc