mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-20 01:11:10 +00:00
Mock __dirname via cjs import (#577)
* Mock __dirname via cjs import * CHANGELOG
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
- Allow for loading of accounts on additional specified hashes
|
- Allow for loading of accounts on additional genesisHashes
|
||||||
|
- Ensure package path is availble under ESM & CJS
|
||||||
|
|
||||||
|
|
||||||
## 0.87.7 Dec 27, 2021
|
## 0.87.7 Dec 27, 2021
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@ import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
|||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo, sharedInfo]);
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo, sharedInfo]);
|
||||||
|
|||||||
@@ -12,7 +12,10 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": [
|
||||||
|
"./detectPackage.js",
|
||||||
|
"./detectPackage.cjs"
|
||||||
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.8-3",
|
"version": "0.87.8-3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, []);
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
|
||||||
|
|||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo]);
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo]);
|
||||||
|
|||||||
@@ -12,7 +12,10 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": [
|
||||||
|
"./detectPackage.js",
|
||||||
|
"./detectPackage.cjs"
|
||||||
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.8-3",
|
"version": "0.87.8-3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, []);
|
||||||
@@ -12,7 +12,10 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": [
|
||||||
|
"./detectPackage.js",
|
||||||
|
"./detectPackage.cjs"
|
||||||
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.8-3",
|
"version": "0.87.8-3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, []);
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import __dirname from './cjs/dirname';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
|
||||||
|
|||||||
Reference in New Issue
Block a user