Comparing version 1.0.0-beta.7 to 1.0.0-beta.9
{ | ||
"namespace": "ethereum", | ||
"name": "web3", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.9", | ||
"description": "Ethereum JavaScript API", | ||
@@ -6,0 +6,0 @@ "license": "LGPL-3.0", |
@@ -22,2 +22,3 @@ #!/usr/bin/env node | ||
var DEST = path.join(__dirname, 'dist/'); | ||
var packages = [{ | ||
@@ -29,45 +30,41 @@ fileName: 'web3', | ||
fileName: 'web3-utils', | ||
expose: 'Utils', | ||
expose: 'Web3Utils', | ||
src: './packages/web3-utils/src/index.js' | ||
},{ | ||
fileName: 'web3-eth', | ||
expose: 'Eth', | ||
expose: 'Web3Eth', | ||
src: './packages/web3-eth/src/index.js' | ||
},{ | ||
fileName: 'web3-eth-accounts', | ||
expose: 'Accounts', | ||
expose: 'Web3EthAccounts', | ||
src: './packages/web3-eth-accounts/src/index.js' | ||
},{ | ||
fileName: 'web3-eth-contract', | ||
expose: 'Conract', | ||
expose: 'Web3EthContract', | ||
src: './packages/web3-eth-contract/src/index.js' | ||
},{ | ||
fileName: 'web3-eth-personal', | ||
expose: 'Personal', | ||
expose: 'Web3EthPersonal', | ||
src: './packages/web3-eth-personal/src/index.js' | ||
},{ | ||
fileName: 'web3-eth-iban', | ||
expose: 'EthIban', | ||
expose: 'Web3EthIban', | ||
src: './packages/web3-eth-iban/src/index.js' | ||
},{ | ||
fileName: 'web3-eth-abi', | ||
expose: 'EthAbi', | ||
expose: 'Web3EthAbi', | ||
src: './packages/web3-eth-abi/src/index.js' | ||
},{ | ||
fileName: 'web3-net', | ||
expose: 'Net', | ||
expose: 'Web3Net', | ||
src: './packages/web3-net/src/index.js' | ||
},{ | ||
fileName: 'web3-shh', | ||
expose: 'Shh', | ||
expose: 'Web3Shh', | ||
src: './packages/web3-shh/src/index.js' | ||
},{ | ||
fileName: 'web3-bzz', | ||
expose: 'Bzz', | ||
expose: 'Web3Bzz', | ||
src: './packages/web3-bzz/src/index.js' | ||
},{ | ||
fileName: 'web3-core-requestManager', | ||
expose: 'RequestManager', | ||
src: './packages/web3-core-requestManager/src/index.js' | ||
},{ | ||
fileName: 'web3-providers-ipc', | ||
@@ -85,2 +82,18 @@ expose: 'Web3IpcProvider', | ||
src: './packages/web3-providers-ws/src/index.js' | ||
},{ | ||
fileName: 'web3-core-subscriptions', | ||
expose: 'Web3Subscriptions', | ||
src: './packages/web3-core-subscriptions/src/index.js' | ||
},{ | ||
fileName: 'web3-core-requestmanager', | ||
expose: 'Web3RequestManager', | ||
src: './packages/web3-core-requestmanager/src/index.js' | ||
},{ | ||
fileName: 'web3-core-promievent', | ||
expose: 'Web3PromiEvent', | ||
src: './packages/web3-core-promievent/src/index.js' | ||
},{ | ||
fileName: 'web3-core-method', | ||
expose: 'Web3Method', | ||
src: './packages/web3-core-method/src/index.js' | ||
}]; | ||
@@ -177,3 +190,5 @@ | ||
gulp.task('default', ['version', 'lint', 'clean', packages[packages.length-1].fileName]); | ||
gulp.task('all', ['version', 'lint', 'clean', packages[packages.length-1].fileName]); | ||
gulp.task('default', ['version', 'lint', 'clean', packages[0].fileName]); | ||
{ | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.9", | ||
"lerna": "2.0.0", | ||
@@ -4,0 +4,0 @@ "packages": [ |
/* jshint ignore:start */ | ||
Package.describe({ | ||
name: 'ethereum:web3', | ||
version: '1.0.0-beta.7', | ||
version: '1.0.0-beta.9', | ||
summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC', | ||
@@ -6,0 +6,0 @@ git: 'https://github.com/ethereum/ethereum.js', |
{ | ||
"name": "web3", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.9", | ||
"description": "Ethereum JavaScript API", | ||
@@ -14,4 +14,4 @@ "license": "LGPL-3.0", | ||
"scripts": { | ||
"postinstall": "./node_modules/lerna/bin/lerna.js bootstrap", | ||
"build": "gulp", | ||
"build-all": "gulp all", | ||
"watch": "gulp watch", | ||
@@ -18,0 +18,0 @@ "docs": "cd docs; make html;", |
{ | ||
"name": "web3-bzz", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to interact with the Swarm network.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-bzz", |
{ | ||
"name": "web3-core-helpers", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 core tools helper for sub packages. This is an internal package.", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core-helpers", | ||
"dependencies": { | ||
"web3-utils": "^1.0.0", | ||
"web3-eth-iban": "^1.0.0", | ||
"underscore": "1.8.3" | ||
"underscore": "1.8.3", | ||
"web3-eth-iban": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-core-method", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Creates the methods on the web3 modules. This is an internal package.", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core-method", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"web3-utils": "^1.0.0", | ||
"web3-core-promiEvent": "^1.0.0", | ||
"underscore": "1.8.3" | ||
"underscore": "1.8.3", | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-core-promievent": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
@@ -29,3 +29,3 @@ /* | ||
var utils = require('web3-utils'); | ||
var promiEvent = require('web3-core-promiEvent'); | ||
var promiEvent = require('web3-core-promievent'); | ||
@@ -32,0 +32,0 @@ var TIMEOUTBLOCK = 50; |
{ | ||
"name": "web3-core-subscriptions", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Manages web3 subscriptions. This is an internal package.", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core-subscriptions", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"eventemitter3": "1.1.1", | ||
"underscore": "1.8.3", | ||
"eventemitter3": "1.1.1" | ||
"web3-core-helpers": "^1.0.0-beta.9" | ||
} | ||
} |
@@ -43,3 +43,3 @@ /* | ||
var func = this.buildCall(); | ||
func.call = this.call; // TODO!!! that's ugly. filter.js uses it | ||
func.call = this.call; | ||
var name = this.name.split('.'); | ||
@@ -46,0 +46,0 @@ if (name.length > 1) { |
{ | ||
"name": "web3-core", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 core tools for sub packages. This is an internal package.", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core", | ||
"dependencies": { | ||
"web3-core-helpers": "1.0.0", | ||
"web3-core-method": "1.0.0", | ||
"web3-utils": "1.0.0", | ||
"web3-requestManager": "1.0.0" | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-core-method": "^1.0.0-beta.9", | ||
"web3-requestmanager": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
@@ -26,3 +26,3 @@ /* | ||
var requestManager = require('web3-requestManager'); | ||
var requestManager = require('web3-requestmanager'); | ||
var extend = require('./extend.js'); | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "web3-eth-abi", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module encode and decode EVM in/output.", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth-abi", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"web3-utils": "^1.0.0", | ||
"bn.js": "4.11.6", | ||
"underscore": "1.8.3", | ||
"bn.js": "4.11.6" | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-eth-accounts", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to generate Ethereum accounts and sign data and transactions.", | ||
@@ -9,10 +9,10 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth-accounts", | ||
"dependencies": { | ||
"bluebird": "3.3.1", | ||
"eth-lib": "0.1.23", | ||
"bluebird": "3.3.1", | ||
"scrypt.js": "0.2.0", | ||
"underscore": "1.8.3", | ||
"uuid": "2.0.1", | ||
"web3-core-helpers": "1.0.0", | ||
"web3-utils": "1.0.0" | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-eth-contract", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to interact with Ethereum smart contracts.", | ||
@@ -9,10 +9,10 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth-contract", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"web3-core-subscriptions": "^1.0.0", | ||
"web3-core-method": "^1.0.0", | ||
"web3-core-promiEvent": "^1.0.0", | ||
"web3-eth-abi": "^1.0.0", | ||
"web3-utils": "^1.0.0", | ||
"underscore": "1.8.3" | ||
"underscore": "1.8.3", | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-core-method": "^1.0.0-beta.9", | ||
"web3-core-promievent": "^1.0.0-beta.9", | ||
"web3-core-subscriptions": "^1.0.0-beta.9", | ||
"web3-eth-abi": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
@@ -40,3 +40,3 @@ /* | ||
var errors = require('web3-core-helpers').errors; | ||
var promiEvent = require('web3-core-promiEvent'); | ||
var promiEvent = require('web3-core-promievent'); | ||
var abi = require('web3-eth-abi'); | ||
@@ -43,0 +43,0 @@ |
{ | ||
"name": "web3-eth-iban", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "This package converts Ethereum addresses to IBAN addresses a vice versa.", | ||
@@ -9,5 +9,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth-iban", | ||
"dependencies": { | ||
"web3-utils": "1.0.0", | ||
"bn.js": "^4.11.6" | ||
"bn.js": "^4.11.6", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-eth-personal", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to interact with the Ethereum blockchain accounts stored in the node.", | ||
@@ -9,8 +9,8 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth-personal", | ||
"dependencies": { | ||
"web3-core": "^1.0.0", | ||
"web3-core-helpers": "^1.0.0", | ||
"web3-core-method": "^1.0.0", | ||
"web3-utils": "^1.0.0", | ||
"web3-net": "^1.0.0" | ||
"web3-core": "^1.0.0-beta.9", | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-core-method": "^1.0.0-beta.9", | ||
"web3-net": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-eth", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to interact with the Ethereum blockchain and smart contracts.", | ||
@@ -9,15 +9,15 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth", | ||
"dependencies": { | ||
"web3-core": "^1.0.0", | ||
"web3-core-helpers": "^1.0.0", | ||
"web3-core-method": "^1.0.0", | ||
"web3-core-subscriptions": "^1.0.0", | ||
"web3-eth-abi": "^1.0.0", | ||
"web3-eth-contract": "^1.0.0", | ||
"web3-eth-iban": "^1.0.0", | ||
"web3-eth-personal": "^1.0.0", | ||
"web3-eth-accounts": "^1.0.0", | ||
"web3-net": "^1.0.0", | ||
"web3-utils": "^1.0.0", | ||
"underscore": "1.8.3" | ||
"underscore": "1.8.3", | ||
"web3-core": "^1.0.0-beta.9", | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"web3-core-method": "^1.0.0-beta.9", | ||
"web3-core-subscriptions": "^1.0.0-beta.9", | ||
"web3-eth-abi": "^1.0.0-beta.9", | ||
"web3-eth-accounts": "^1.0.0-beta.9", | ||
"web3-eth-contract": "^1.0.0-beta.9", | ||
"web3-eth-iban": "^1.0.0-beta.9", | ||
"web3-eth-personal": "^1.0.0-beta.9", | ||
"web3-net": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-net", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to interact with the Ethereum nodes networking properties.", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-net", | ||
"dependencies": { | ||
"web3-core": "^1.0.0", | ||
"web3-core-method": "^1.0.0", | ||
"web3-utils": "^1.0.0" | ||
"web3-core": "^1.0.0-beta.9", | ||
"web3-core-method": "^1.0.0-beta.9", | ||
"web3-utils": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-providers-http", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Module to handle web3 RPC connections over HTTP.", | ||
@@ -9,5 +9,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-http", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"xhr2": "0.1.4" | ||
} | ||
} |
{ | ||
"name": "web3-providers-ipc", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Module to handle web3 RPC connections over IPC sockets.", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-ipc", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"oboe": "2.1.3", | ||
"underscore": "1.8.3", | ||
"oboe": "2.1.3" | ||
"web3-core-helpers": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-providers-ws", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Module to handle web3 RPC connections over WebSockets.", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-ws", | ||
"dependencies": { | ||
"web3-core-helpers": "^1.0.0", | ||
"underscore": "1.8.3", | ||
"web3-core-helpers": "^1.0.0-beta.9", | ||
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible" | ||
} | ||
} |
{ | ||
"name": "web3-shh", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Web3 module to interact with the Whisper messaging protocol.", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-shh", | ||
"dependencies": { | ||
"web3-core": "^1.0.0", | ||
"web3-core-method": "^1.0.0", | ||
"web3-core-subscriptions": "^1.0.0", | ||
"web3-net": "^1.0.0" | ||
"web3-core": "^1.0.0-beta.9", | ||
"web3-core-method": "^1.0.0-beta.9", | ||
"web3-core-subscriptions": "^1.0.0-beta.9", | ||
"web3-net": "^1.0.0-beta.9" | ||
} | ||
} |
{ | ||
"name": "web3-utils", | ||
"version": "1.0.0", | ||
"version": "1.0.0-beta.9", | ||
"description": "Collection of utility functions used in web3.js.", | ||
@@ -9,10 +9,10 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-utils", | ||
"dependencies": { | ||
"utf8": "2.1.1", | ||
"underscore": "1.8.3", | ||
"randomhex": "0.1.5", | ||
"bn.js": "4.11.6", | ||
"eth-lib": "0.1.23", | ||
"ethjs-unit": "0.1.6", | ||
"number-to-bn": "1.7.0", | ||
"bn.js": "4.11.6", | ||
"eth-lib": "0.1.23" | ||
"randomhex": "0.1.5", | ||
"underscore": "1.8.3", | ||
"utf8": "2.1.1" | ||
} | ||
} |
@@ -37,11 +37,20 @@ **PREVIEW RELEASE** This is a beta preview release with breaking changes! The current stable version is 0.20.0 | ||
Build and include `dist/web3.min.js` in your html file. | ||
Use the prebuild ``dist/web3.min.js``, or | ||
build using the [web3.js][repo] repository: | ||
```bash | ||
npm run-script build | ||
``` | ||
Then include `dist/web3.js` in your html file. | ||
This will expose the `Web3` object on the window object. | ||
## Usage | ||
Use the `Web3` object directly from global namespace: | ||
```js | ||
// in node.js | ||
var Web3 = require('web3'); | ||
var web3 = new Web3('ws://localhost:8546'); | ||
console.log(Web3); | ||
console.log(web3); | ||
> { | ||
@@ -90,2 +99,4 @@ eth: ... , | ||
Build only the web3.js package | ||
```bash | ||
@@ -95,2 +106,8 @@ npm run-script build | ||
Or build all sub packages as well | ||
```bash | ||
npm run-script build-all | ||
``` | ||
This will put all the browser build files into the `dist` folder. | ||
@@ -105,2 +122,3 @@ | ||
[repo]: https://github.com/ethereum/web3.js | ||
[docs]: http://web3js.readthedocs.io/en/1.0/ | ||
@@ -107,0 +125,0 @@ [npm-image]: https://badge.fury.io/js/web3.png |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
2230543
173
6981
134
1