mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-11-12 10:07:05 +00:00
Rebrand: polkadot → pezkuwi internal references fixed
- Fixed internal @polkadot references to @pezkuwi - Updated hw-ledger and hw-ledger-transports packages - Updated keyring and networks packages - Version 14.0.7
This commit is contained in:
1 parent
782581ecf6
commit
a5542fdd87
619 files changed
+1200
-1082
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/util authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { xglobal } from '@pezkuwi/x-global';
|
||||
@@ -107,10 +107,10 @@ function warn <T extends { version: string }> (pre: string, all: T[], fmt: (vers
|
||||
/**
|
||||
* @name detectPackage
|
||||
* @summary Checks that a specific package is only imported once
|
||||
* @description A `@polkadot/*` version detection utility, checking for one occurrence of a package in addition to checking for dependency versions.
|
||||
* @description A `@pezkuwi/*` version detection utility, checking for one occurrence of a package in addition to checking for dependency versions.
|
||||
*/
|
||||
export function detectPackage ({ name, path, type, version }: PackageInfo, pathOrFn?: FnString | string | false | null, deps: PackageInfo[] = []): void {
|
||||
if (!name.startsWith('@polkadot')) {
|
||||
if (!name.startsWith('@pezkuwi')) {
|
||||
throw new Error(`Invalid package descriptor ${name}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user