mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 13:21:03 +00:00
Update detectPackage with callback
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"name": "@polkadot/ui-keyring",
|
||||
"version": "0.63.2-0",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"sideEffects": false,
|
||||
"repository": "github:polkadot-js/apps",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -10,16 +11,16 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/keyring": "^5.0.2-1",
|
||||
"@polkadot/keyring": "^5.0.2-6",
|
||||
"@polkadot/ledger": "^0.63.2-0",
|
||||
"@polkadot/ui-settings": "0.63.2-0",
|
||||
"@polkadot/util": "^5.0.2-1",
|
||||
"@polkadot/x-rxjs": "^3.0.2-6",
|
||||
"@polkadot/util": "^5.0.2-6",
|
||||
"@polkadot/x-rxjs": "^3.0.2-7",
|
||||
"mkdirp": "^1.0.4",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "^3.0.2-6",
|
||||
"@polkadot/types": "^3.0.2-7",
|
||||
"@types/mkdirp": "^1.0.1",
|
||||
"@types/store": "^2.0.2"
|
||||
},
|
||||
|
||||
@@ -5,6 +5,6 @@ const util = require('@polkadot/util');
|
||||
|
||||
const packageInfo = require('./package-info.json');
|
||||
|
||||
util.detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
|
||||
util.detectPackage(packageInfo, () => __dirname);
|
||||
|
||||
exports.packageInfo = packageInfo;
|
||||
|
||||
@@ -5,6 +5,6 @@ import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import packageInfo from './package-info.json';
|
||||
|
||||
detectPackage(packageInfo, import.meta.url);
|
||||
detectPackage(packageInfo, () => import.meta.url);
|
||||
|
||||
export { packageInfo };
|
||||
|
||||
Reference in New Issue
Block a user