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.0 to 4.0.1

dist/eos-api.js

6

lib/testnet.js
'use strict';
var apiGen = require('./apigen');
var isBrowser = require('is-browser');

@@ -12,4 +13,7 @@ module.exports = Testnet;

var configDefaults = { httpEndpoint: 'http://testnet1.eos.io'
// Always use SSL unless a browser protocol is 'http'
var protocol = isBrowser && location.protocol === 'http:' ? 'http' : 'https';
var configDefaults = { httpEndpoint: protocol + '://t1readonly.eos.io'
/**

@@ -16,0 +20,0 @@ @arg {object} config

14

package.json
{
"name": "eosjs-api",
"version": "4.0.0",
"version": "4.0.1",
"description": "Application programming interface to EOS blockchain nodes.",
"main": "lib/index.js",
"scripts": {
"test": "mocha src/**/*.test.js",
"test": "mocha --use_strict src/**/*.test.js",
"test_lib": "mocha --use_strict lib/*.test.js",
"coverage": "istanbul cover _mocha -- -R spec src/**/*.test.js",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"build": "node_modules/babel-cli/bin/babel.js src --out-dir lib",
"prepublish": "npm run build && npm run docs",
"docs": "jsdoc2md src/exported-helpers.js src/process-args.js > docs/index.md"
"build": "babel src --out-dir lib",
"build_browser": "npm run build && mkdir -p dist && browserify -o dist/eos-api.js -s EosApi lib/index.js",
"build_browser_test": "npm run build && mkdir -p dist && browserify -o dist/test.js lib/*.test.js",
"docs": "jsdoc2md src/exported-helpers.js src/process-args.js > docs/index.md",
"prepublishOnly": "npm run build_browser && npm run test_lib && npm run docs"
},

@@ -42,2 +45,3 @@ "repository": {

"eosjs-json": "^3.0.0",
"is-browser": "^2.0.1",
"isomorphic-fetch": "^2.2.1"

@@ -44,0 +48,0 @@ },

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