Detection for mismatched monorepo deps (#444)

* Detection for mismatched monorepo deps

* Bump common
This commit is contained in:
Jaco Greeff
2021-02-28 11:23:11 +01:00
committed by GitHub
parent aa3d6803f7
commit 15c03c0aff
21 changed files with 184 additions and 149 deletions
+3 -3
View File
@@ -12,12 +12,12 @@
"test": "jest"
},
"dependencies": {
"@polkadot/keyring": "^5.8.1",
"@polkadot/keyring": "^5.9.2",
"@polkadot/reactnative-identicon": "0.69.2-2",
"@polkadot/ui-keyring": "0.69.2-2",
"@polkadot/ui-settings": "0.69.2-2",
"@polkadot/util": "^5.8.1",
"@polkadot/util-crypto": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/util-crypto": "^5.9.2",
"@react-native-community/async-storage": "^1.12.1",
"fast-text-encoding": "^1.0.3",
"get-yarn-workspaces": "^1.0.2",
+7 -4
View File
@@ -3,17 +3,20 @@
"version": "0.69.2-2",
"description": "Renders an SVG picture representing an address",
"main": "index.js",
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.7",
"@polkadot/keyring": "^5.8.1",
"@polkadot/keyring": "^5.9.2",
"@polkadot/ui-settings": "0.69.2-2",
"@polkadot/ui-shared": "0.69.2-2",
"@polkadot/util": "^5.8.1",
"@polkadot/util-crypto": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/util-crypto": "^5.9.2",
"color": "^3.1.3",
"ethereum-blockies-base64": "^1.0.2",
"jdenticon": "3.1.0",
@@ -0,0 +1,10 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo, sharedInfo]);
+3
View File
@@ -1,9 +1,12 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import { Identicon } from './Identicon';
export * from './icons';
export { packageInfo } from './packageInfo';
export { Identicon };
+2 -2
View File
@@ -9,8 +9,8 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.7",
"@polkadot/util": "^5.8.1",
"@polkadot/util-crypto": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/util-crypto": "^5.9.2",
"qrcode-generator": "^1.4.4",
"react-qr-reader": "^2.2.1",
"styled-components": "^5.2.1"
+1
View File
@@ -6,3 +6,4 @@ export { QrDisplayPayload } from './DisplayPayload';
export { QrScanAddress } from './ScanAddress';
export { QrScanSignature } from './ScanSignature';
export { QrNetworkSpecs } from './NetworkSpecs';
export { packageInfo } from './packageInfo';
+6 -3
View File
@@ -3,15 +3,18 @@
"version": "0.69.2-2",
"description": "Renders an SVG picture representing an address",
"main": "index.js",
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.7",
"@polkadot/ui-shared": "0.69.2-2",
"@polkadot/util": "^5.8.1",
"@polkadot/util-crypto": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/util-crypto": "^5.9.2",
"react-native-svg": "^12.1.0"
},
"peerDependencies": {
@@ -0,0 +1,9 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
@@ -1,8 +1,11 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import Identicon from './Identicon';
export * from './icons';
export { packageInfo } from './packageInfo';
export default Identicon;
+4 -4
View File
@@ -13,11 +13,11 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.7",
"@polkadot/hw-ledger": "^5.8.1",
"@polkadot/keyring": "^5.8.1",
"@polkadot/hw-ledger": "^5.9.2",
"@polkadot/keyring": "^5.9.2",
"@polkadot/ui-settings": "0.69.2-2",
"@polkadot/util": "^5.8.1",
"@polkadot/x-rxjs": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/x-rxjs": "^5.9.2",
"mkdirp": "^1.0.4",
"store": "^2.0.12"
},
+2 -18
View File
@@ -1,25 +1,9 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use
//
// new URL(import.meta.url).pathname)
//
// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have
// nice things... In this case it is even worse since import.meta.url won't even make it compile, so
// there is a complete dead end with usage thereof
//
// When that is fixed, a solution is to have both .js & .mjs files, with the following content -
//
// cjs: util.detectPackage(packageInfo, () => __dirname);
// esm: detectPackage(packageInfo, () => import.meta.url);
//
// With the above we additionally need a .d.ts to just export the packageInfo
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
export { packageInfo };
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo]);
+1
View File
@@ -6,6 +6,7 @@ import './detectPackage';
import { Keyring } from './Keyring';
export { Ledger } from '@polkadot/hw-ledger';
export { packageInfo } from './packageInfo';
const keyring = new Keyring();
+2 -2
View File
@@ -9,8 +9,8 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.7",
"@polkadot/networks": "^5.8.1",
"@polkadot/util": "^5.8.1",
"@polkadot/networks": "^5.9.2",
"@polkadot/util": "^5.9.2",
"eventemitter3": "^4.0.7",
"store": "^2.0.12"
},
+1
View File
@@ -4,6 +4,7 @@
import { Settings, settings } from './Settings';
export { ENDPOINT_DEFAULT, ICON_DEFAULT, ICON_DEFAULT_HOST, LANGUAGE_DEFAULT, LOCKING_DEFAULT, PREFIX_DEFAULT, UIMODE_DEFAULT, UITHEME_DEFAULT } from './defaults';
export { packageInfo } from './packageInfo';
export { settings, Settings };
+2 -2
View File
@@ -16,8 +16,8 @@
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util": "^5.8.1",
"@polkadot/util-crypto": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/util-crypto": "^5.9.2",
"@types/color": "^3.0.1",
"@types/xmlserializer": "^0.6.2"
}
+1
View File
@@ -2,3 +2,4 @@
// SPDX-License-Identifier: Apache-2.0
export * from './icons';
export { packageInfo } from './packageInfo';
+6 -3
View File
@@ -5,13 +5,16 @@
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"main": "index.js",
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.7",
"@polkadot/ui-shared": "0.69.2-2",
"@polkadot/util": "^5.8.1",
"@polkadot/util-crypto": "^5.8.1",
"@polkadot/util": "^5.9.2",
"@polkadot/util-crypto": "^5.9.2",
"jdenticon": "3.1.0"
},
"peerDependencies": {
@@ -0,0 +1,9 @@
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
+4
View File
@@ -1,6 +1,10 @@
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import { Identicon } from './Identicon';
export { packageInfo } from './packageInfo';
export default Identicon;