mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-09 20:11:04 +00:00
Bump deps (#316)
* Bump deps * Remove unused deps * Bump berry * Bump berry
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
.eslintrc.js
|
||||
**/build/*
|
||||
**/coverage/*
|
||||
**/node_modules/*
|
||||
|
||||
Vendored
+14
-8
File diff suppressed because one or more lines are too long
+4
-4
@@ -30,10 +30,10 @@
|
||||
"test:one": "polkadot-dev-run-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@polkadot/dev": "^0.52.15",
|
||||
"@polkadot/ts": "^0.3.19",
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@polkadot/dev": "^0.52.17",
|
||||
"@polkadot/ts": "^0.3.20",
|
||||
"@types/jest": "^25.2.1",
|
||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||
"empty": "^0.10.1",
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2"
|
||||
"@babel/runtime": "^7.9.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2"
|
||||
"@babel/runtime": "^7.9.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"@polkadot/reactnative-identicon": "0.53.0-beta.2",
|
||||
"@polkadot/ui-keyring": "0.53.0-beta.2",
|
||||
"@polkadot/ui-settings": "0.53.0-beta.2",
|
||||
"@react-native-community/async-storage": "^1.9.0",
|
||||
"@react-native-community/async-storage": "^1.10.0",
|
||||
"fast-text-encoding": "^1.0.2",
|
||||
"get-yarn-workspaces": "^1.0.2",
|
||||
"os-browserify": "^0.3.0",
|
||||
@@ -35,17 +35,17 @@
|
||||
"react-native": "^0.62.2",
|
||||
"react-native-crypto": "^2.2.0",
|
||||
"react-native-randombytes": "^3.5.3",
|
||||
"stream-http": "^3.1.0"
|
||||
"stream-http": "^3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@polkadot/keyring": "^2.9.1",
|
||||
"@polkadot/util": "^2.9.1",
|
||||
"@polkadot/util-crypto": "^2.9.1",
|
||||
"@react-native-community/cli-platform-ios": "^4.7.0",
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@polkadot/keyring": "^2.10.0-beta.3",
|
||||
"@polkadot/util": "^2.10.0-beta.3",
|
||||
"@polkadot/util-crypto": "^2.10.0-beta.3",
|
||||
"@react-native-community/cli-platform-ios": "^4.8.0",
|
||||
"@types/react-test-renderer": "16.9.2",
|
||||
"babel-jest": "^25.4.0",
|
||||
"babel-jest": "^26.0.1",
|
||||
"metro-react-native-babel-preset": "^0.59.0",
|
||||
"react-test-renderer": "16.13.1"
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@polkadot/ui-settings": "0.53.0-beta.2",
|
||||
"@polkadot/ui-shared": "0.53.0-beta.2",
|
||||
"color": "^3.1.2",
|
||||
@@ -26,11 +26,11 @@
|
||||
"react-is": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.9.1",
|
||||
"@polkadot/util": "^2.9.1",
|
||||
"@polkadot/util-crypto": "^2.9.1",
|
||||
"@polkadot/keyring": "^2.10.0-beta.3",
|
||||
"@polkadot/util": "^2.10.0-beta.3",
|
||||
"@polkadot/util-crypto": "^2.10.0-beta.3",
|
||||
"@types/react-copy-to-clipboard": "^4.3.0",
|
||||
"@types/react-dom": "^16.9.6",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"@types/styled-components": "^5.1.0",
|
||||
"xmlserializer": "^0.6.1"
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"qrcode-generator": "^1.4.4",
|
||||
"react-qr-reader": "^2.2.1"
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@polkadot/ui-shared": "0.53.0-beta.2",
|
||||
"react-native-svg": "^12.1.0"
|
||||
},
|
||||
@@ -19,7 +19,7 @@
|
||||
"react-native": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util-crypto": "^2.9.1",
|
||||
"@types/react-native": "^0.62.4"
|
||||
"@polkadot/util-crypto": "^2.10.0-beta.3",
|
||||
"@types/react-native": "^0.62.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2"
|
||||
"@babel/runtime": "^7.9.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,25 +17,23 @@
|
||||
"./ledger/transportsWeb": "./ledger/transportsEmpty"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@ledgerhq/hw-transport-u2f": "^5.13.1",
|
||||
"@ledgerhq/hw-transport-webusb": "^5.13.1",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@ledgerhq/hw-transport-webusb": "^5.15.0",
|
||||
"ledger-polkadot": "^0.7.0",
|
||||
"mkdirp": "^1.0.4",
|
||||
"rxjs": "^6.5.5",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.9.1",
|
||||
"@polkadot/types": "^1.13.0-beta.15",
|
||||
"@polkadot/util": "^2.9.1",
|
||||
"@polkadot/keyring": "^2.10.0-beta.3",
|
||||
"@polkadot/types": "^1.14.0-beta.5",
|
||||
"@polkadot/util": "^2.10.0-beta.3",
|
||||
"@types/ledgerhq__hw-transport-node-hid": "^4.22.1",
|
||||
"@types/ledgerhq__hw-transport-u2f": "^4.21.1",
|
||||
"@types/mkdirp": "^1.0.0",
|
||||
"@types/store": "^2.0.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@ledgerhq/hw-transport-node-hid": "^5.13.1"
|
||||
"@ledgerhq/hw-transport-node-hid": "^5.15.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/keyring": "*",
|
||||
|
||||
@@ -29,7 +29,8 @@ export default class Ledger {
|
||||
#type: LedgerTypes;
|
||||
|
||||
constructor (type: LedgerTypes) {
|
||||
assert(['hid', 'u2f', 'webusb'].includes(type), `Unsupported transport ${type}`);
|
||||
// u2f is deprecated
|
||||
assert(['hid', 'webusb'].includes(type), `Unsupported transport ${type}`);
|
||||
|
||||
this.#type = type;
|
||||
}
|
||||
|
||||
@@ -5,15 +5,16 @@
|
||||
import { TransportDef } from './types';
|
||||
|
||||
import Transport from '@ledgerhq/hw-transport';
|
||||
import LedgerU2F from '@ledgerhq/hw-transport-u2f';
|
||||
import LedgerWebUSB from '@ledgerhq/hw-transport-webusb';
|
||||
|
||||
const transports: TransportDef[] = [
|
||||
{
|
||||
create: (): Promise<Transport> =>
|
||||
LedgerU2F.create(),
|
||||
type: 'u2f'
|
||||
},
|
||||
// deprecated
|
||||
// import LedgerU2F from '@ledgerhq/hw-transport-u2f';
|
||||
// {
|
||||
// create: (): Promise<Transport> =>
|
||||
// LedgerU2F.create(),
|
||||
// type: 'u2f'
|
||||
// },
|
||||
{
|
||||
create: (): Promise<Transport> =>
|
||||
LedgerWebUSB.create(),
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"eventemitter3": "^4.0.1",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "^2.9.1",
|
||||
"@polkadot/util": "^2.10.0-beta.3",
|
||||
"@types/store": "^2.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -12,6 +12,14 @@ import { Option, SettingsStruct } from './types';
|
||||
type ChangeCallback = (settings: SettingsStruct) => void;
|
||||
type OnTypes = 'change';
|
||||
|
||||
function withDefault (options: Option[], option: string | undefined, fallback: string): string {
|
||||
const _option = option || fallback;
|
||||
|
||||
return options.some(({ value }) => value === _option)
|
||||
? _option
|
||||
: fallback;
|
||||
}
|
||||
|
||||
export class Settings implements SettingsStruct {
|
||||
readonly #emitter: EventEmitter;
|
||||
|
||||
@@ -39,8 +47,8 @@ export class Settings implements SettingsStruct {
|
||||
this.#emitter = new EventEmitter();
|
||||
|
||||
this.#apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || process.env.WS_URL || ENDPOINT_DEFAULT;
|
||||
this.#camera = settings.camera || CAMERA_DEFAULT;
|
||||
this.#ledgerConn = settings.ledgerConn || LEDGER_CONN_DEFAULT;
|
||||
this.#camera = withDefault(CAMERA, settings.camera, CAMERA_DEFAULT);
|
||||
this.#ledgerConn = withDefault(LEDGER_CONN, settings.ledgerConn, LEDGER_CONN_DEFAULT);
|
||||
this.#i18nLang = settings.i18nLang || LANGUAGE_DEFAULT;
|
||||
this.#icon = settings.icon || ICON_DEFAULT;
|
||||
this.#locking = settings.locking || LOCKING_DEFAULT;
|
||||
|
||||
@@ -12,11 +12,12 @@ export const LEDGER_CONN: Option[] = [
|
||||
text: 'Do not attach Ledger devices',
|
||||
value: 'none'
|
||||
},
|
||||
{
|
||||
info: 'u2f',
|
||||
text: 'Attach Ledger via U2F',
|
||||
value: 'u2f'
|
||||
},
|
||||
// Deprecated
|
||||
// {
|
||||
// info: 'u2f',
|
||||
// text: 'Attach Ledger via U2F',
|
||||
// value: 'u2f'
|
||||
// },
|
||||
{
|
||||
info: 'webusb',
|
||||
text: 'Attach Ledger via WebUSB',
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"color": "^3.1.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -17,8 +17,8 @@
|
||||
"@polkadot/util-crypto": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "^2.9.1",
|
||||
"@polkadot/util-crypto": "^2.9.1",
|
||||
"@polkadot/util": "^2.10.0-beta.3",
|
||||
"@polkadot/util-crypto": "^2.10.0-beta.3",
|
||||
"@types/color": "^3.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"main": "index.js",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@babel/runtime": "^7.9.6",
|
||||
"@polkadot/ui-shared": "0.53.0-beta.2",
|
||||
"jdenticon": "2.2.0"
|
||||
},
|
||||
@@ -18,7 +18,7 @@
|
||||
"vue": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util-crypto": "^2.9.1",
|
||||
"@polkadot/util-crypto": "^2.10.0-beta.3",
|
||||
"vue": "^2.6.11"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user