@owney/sdk 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1041,9 +1041,7 @@ function buildProtocolMergeUpdate(available, current, asset, excluded = []) {
1041
1041
  const enabled = current.protocols ?? [];
1042
1042
  const kept = enabled.filter((id) => !isExcludedId(id));
1043
1043
  const keptSet = new Set(kept);
1044
- const missing = available.filter(
1045
- (p) => !keptSet.has(p.id) && !isExcluded(p)
1046
- );
1044
+ const missing = current.autoSelectProtocols === false ? [] : available.filter((p) => !keptSet.has(p.id) && !isExcluded(p));
1047
1045
  const fixAutoSelect = excluded.length > 0 && current.autoSelectProtocols !== false;
1048
1046
  const removedAny = kept.length !== enabled.length;
1049
1047
  if (missing.length === 0 && !removedAny && !fixAutoSelect) return null;
package/dist/index.js CHANGED
@@ -1000,9 +1000,7 @@ function buildProtocolMergeUpdate(available, current, asset, excluded = []) {
1000
1000
  const enabled = current.protocols ?? [];
1001
1001
  const kept = enabled.filter((id) => !isExcludedId(id));
1002
1002
  const keptSet = new Set(kept);
1003
- const missing = available.filter(
1004
- (p) => !keptSet.has(p.id) && !isExcluded(p)
1005
- );
1003
+ const missing = current.autoSelectProtocols === false ? [] : available.filter((p) => !keptSet.has(p.id) && !isExcluded(p));
1006
1004
  const fixAutoSelect = excluded.length > 0 && current.autoSelectProtocols !== false;
1007
1005
  const removedAny = kept.length !== enabled.length;
1008
1006
  if (missing.length === 0 && !removedAny && !fixAutoSelect) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",