Skip to content

Commit

Permalink
[Issue-133] Patch package
Browse files Browse the repository at this point in the history
  • Loading branch information
S2kael committed Oct 10, 2023
1 parent 64c5b94 commit 80942fd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions patches/@polkadot+util+12.5.1.patch
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 80942fd

Please sign in to comment.