Bump common, detectPackage with callback
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"version": "3.0.2-6",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"sideEffects": false,
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
@@ -14,13 +15,13 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/metadata": "3.0.2-6",
|
||||
"@polkadot/util": "^5.0.1",
|
||||
"@polkadot/util-crypto": "^5.0.1",
|
||||
"@polkadot/util": "^5.0.2-5",
|
||||
"@polkadot/util-crypto": "^5.0.2-5",
|
||||
"@polkadot/x-rxjs": "3.0.2-6",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.0.1"
|
||||
"@polkadot/keyring": "^5.0.2-5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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