Adjust packages with known dependencies (#4356)

This commit is contained in:
Jaco
2021-12-19 22:09:32 +02:00
committed by GitHub
parent bb75aa8f74
commit e81e24fa5f
25 changed files with 58 additions and 37 deletions
+2
View File
@@ -25,7 +25,9 @@
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/api-base": "6.12.2-21",
"@polkadot/rpc-augment": "6.12.2-21",
"@polkadot/types": "6.12.2-21",
"@polkadot/types-augment": "6.12.2-21",
"@polkadot/types-codec": "6.12.2-21"
}
}
@@ -1,4 +0,0 @@
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '@polkadot/types-augment';
@@ -1,8 +1,10 @@
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
// for the API, we decorate not only the endpoints, but all types
import '@polkadot/rpc-augment';
import '@polkadot/types-augment';
// the augmentated types (on top of @polkadot/api-base)
import './consts';
import './errors';
import './events';
+2 -1
View File
@@ -3,8 +3,9 @@
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo]);
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo, codecInfo]);
+1 -1
View File
@@ -8,8 +8,8 @@
"references": [
{ "path": "../api-base" },
{ "path": "../rpc-augment" },
{ "path": "../rpc-core" },
{ "path": "../types" },
{ "path": "../types-codec" },
{ "path": "../types-augment" }
]
}
+1
View File
@@ -24,6 +24,7 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/rpc-core": "6.12.2-21",
"@polkadot/types": "6.12.2-21",
"@polkadot/util": "^8.2.2",
"rxjs": "^7.4.0"
+2 -1
View File
@@ -1,9 +1,10 @@
// Copyright 2017-2021 @polkadot/api-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [typesInfo]);
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [rpcInfo, typesInfo]);
-2
View File
@@ -15,8 +15,6 @@
],
"references": [
{ "path": "../api" },
{ "path": "../api-augment" },
{ "path": "../rpc-augment" },
{ "path": "../types" }
]
}
+1 -4
View File
@@ -18,10 +18,7 @@
],
"references": [
{ "path": "../api" },
{ "path": "../api-augment" },
{ "path": "../api-contract" },
{ "path": "../rpc-augment" },
{ "path": "../types" },
{ "path": "../types-augment" }
{ "path": "../types" }
]
}
+3 -3
View File
@@ -24,14 +24,14 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/api-augment": "6.12.2-21",
"@polkadot/api-base": "6.12.2-21",
"@polkadot/rpc-augment": "6.12.2-21",
"@polkadot/rpc-core": "6.12.2-21",
"@polkadot/types": "6.12.2-21",
"@polkadot/types-codec": "6.12.2-21"
},
"devDependencies": {
"@polkadot/api": "6.12.2-21"
"@polkadot/api": "6.12.2-21",
"@polkadot/api-augment": "6.12.2-21",
"@polkadot/rpc-augment": "6.12.2-21"
}
}
+3 -1
View File
@@ -24,7 +24,6 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/api-augment": "6.12.2-21",
"@polkadot/api-base": "6.12.2-21",
"@polkadot/api-derive": "6.12.2-21",
"@polkadot/keyring": "^8.2.2",
@@ -38,5 +37,8 @@
"@polkadot/util-crypto": "^8.2.2",
"eventemitter3": "^4.0.7",
"rxjs": "^7.4.0"
},
"devDependencies": {
"@polkadot/api-augment": "6.12.2-21"
}
}
-1
View File
@@ -15,7 +15,6 @@
{ "path": "../rpc-core" },
{ "path": "../rpc-provider" },
{ "path": "../types" },
{ "path": "../types-augment" },
{ "path": "../types-known" }
]
}
-1
View File
@@ -20,7 +20,6 @@
{ "path": "../rpc-core" },
{ "path": "../rpc-provider" },
{ "path": "../types" },
{ "path": "../types-augment" },
{ "path": "../types-known" }
]
}
+2 -2
View File
@@ -24,7 +24,7 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/types": "6.12.2-21",
"rxjs": "^7.4.0"
"@polkadot/rpc-core": "6.12.2-21",
"@polkadot/types": "6.12.2-21"
}
}
+2 -2
View File
@@ -24,13 +24,13 @@
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/rpc-augment": "6.12.2-21",
"@polkadot/rpc-provider": "6.12.2-21",
"@polkadot/types": "6.12.2-21",
"@polkadot/util": "^8.2.2",
"rxjs": "^7.4.0"
},
"devDependencies": {
"@polkadot/keyring": "^8.2.2"
"@polkadot/keyring": "^8.2.2",
"@polkadot/rpc-augment": "6.12.2-21"
}
}
+2 -1
View File
@@ -10,6 +10,7 @@
"**/*.spec.ts"
],
"references": [
{ "path": "../rpc-provider" }
{ "path": "../rpc-provider" },
{ "path": "../types" }
]
}
+2 -1
View File
@@ -14,6 +14,7 @@
"references": [
{ "path": "../rpc-core" },
{ "path": "../rpc-augment" },
{ "path": "../rpc-provider" }
{ "path": "../rpc-provider" },
{ "path": "../types" }
]
}
+1 -2
View File
@@ -10,7 +10,6 @@
"**/*.spec.ts"
],
"references": [
{ "path": "../types" },
{ "path": "../types-augment" }
{ "path": "../types" }
]
}
+1 -2
View File
@@ -13,7 +13,6 @@
],
"references": [
{ "path": "../rpc-provider" },
{ "path": "../types" },
{ "path": "../types-augment" }
{ "path": "../types" }
]
}
+1 -3
View File
@@ -15,8 +15,6 @@
],
"references": [
{ "path": "../types" },
{ "path": "../types-augment" },
{ "path": "../types-codec" },
{ "path": "../types-support" }
{ "path": "../types-augment" }
]
}
+1 -3
View File
@@ -13,8 +13,6 @@
],
"references": [
{ "path": "../types" },
{ "path": "../types-augment" },
{ "path": "../types-codec" },
{ "path": "../types-create" }
{ "path": "../types-codec" }
]
}
+1
View File
@@ -26,6 +26,7 @@
"@babel/runtime": "^7.16.5",
"@polkadot/networks": "^8.2.2",
"@polkadot/types": "6.12.2-21",
"@polkadot/types-create": "6.12.2-21",
"@polkadot/util": "^8.2.2"
}
}
@@ -9,7 +9,8 @@ const upgrades: ChainUpgradesRaw = [
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
[1205128, 18], [1603423, 23], [1733218, 24], [2005673, 25], [2436698, 26],
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122]
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
[8115869, 9140]
];
export default upgrades;