From 30b52d06ea0ea1837f71bb16aea40ac2a5d6a87c Mon Sep 17 00:00:00 2001 From: Naveed Elahi Date: Thu, 25 Jan 2024 14:41:54 +0800 Subject: [PATCH] set openlogin-utils as both dependency and optional peer dependency in openlogin pkg users using @toruslabs/openlogin should use compatible version of openlogin utils should they require it This is to ensure compatible interfaces (e.g. WhitelabelData) --- package-lock.json | 14 ++++++++++---- packages/openlogin/package.json | 10 ++++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4026f126..dfa91e4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21554,7 +21554,7 @@ "@toruslabs/eccrypto": "^4.0.0", "@toruslabs/metadata-helpers": "^5.0.0", "@toruslabs/openlogin-session-manager": "^3.0.0", - "@toruslabs/openlogin-utils": "^6.2.2", + "@toruslabs/openlogin-utils": "file:../openlogin-utils", "@toruslabs/secure-pub-sub": "^0.0.1", "bowser": "^2.11.0", "events": "^3.3.0", @@ -21566,7 +21566,13 @@ "npm": ">=9.x" }, "peerDependencies": { - "@babel/runtime": "7.x" + "@babel/runtime": "7.x", + "@toruslabs/openlogin-utils": "file:../openlogin-utils" + }, + "peerDependenciesMeta": { + "@toruslabs/openlogin-utils": { + "optional": true + } } }, "packages/openlogin-ed25519": { @@ -21670,9 +21676,9 @@ "version": "6.2.3", "license": "ISC", "dependencies": { - "@toruslabs/openlogin": "^6.2.2", + "@toruslabs/openlogin": "file:../openlogin", "@toruslabs/openlogin-jrpc": "^6.2.3", - "@toruslabs/openlogin-utils": "^6.2.2" + "@toruslabs/openlogin-utils": "file:../openlogin-utils" }, "engines": { "node": ">=18.x", diff --git a/packages/openlogin/package.json b/packages/openlogin/package.json index 056afadc..a694bd5d 100644 --- a/packages/openlogin/package.json +++ b/packages/openlogin/package.json @@ -23,7 +23,7 @@ "@toruslabs/eccrypto": "^4.0.0", "@toruslabs/metadata-helpers": "^5.0.0", "@toruslabs/openlogin-session-manager": "^3.0.0", - "@toruslabs/openlogin-utils": "^6.2.2", + "@toruslabs/openlogin-utils": "file:../openlogin-utils", "@toruslabs/secure-pub-sub": "^0.0.1", "bowser": "^2.11.0", "events": "^3.3.0", @@ -31,7 +31,13 @@ "ts-custom-error": "^3.3.1" }, "peerDependencies": { - "@babel/runtime": "7.x" + "@babel/runtime": "7.x", + "@toruslabs/openlogin-utils": "file:../openlogin-utils" + }, + "peerDependenciesMeta": { + "@toruslabs/openlogin-utils": { + "optional": true + } }, "files": [ "dist",