Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethjs-util

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethjs-util - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

docs/developer-guide.md

8

internals/webpack/webpack.config.js
var webpack = require('webpack'); // eslint-disable-line
var env = process.env.NODE_ENV; // eslint-disable-line
var filename = 'ethjs-util'; // eslint-disable-line
var library = 'ethUtil'; // eslint-disable-line
var config = { // eslint-disable-line

@@ -20,3 +22,5 @@ module: {

output: {
library: 'ethUtil',
path: 'dist',
filename: filename + '.js', // eslint-disable-line
library: library, // eslint-disable-line
libraryTarget: 'umd',

@@ -27,3 +31,2 @@ umdNamedDefine: true,

new webpack.BannerPlugin({ banner: ' /* eslint-disable */ ', raw: true, entryOnly: true }),
new webpack.BannerPlugin({ banner: ' /* eslint-disable */ ', raw: true }),
new webpack.optimize.OccurrenceOrderPlugin(),

@@ -37,2 +40,3 @@ new webpack.DefinePlugin({

if (env === 'production') {
config.output.filename = filename + '.min.js'; // eslint-disable-line
config.plugins

@@ -39,0 +43,0 @@ .push(new webpack.optimize.UglifyJsPlugin({

{
"name": "ethjs-util",
"version": "0.0.5",
"version": "0.1.0",
"description": "A simple set of Ethereum JS utilties.",

@@ -14,4 +14,4 @@ "main": "./lib/index.js",

"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files",
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js ./dist/ethjs-util.js",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js ./dist/ethjs-util.min.js",
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress",
"build": "npm run build:commonjs && npm run test:lib && npm run build:umd && npm run build:umd:min",

@@ -120,4 +120,4 @@ "lint": "npm run lint:js",

"chai": "3.5.0",
"eslint": "2.10.1",
"coveralls": "2.11.9",
"eslint": "2.10.1",
"eslint-config-airbnb": "9.0.1",

@@ -124,0 +124,0 @@ "eslint-import-resolver-webpack": "0.2.4",

@@ -79,10 +79,8 @@ ## ethjs-util

<!--
## Guides
You'll find more detailed information on using default and tailoring it to your needs in our guides:
You'll find more detailed information on using `ethjs-util` and tailoring it to your needs in our guides:
- [User guide](docs/user-guide.md) - Usage, configuration, FAQ and complementary tools.
- [Developer guide](docs/developer-guide.md) - Contributing to wafr and writing your own plugins & formatters.
-->
- [Developer guide](docs/developer-guide.md) - Contributing to `ethjs-util` and writing your own code and coverage.

@@ -89,0 +87,0 @@ ## Help out

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