@polkadot/extension-base 0.46.3 → 0.46.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,16 +31,6 @@ export interface AuthUrlInfo {
31
31
  export type SeedLengths = 12 | 24;
32
32
  export interface AccountJson extends KeyringPair$Meta {
33
33
  address: string;
34
- genesisHash?: string | null;
35
- isExternal?: boolean;
36
- isHardware?: boolean;
37
- isHidden?: boolean;
38
- isDefaultAuthSelected?: boolean;
39
- name?: string;
40
- parentAddress?: string;
41
- suri?: string;
42
- type?: KeypairType;
43
- whenCreated?: number;
44
34
  }
45
35
  export type AccountWithChildren = AccountJson & {
46
36
  children?: AccountWithChildren[];
@@ -160,12 +150,12 @@ export interface RequestMetadataReject {
160
150
  export type RequestMetadataSubscribe = null;
161
151
  export interface RequestAccountCreateExternal {
162
152
  address: string;
163
- genesisHash?: string | null;
153
+ genesisHash?: HexString | null;
164
154
  name: string;
165
155
  }
166
156
  export interface RequestAccountCreateSuri {
167
157
  name: string;
168
- genesisHash?: string | null;
158
+ genesisHash?: HexString | null;
169
159
  password: string;
170
160
  suri: string;
171
161
  type?: KeypairType;
@@ -174,7 +164,7 @@ export interface RequestAccountCreateHardware {
174
164
  accountIndex: number;
175
165
  address: string;
176
166
  addressOffset: number;
177
- genesisHash: string;
167
+ genesisHash: HexString;
178
168
  hardwareType: string;
179
169
  name: string;
180
170
  }
@@ -185,7 +175,7 @@ export interface RequestAccountChangePassword {
185
175
  }
186
176
  export interface RequestAccountEdit {
187
177
  address: string;
188
- genesisHash?: string | null;
178
+ genesisHash?: HexString | null;
189
179
  name: string;
190
180
  }
191
181
  export interface RequestAccountForget {
@@ -197,7 +187,7 @@ export interface RequestAccountShow {
197
187
  }
198
188
  export interface RequestAccountTie {
199
189
  address: string;
200
- genesisHash: string | null;
190
+ genesisHash: HexString | null;
201
191
  }
202
192
  export interface RequestAccountValidate {
203
193
  address: string;
@@ -205,7 +195,7 @@ export interface RequestAccountValidate {
205
195
  }
206
196
  export interface RequestDeriveCreate {
207
197
  name: string;
208
- genesisHash?: string | null;
198
+ genesisHash?: HexString | null;
209
199
  suri: string;
210
200
  parentAddress: string;
211
201
  parentPassword: string;
@@ -340,7 +330,7 @@ export type AllowedPath = typeof ALLOWED_PATH[number];
340
330
  export interface ResponseJsonGetAccountInfo {
341
331
  address: string;
342
332
  name: string;
343
- genesisHash: string;
333
+ genesisHash: HexString;
344
334
  type: KeypairType;
345
335
  }
346
336
  export interface ResponseAuthorizeList {
package/cjs/defaults.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PHISHING_PAGE_REDIRECT = exports.PASSWORD_EXPIRY_MS = exports.PASSWORD_EXPIRY_MIN = exports.ALLOWED_PATH = exports.MESSAGE_ORIGIN_CONTENT = exports.MESSAGE_ORIGIN_PAGE = exports.PORT_EXTENSION = exports.PORT_CONTENT = exports.EXTENSION_PREFIX = void 0;
4
- exports.EXTENSION_PREFIX = process.env.EXTENSION_PREFIX || '';
5
- if (!exports.EXTENSION_PREFIX && !process.env.PORT_PREFIX) {
4
+ exports.EXTENSION_PREFIX = process.env['EXTENSION_PREFIX'] || '';
5
+ if (!exports.EXTENSION_PREFIX && !process.env['PORT_PREFIX']) {
6
6
  throw new Error('CRITICAL: The extension does not define an own EXTENSION_PREFIX environment variable as part of the build, this is required to ensure that messages are not shared between extensions. Failure to do so will yield messages sent to multiple extensions.');
7
7
  }
8
- const PORT_PREFIX = `${exports.EXTENSION_PREFIX || 'unknown'}-${process.env.PORT_PREFIX || 'unknown'}`;
8
+ const PORT_PREFIX = `${exports.EXTENSION_PREFIX || 'unknown'}-${process.env['PORT_PREFIX'] || 'unknown'}`;
9
9
  exports.PORT_CONTENT = `${PORT_PREFIX}-content`;
10
10
  exports.PORT_EXTENSION = `${PORT_PREFIX}-extension`;
11
11
  exports.MESSAGE_ORIGIN_PAGE = `${PORT_PREFIX}-page`;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/extension-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.3' };
4
+ exports.packageInfo = { name: '@polkadot/extension-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.5' };
package/defaults.js CHANGED
@@ -1,8 +1,8 @@
1
- export const EXTENSION_PREFIX = process.env.EXTENSION_PREFIX || '';
2
- if (!EXTENSION_PREFIX && !process.env.PORT_PREFIX) {
1
+ export const EXTENSION_PREFIX = process.env['EXTENSION_PREFIX'] || '';
2
+ if (!EXTENSION_PREFIX && !process.env['PORT_PREFIX']) {
3
3
  throw new Error('CRITICAL: The extension does not define an own EXTENSION_PREFIX environment variable as part of the build, this is required to ensure that messages are not shared between extensions. Failure to do so will yield messages sent to multiple extensions.');
4
4
  }
5
- const PORT_PREFIX = `${EXTENSION_PREFIX || 'unknown'}-${process.env.PORT_PREFIX || 'unknown'}`;
5
+ const PORT_PREFIX = `${EXTENSION_PREFIX || 'unknown'}-${process.env['PORT_PREFIX'] || 'unknown'}`;
6
6
  export const PORT_CONTENT = `${PORT_PREFIX}-content`;
7
7
  export const PORT_EXTENSION = `${PORT_PREFIX}-extension`;
8
8
  export const MESSAGE_ORIGIN_PAGE = `${PORT_PREFIX}-page`;
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "0.46.3",
21
+ "version": "0.46.5",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -223,21 +223,21 @@
223
223
  }
224
224
  },
225
225
  "dependencies": {
226
- "@polkadot/api": "^10.7.1",
227
- "@polkadot/extension-chains": "0.46.3",
228
- "@polkadot/extension-dapp": "0.46.3",
229
- "@polkadot/extension-inject": "0.46.3",
230
- "@polkadot/keyring": "^12.2.1",
231
- "@polkadot/networks": "^12.2.1",
232
- "@polkadot/phishing": "^0.21.3",
233
- "@polkadot/rpc-provider": "^10.7.1",
234
- "@polkadot/types": "^10.7.1",
235
- "@polkadot/ui-keyring": "^3.4.1",
236
- "@polkadot/ui-settings": "^3.4.1",
237
- "@polkadot/util": "^12.2.1",
238
- "@polkadot/util-crypto": "^12.2.1",
226
+ "@polkadot/api": "^10.9.1",
227
+ "@polkadot/extension-chains": "0.46.5",
228
+ "@polkadot/extension-dapp": "0.46.5",
229
+ "@polkadot/extension-inject": "0.46.5",
230
+ "@polkadot/keyring": "^12.3.2",
231
+ "@polkadot/networks": "^12.3.2",
232
+ "@polkadot/phishing": "^0.21.5",
233
+ "@polkadot/rpc-provider": "^10.9.1",
234
+ "@polkadot/types": "^10.9.1",
235
+ "@polkadot/ui-keyring": "^3.5.1",
236
+ "@polkadot/ui-settings": "^3.5.1",
237
+ "@polkadot/util": "^12.3.2",
238
+ "@polkadot/util-crypto": "^12.3.2",
239
239
  "eventemitter3": "^5.0.1",
240
240
  "rxjs": "^7.8.1",
241
- "tslib": "^2.5.0"
241
+ "tslib": "^2.5.3"
242
242
  }
243
243
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/extension-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.46.3' };
1
+ export const packageInfo = { name: '@polkadot/extension-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.46.5' };