From 80942fdb15d679d987808645d9387fe059f45947 Mon Sep 17 00:00:00 2001 From: S2kael Date: Tue, 10 Oct 2023 14:36:40 +0700 Subject: [PATCH] [Issue-133] Patch package --- patches/@polkadot+util+12.5.1.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 patches/@polkadot+util+12.5.1.patch diff --git a/patches/@polkadot+util+12.5.1.patch b/patches/@polkadot+util+12.5.1.patch new file mode 100644 index 00000000..9a7fc6e2 --- /dev/null +++ b/patches/@polkadot+util+12.5.1.patch @@ -0,0 +1,26 @@ +diff --git a/node_modules/@polkadot/util/cjs/versionDetect.js b/node_modules/@polkadot/util/cjs/versionDetect.js +index 501f104..9173933 100644 +--- a/node_modules/@polkadot/util/cjs/versionDetect.js ++++ b/node_modules/@polkadot/util/cjs/versionDetect.js +@@ -74,7 +74,7 @@ function warn(pre, all, fmt) { + * @description A `@polkadot/*` version detection utility, checking for one occurence of a package in addition to checking for ddependency versions. + */ + function detectPackage({ name, path, type, version }, pathOrFn, deps = []) { +- if (!name.startsWith('@polkadot')) { ++ if (!name.startsWith('@polkadot') && !name.startsWith('@subwallet')) { + throw new Error(`Invalid package descriptor ${name}`); + } + const entry = getEntry(name); +diff --git a/node_modules/@polkadot/util/versionDetect.js b/node_modules/@polkadot/util/versionDetect.js +index b76c020..a6d1bed 100644 +--- a/node_modules/@polkadot/util/versionDetect.js ++++ b/node_modules/@polkadot/util/versionDetect.js +@@ -71,7 +71,7 @@ function warn(pre, all, fmt) { + * @description A `@polkadot/*` version detection utility, checking for one occurence of a package in addition to checking for ddependency versions. + */ + export function detectPackage({ name, path, type, version }, pathOrFn, deps = []) { +- if (!name.startsWith('@polkadot')) { ++ if (!name.startsWith('@polkadot') && !name.startsWith('@subwallet')) { + throw new Error(`Invalid package descriptor ${name}`); + } + const entry = getEntry(name);