web3-core
Advanced tools
Comparing version 1.2.6 to 1.2.7-rc.0
{ | ||
"name": "web3-core", | ||
"version": "1.2.6", | ||
"version": "1.2.7-rc.0", | ||
"description": "Web3 core tools for sub packages. This is an internal package.", | ||
@@ -12,3 +12,3 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core", | ||
"scripts": { | ||
"dtslint": "dtslint types --onlyTestTsNext" | ||
"dtslint": "dtslint types" | ||
}, | ||
@@ -19,12 +19,13 @@ "main": "src/index.js", | ||
"@types/node": "^12.6.1", | ||
"web3-core-helpers": "1.2.6", | ||
"web3-core-method": "1.2.6", | ||
"web3-core-requestmanager": "1.2.6", | ||
"web3-utils": "1.2.6" | ||
"bignumber.js": "^9.0.0", | ||
"web3-core-helpers": "1.2.7-rc.0", | ||
"web3-core-method": "1.2.7-rc.0", | ||
"web3-core-requestmanager": "1.2.7-rc.0", | ||
"web3-utils": "1.2.7-rc.0" | ||
}, | ||
"devDependencies": { | ||
"definitelytyped-header-parser": "^1.0.1", | ||
"dtslint": "0.4.2" | ||
"definitelytyped-header-parser": "^3.9.0", | ||
"dtslint": "^3.4.1" | ||
}, | ||
"gitHead": "c20bcf09b04f773406ce3532e88fd105bb04e244" | ||
"gitHead": "598e53163890660670c46d84bb6a6cbee4693e41" | ||
} |
# web3-core | ||
This is a sub package of [web3.js][repo] | ||
[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url] | ||
This is a sub-package of [web3.js][repo]. | ||
The core package contains core functions for [web3.js][repo] packages. | ||
Please read the [documentation][docs] for more. | ||
@@ -38,10 +41,13 @@ | ||
[docs]: http://web3js.readthedocs.io/en/1.0/ | ||
[repo]: https://github.com/ethereum/web3.js | ||
## Types | ||
All the typescript typings are placed in the types folder. | ||
All the TypeScript typings are placed in the `types` folder. | ||
[docs]: http://web3js.readthedocs.io/en/1.0/ | ||
[repo]: https://github.com/ethereum/web3.js | ||
[npm-image]: https://img.shields.io/npm/v/web3-core.svg | ||
[npm-url]: https://npmjs.org/package/web3-core | ||
[deps-image]: https://david-dm.org/ethereum/web3.js/1.x/status.svg?path=packages/web3-core | ||
[deps-url]: https://david-dm.org/ethereum/web3.js/1.x?path=packages/web3-core | ||
[deps-dev-image]: https://david-dm.org/ethereum/web3.js/1.x/dev-status.svg?path=packages/web3-core | ||
[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-core |
@@ -37,3 +37,2 @@ /* | ||
// make property of pkg._provider, which can properly set providers | ||
@@ -51,10 +50,7 @@ Object.defineProperty(pkg, 'currentProvider', { | ||
// inherit from web3 umbrella package | ||
// inherit from parent package or create a new RequestManager | ||
if (args[0] && args[0]._requestManager) { | ||
pkg._requestManager = new requestManager.Manager(args[0].currentProvider); | ||
// set requestmanager on package | ||
pkg._requestManager = args[0]._requestManager; | ||
} else { | ||
pkg._requestManager = new requestManager.Manager(); | ||
pkg._requestManager.setProvider(args[0], args[1]); | ||
pkg._requestManager = new requestManager.Manager(args[0], args[1]); | ||
} | ||
@@ -66,3 +62,3 @@ | ||
pkg._provider = pkg._requestManager.provider; | ||
pkg._provider = pkg._requestManager.provider; | ||
@@ -78,2 +74,7 @@ // add SETPROVIDER function (don't overwrite if already existing) | ||
pkg.setRequestManager = function(manager) { | ||
pkg._requestManager = manager; | ||
pkg._provider = manager.provider; | ||
}; | ||
// attach batch request creation | ||
@@ -90,2 +91,1 @@ pkg.BatchRequest = requestManager.BatchManager.bind(null, pkg._requestManager); | ||
}; | ||
@@ -21,2 +21,4 @@ /* | ||
// Minimum TypeScript Version: 3.0 | ||
import * as net from 'net'; | ||
@@ -267,3 +269,3 @@ import { | ||
privateKeyToAccount(privateKey: string): Account; | ||
privateKeyToAccount(privateKey: string, ignoreLength?: boolean): Account; | ||
@@ -399,4 +401,2 @@ signTransaction( | ||
constructor(host: string, options?: WebsocketProviderOptions); | ||
isConnecting(): boolean; | ||
} | ||
@@ -403,0 +403,0 @@ |
@@ -9,4 +9,5 @@ { | ||
"no-unnecessary-class": false, | ||
"unified-signatures": false | ||
"unified-signatures": false, | ||
"no-redundant-jsdoc": false | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
18500
492
53
7
2
1
+ Addedbignumber.js@^9.0.0
+ Addedbignumber.js@9.1.2(transitive)
+ Addedeventemitter3@4.0.7(transitive)
+ Addedweb3-core-helpers@1.2.7-rc.0(transitive)
+ Addedweb3-core-method@1.2.7-rc.0(transitive)
+ Addedweb3-core-promievent@1.2.7-rc.0(transitive)
+ Addedweb3-core-requestmanager@1.2.7-rc.0(transitive)
+ Addedweb3-core-subscriptions@1.2.7-rc.0(transitive)
+ Addedweb3-eth-iban@1.2.7-rc.0(transitive)
+ Addedweb3-providers-http@1.2.7-rc.0(transitive)
+ Addedweb3-providers-ipc@1.2.7-rc.0(transitive)
+ Addedweb3-providers-ws@1.2.7-rc.0(transitive)
+ Addedweb3-utils@1.2.7-rc.0(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedweb3-core-helpers@1.2.6(transitive)
- Removedweb3-core-method@1.2.6(transitive)
- Removedweb3-core-promievent@1.2.6(transitive)
- Removedweb3-core-requestmanager@1.2.6(transitive)
- Removedweb3-core-subscriptions@1.2.6(transitive)
- Removedweb3-eth-iban@1.2.6(transitive)
- Removedweb3-providers-http@1.2.6(transitive)
- Removedweb3-providers-ipc@1.2.6(transitive)
- Removedweb3-providers-ws@1.2.6(transitive)
- Removedweb3-utils@1.2.6(transitive)
Updatedweb3-core-helpers@1.2.7-rc.0
Updatedweb3-core-method@1.2.7-rc.0
Updatedweb3-utils@1.2.7-rc.0