Adjust detectPackage for direct dependencies (#3227)
* Dependency detection * packageInfo imports * Dependency array * Bump common * Remove detectPackage comments (available in util) * Bump
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
"version": "3.10.3-12",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"sideEffects": [
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.mjs"
|
||||
],
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -12,20 +15,20 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@polkadot/types": "3.10.3-12",
|
||||
"@polkadot/util": "^5.8.1",
|
||||
"@polkadot/util-crypto": "^5.8.1",
|
||||
"@polkadot/x-fetch": "^5.8.1",
|
||||
"@polkadot/x-global": "^5.8.1",
|
||||
"@polkadot/x-ws": "^5.8.1",
|
||||
"@polkadot/util": "^5.8.2-5",
|
||||
"@polkadot/util-crypto": "^5.8.2-5",
|
||||
"@polkadot/x-fetch": "^5.8.2-5",
|
||||
"@polkadot/x-global": "^5.8.2-5",
|
||||
"@polkadot/x-ws": "^5.8.2-5",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.8.1",
|
||||
"@polkadot/keyring": "^5.8.2-5",
|
||||
"@polkadot/metadata": "3.10.3-12",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.0.8"
|
||||
"nock": "^13.0.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2017-2021 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import { packageInfo } from './packageInfo';
|
||||
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [typesInfo]);
|
||||
@@ -1,5 +1,8 @@
|
||||
// Copyright 2017-2021 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './detectPackage';
|
||||
|
||||
export { HttpProvider } from './http';
|
||||
export { packageInfo } from './packageInfo';
|
||||
export { WsProvider } from './ws';
|
||||
|
||||
Reference in New Issue
Block a user