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

eosjs-api

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eosjs-api - npm Package Compare versions

Comparing version 4.0.3 to 5.0.0

lib/api.test.js

10

lib/apigen.js

@@ -118,4 +118,12 @@ 'use strict';

}).catch(function (error) {
console.error('api error =>', url, body, error);
var message = '';
try {
// nodeos format (fail safe)
message = JSON.parse(error.message).error.details[0];
} catch (e2) {}
console.error('api error =>', message, url, body);
console.error(error);
try {
callback(error);

@@ -122,0 +130,0 @@ } catch (callbackError) {

2

lib/appgen.test.js

@@ -11,3 +11,3 @@ 'use strict';

var apiVersions = {
v1: require('eosjs-json/api/v1')
v1: require('./api/v1')
};

@@ -14,0 +14,0 @@

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

var processArgs = require('./process-args');
var api = require('./api');

@@ -11,3 +12,4 @@ module.exports = {

Localnet: Localnet,
processArgs: processArgs
processArgs: processArgs,
api: api
};

@@ -5,8 +5,7 @@ 'use strict';

module.exports = Testnet;
module.exports = Localnet;
var API_VERSION = 'v1';
Testnet.api = require('eosjs-json/api/v1');
Testnet.schema = require('eosjs-json/schema');
Localnet.api = require('./api/v1');

@@ -19,5 +18,5 @@ // Change httpEndpoint to public testnet when available

*/
};function Testnet(config) {
};function Localnet(config) {
config = Object.assign({}, configDefaults, config);
return apiGen(API_VERSION, Testnet.api, config);
return apiGen(API_VERSION, Localnet.api, config);
}

@@ -10,4 +10,3 @@ 'use strict';

Testnet.api = require('eosjs-json/api/v1');
Testnet.schema = require('eosjs-json/schema');
Testnet.api = require('./api/v1');

@@ -14,0 +13,0 @@ // Always use SSL unless a browser protocol is 'http'

{
"name": "eosjs-api",
"version": "4.0.3",
"version": "5.0.0",
"description": "Application programming interface to EOS blockchain nodes.",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"coveralls": "npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"build": "babel src --out-dir lib",
"build": "babel --copy-files src --out-dir lib",
"build_browser": "npm run build && mkdir -p dist && browserify -o dist/eos-api.js -s EosApi lib/index.js",

@@ -45,3 +45,2 @@ "build_browser_test": "npm run build && mkdir -p dist && browserify -o dist/test.js lib/*.test.js",

"camel-case": "^3.0.0",
"eosjs-json": "^4.0.1",
"is-browser": "^2.0.1",

@@ -48,0 +47,0 @@ "isomorphic-fetch": "^2.2.1"

@@ -79,4 +79,4 @@ [![Build Status](https://travis-ci.org/EOSIO/eosjs-api.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-api)

API methods and documentation are generated from:
* [chain.json](https://github.com/EOSIO/eosjs-json/blob/master/api/v1/chain.json)
* [account_history.json](https://github.com/EOSIO/eosjs-json/blob/master/api/v1/account_history.json)
* [chain.json](https://github.com/EOSIO/eosjs-api/blob/master/src/api/v1/chain.json)
* [account_history.json](https://github.com/EOSIO/eosjs-api/blob/master/src/api/v1/account_history.json)

@@ -83,0 +83,0 @@ Helper functions:

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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