@polkadot/extension-dapp 0.55.1 → 0.56.2

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.
@@ -18,7 +18,7 @@
18
18
  });
19
19
  }
20
20
 
21
- const packageInfo = { name: '@polkadot/extension-dapp', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.55.1' };
21
+ const packageInfo = { name: '@polkadot/extension-dapp', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.56.2' };
22
22
 
23
23
  const unwrapBytes = util.u8aUnwrapBytes;
24
24
  const wrapBytes = util.u8aWrapBytes;
package/cjs/bundle.js CHANGED
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.web3UseRpcProvider = exports.web3ListRpcProviders = exports.web3FromAddress = exports.web3FromSource = exports.web3AccountsSubscribe = exports.web3Accounts = exports.web3Enable = exports.web3EnablePromise = exports.isWeb3Injected = exports.wrapBytes = exports.unwrapBytes = exports.packageInfo = void 0;
3
+ exports.web3EnablePromise = exports.isWeb3Injected = exports.wrapBytes = exports.unwrapBytes = exports.packageInfo = void 0;
4
+ exports.web3Enable = web3Enable;
5
+ exports.web3Accounts = web3Accounts;
6
+ exports.web3AccountsSubscribe = web3AccountsSubscribe;
7
+ exports.web3FromSource = web3FromSource;
8
+ exports.web3FromAddress = web3FromAddress;
9
+ exports.web3ListRpcProviders = web3ListRpcProviders;
10
+ exports.web3UseRpcProvider = web3UseRpcProvider;
4
11
  const util_1 = require("@polkadot/util");
5
12
  const util_crypto_1 = require("@polkadot/util-crypto");
6
13
  const util_js_1 = require("./util.js");
@@ -107,7 +114,6 @@ function web3Enable(originName, compatInits = []) {
107
114
  })));
108
115
  return web3EnablePromise;
109
116
  }
110
- exports.web3Enable = web3Enable;
111
117
  /**
112
118
  * @summary Retrieves all the accounts across all providers
113
119
  * @description
@@ -135,7 +141,6 @@ async function web3Accounts({ accountType, extensions, genesisHash, ss58Format }
135
141
  console.info(`web3Accounts: Found ${accounts.length} address${accounts.length !== 1 ? 'es' : ''}`);
136
142
  return accounts;
137
143
  }
138
- exports.web3Accounts = web3Accounts;
139
144
  /**
140
145
  * @summary Subscribes to all the accounts across all providers
141
146
  * @description
@@ -170,7 +175,6 @@ async function web3AccountsSubscribe(cb, { accountType, extensions, genesisHash,
170
175
  });
171
176
  };
172
177
  }
173
- exports.web3AccountsSubscribe = web3AccountsSubscribe;
174
178
  /**
175
179
  * @summary Finds a specific provider based on the name
176
180
  * @description
@@ -190,7 +194,6 @@ async function web3FromSource(source) {
190
194
  }
191
195
  return found;
192
196
  }
193
- exports.web3FromSource = web3FromSource;
194
197
  /**
195
198
  * @summary Find a specific provider that provides a specific address
196
199
  * @description
@@ -212,7 +215,6 @@ async function web3FromAddress(address) {
212
215
  }
213
216
  return web3FromSource(found.meta.source);
214
217
  }
215
- exports.web3FromAddress = web3FromAddress;
216
218
  /**
217
219
  * @summary List all providers exposed by one source
218
220
  * @description
@@ -227,7 +229,6 @@ async function web3ListRpcProviders(source) {
227
229
  }
228
230
  return provider.listProviders();
229
231
  }
230
- exports.web3ListRpcProviders = web3ListRpcProviders;
231
232
  /**
232
233
  * @summary Start an RPC provider provider by a specific source
233
234
  * @description
@@ -243,4 +244,3 @@ async function web3UseRpcProvider(source, key) {
243
244
  const meta = await provider.startProvider(key);
244
245
  return { meta, provider };
245
246
  }
246
- exports.web3UseRpcProvider = web3UseRpcProvider;
@@ -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-dapp', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.55.1' };
4
+ exports.packageInfo = { name: '@polkadot/extension-dapp', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.56.2' };
package/cjs/util.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.documentReadyPromise = void 0;
3
+ exports.documentReadyPromise = documentReadyPromise;
4
4
  function documentReadyPromise(creator) {
5
5
  return new Promise((resolve) => {
6
6
  if (document.readyState === 'complete') {
@@ -11,4 +11,3 @@ function documentReadyPromise(creator) {
11
11
  }
12
12
  });
13
13
  }
14
- exports.documentReadyPromise = documentReadyPromise;
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "0.55.1",
21
+ "version": "0.56.2",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -129,10 +129,10 @@
129
129
  }
130
130
  },
131
131
  "dependencies": {
132
- "@polkadot/extension-inject": "0.55.1",
133
- "@polkadot/util": "^13.2.1",
134
- "@polkadot/util-crypto": "^13.2.1",
135
- "tslib": "^2.6.2"
132
+ "@polkadot/extension-inject": "0.56.2",
133
+ "@polkadot/util": "^13.2.3",
134
+ "@polkadot/util-crypto": "^13.2.3",
135
+ "tslib": "^2.8.1"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "@polkadot/api": "*",
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/extension-dapp', 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.55.1' };
1
+ export const packageInfo = { name: '@polkadot/extension-dapp', 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.56.2' };