mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-14 04:31:01 +00:00
Update detectPackage with callback
This commit is contained in:
@@ -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