@1sat/connect 0.0.28 → 0.0.30

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.
@@ -1 +1 @@
1
- {"version":3,"file":"connectWallet.d.ts","sourceRoot":"","sources":["../src/connectWallet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,MAAM,WAAW,oBAAoB;IACpC,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAC5C;AAED,MAAM,WAAW,mBAAmB;IACnC;;0DAEsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,sDAAsD;IACtD,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAA;CAClC;AAED,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,eAAe,CAAA;IACvB,uFAAuF;IACvF,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB;IAC9D,OAAO,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAC3C;AAED,kDAAkD;AAClD,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAA;AAWtD,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAOhD;AAwCD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,iBAAiB,EAAE,CAWvF;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CA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,mBAAmB,CAAC,CAoC9B"}
package/dist/index.js CHANGED
@@ -21000,7 +21000,7 @@ var init_https = __esm(() => {
21000
21000
  https_default = https;
21001
21001
  });
21002
21002
 
21003
- // ../../node_modules/.bun/@bsv+wallet-toolbox@2.1.19+1e0cb1bedf0614c6/node_modules/@bsv/wallet-toolbox/out/src/sdk/WalletError.js
21003
+ // ../../node_modules/.bun/@bsv+wallet-toolbox@2.1.21+1e0cb1bedf0614c6/node_modules/@bsv/wallet-toolbox/out/src/sdk/WalletError.js
21004
21004
  var require_WalletError = __commonJS((exports) => {
21005
21005
  Object.defineProperty(exports, "__esModule", { value: true });
21006
21006
  exports.WalletError = undefined;
@@ -40808,6 +40808,53 @@ function createSigmaCWI(config) {
40808
40808
  };
40809
40809
  return { wallet: createCWI(transport), destroy, sendCustomMessage };
40810
40810
  }
40811
+ // ../wallet/dist/permissions/key.js
40812
+ function permissionKeyToString(key) {
40813
+ switch (key.type) {
40814
+ case "protocol":
40815
+ return `proto:${key.originator}:${key.privileged}:${key.protocolLevel},${key.protocolName}:${key.counterparty}`;
40816
+ case "basket":
40817
+ return `basket:${key.originator}:${key.basket}`;
40818
+ case "certificate":
40819
+ return `cert:${key.originator}:${key.privileged}:${key.verifier}:${key.certType}:${[...key.fields].sort().join("|")}`;
40820
+ case "spending":
40821
+ return `spend:${key.originator}`;
40822
+ }
40823
+ }
40824
+ // ../wallet/dist/permissions/in-memory-store.js
40825
+ class InMemoryPermissionStore {
40826
+ grants = new Map;
40827
+ async findGrant(key) {
40828
+ return this.grants.get(permissionKeyToString(key)) ?? null;
40829
+ }
40830
+ async putGrant(grant) {
40831
+ this.grants.set(permissionKeyToString(grant.key), grant);
40832
+ }
40833
+ async deleteGrant(key) {
40834
+ this.grants.delete(permissionKeyToString(key));
40835
+ }
40836
+ async deleteAllForOriginator(originator) {
40837
+ let removed = 0;
40838
+ for (const [id, grant] of this.grants) {
40839
+ if (grant.key.originator === originator) {
40840
+ this.grants.delete(id);
40841
+ removed++;
40842
+ }
40843
+ }
40844
+ return removed;
40845
+ }
40846
+ async listGrants(filter) {
40847
+ const out = [];
40848
+ for (const grant of this.grants.values()) {
40849
+ if (filter?.originator && grant.key.originator !== filter.originator)
40850
+ continue;
40851
+ if (filter?.type && grant.key.type !== filter.type)
40852
+ continue;
40853
+ out.push(grant);
40854
+ }
40855
+ return out;
40856
+ }
40857
+ }
40811
40858
  // src/connectWallet.ts
40812
40859
  var LAST_PROVIDER_KEY = "cwi_last_provider";
40813
40860
  function saveLastProvider(providerType) {
@@ -40847,7 +40894,12 @@ function buildConnector(config) {
40847
40894
  const { wallet: wallet2, destroy } = createWebCWI(webConfig);
40848
40895
  await wallet2.waitForAuthentication({});
40849
40896
  const { publicKey } = await wallet2.getPublicKey({ identityKey: true });
40850
- return { wallet: wallet2, provider: config.type, identityKey: publicKey, disconnect: destroy };
40897
+ return {
40898
+ wallet: wallet2,
40899
+ provider: config.type,
40900
+ identityKey: publicKey,
40901
+ disconnect: destroy
40902
+ };
40851
40903
  };
40852
40904
  }
40853
40905
  return () => Promise.reject(new Error(`Provider "${config.type}" has no url or connect function`));
@@ -41037,7 +41089,7 @@ var onMount = ($store, initialize) => {
41037
41089
  };
41038
41090
  });
41039
41091
  };
41040
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/query.mjs
41092
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/query.mjs
41041
41093
  var isServer = () => typeof window === "undefined";
41042
41094
  var useAuthQuery = (initializedAtom, path, $fetch, options) => {
41043
41095
  const value = atom({
@@ -41111,19 +41163,19 @@ var useAuthQuery = (initializedAtom, path, $fetch, options) => {
41111
41163
  });
41112
41164
  };
41113
41165
  initializedAtom = Array.isArray(initializedAtom) ? initializedAtom : [initializedAtom];
41114
- let isMounted = false;
41166
+ let isInitialized = false;
41115
41167
  for (const initAtom of initializedAtom)
41116
41168
  initAtom.subscribe(async () => {
41117
41169
  if (isServer())
41118
41170
  return;
41119
- if (isMounted)
41171
+ if (isInitialized)
41120
41172
  await fn();
41121
41173
  else
41122
41174
  onMount(value, () => {
41123
41175
  const timeoutId = setTimeout(async () => {
41124
- if (!isMounted) {
41176
+ if (!isInitialized) {
41177
+ isInitialized = true;
41125
41178
  await fn();
41126
- isMounted = true;
41127
41179
  }
41128
41180
  }, 0);
41129
41181
  return () => {
@@ -41250,7 +41302,7 @@ var InternalAPIError = class extends Error {
41250
41302
  var kAPIErrorHeaderSymbol = Symbol.for("better-call:api-error-headers");
41251
41303
  var APIError = makeErrorForHideStackFrame(InternalAPIError, Error);
41252
41304
 
41253
- // ../../node_modules/.bun/@better-auth+core@1.6.2+d0d9bec75502bd58/node_modules/@better-auth/core/dist/error/index.mjs
41305
+ // ../../node_modules/.bun/@better-auth+core@1.6.5+ffc25a14ebebf8ae/node_modules/@better-auth/core/dist/error/index.mjs
41254
41306
  var BetterAuthError = class extends Error {
41255
41307
  constructor(message, options) {
41256
41308
  super(message, options);
@@ -41260,7 +41312,7 @@ var BetterAuthError = class extends Error {
41260
41312
  }
41261
41313
  };
41262
41314
 
41263
- // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+fa9a5a0bea468140/node_modules/@sigma-auth/better-auth-plugin/dist/client/local-signer.js
41315
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+ec75ea420259e8cb/node_modules/@sigma-auth/better-auth-plugin/dist/client/local-signer.js
41264
41316
  class LocalServerSigner {
41265
41317
  baseUrl;
41266
41318
  timeout;
@@ -41488,7 +41540,7 @@ class LocalServerSigner {
41488
41540
  }
41489
41541
  }
41490
41542
 
41491
- // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+fa9a5a0bea468140/node_modules/@sigma-auth/better-auth-plugin/dist/client/sigma-cwi.js
41543
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+ec75ea420259e8cb/node_modules/@sigma-auth/better-auth-plugin/dist/client/sigma-cwi.js
41492
41544
  var isRecord3 = (v) => typeof v === "object" && v !== null;
41493
41545
  var isResponse3 = (v) => isRecord3(v) && v.type === "CWI" && v.isInvocation === false && typeof v.id === "string";
41494
41546
  var isState3 = (v) => isRecord3(v) && v.type === "CWI" && isRecord3(v.cwiState);
@@ -41729,7 +41781,7 @@ class SigmaCWISigner {
41729
41781
  this.pending.clear();
41730
41782
  }
41731
41783
  }
41732
- // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+fa9a5a0bea468140/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
41784
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+ec75ea420259e8cb/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
41733
41785
  class SigmaIframeSigner {
41734
41786
  iframe = null;
41735
41787
  pendingRequests = new Map;
@@ -42127,7 +42179,7 @@ class SigmaIframeSigner {
42127
42179
  this.rejectAllPending(new Error("Signer destroyed"));
42128
42180
  }
42129
42181
  }
42130
- // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+fa9a5a0bea468140/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
42182
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+ec75ea420259e8cb/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
42131
42183
  var signer = null;
42132
42184
  var signerType = null;
42133
42185
  var storedBapId = null;
@@ -42635,7 +42687,7 @@ Backend: ${status} (${endpoint})`;
42635
42687
  };
42636
42688
  };
42637
42689
 
42638
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/broadcast-channel.mjs
42690
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/broadcast-channel.mjs
42639
42691
  var kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
42640
42692
  var now = () => Math.floor(Date.now() / 1000);
42641
42693
  var WindowBroadcastChannel = class {
@@ -42683,7 +42735,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
42683
42735
  return globalThis[kBroadcastChannel];
42684
42736
  }
42685
42737
 
42686
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/focus-manager.mjs
42738
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/focus-manager.mjs
42687
42739
  var kFocusManager = Symbol.for("better-auth:focus-manager");
42688
42740
  var WindowFocusManager = class {
42689
42741
  listeners = /* @__PURE__ */ new Set;
@@ -42715,7 +42767,7 @@ function getGlobalFocusManager() {
42715
42767
  return globalThis[kFocusManager];
42716
42768
  }
42717
42769
 
42718
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/online-manager.mjs
42770
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/online-manager.mjs
42719
42771
  var kOnlineManager = Symbol.for("better-auth:online-manager");
42720
42772
  var WindowOnlineManager = class {
42721
42773
  listeners = /* @__PURE__ */ new Set;
@@ -42749,7 +42801,7 @@ function getGlobalOnlineManager() {
42749
42801
  return globalThis[kOnlineManager];
42750
42802
  }
42751
42803
 
42752
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/parser.mjs
42804
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/parser.mjs
42753
42805
  var PROTO_POLLUTION_PATTERNS = {
42754
42806
  proto: /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
42755
42807
  constructor: /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
@@ -42829,7 +42881,7 @@ function parseJSON(value, options = { strict: true }) {
42829
42881
  return betterJSONParse(value, options);
42830
42882
  }
42831
42883
 
42832
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/session-refresh.mjs
42884
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/session-refresh.mjs
42833
42885
  var now2 = () => Math.floor(Date.now() / 1000);
42834
42886
  function normalizeSessionResponse(res) {
42835
42887
  if (typeof res === "object" && res !== null && "data" in res && "error" in res)
@@ -42969,7 +43021,7 @@ function createSessionRefreshManager(opts) {
42969
43021
  };
42970
43022
  }
42971
43023
 
42972
- // ../../node_modules/.bun/@better-auth+core@1.6.2+d0d9bec75502bd58/node_modules/@better-auth/core/dist/env/env-impl.mjs
43024
+ // ../../node_modules/.bun/@better-auth+core@1.6.5+ffc25a14ebebf8ae/node_modules/@better-auth/core/dist/env/env-impl.mjs
42973
43025
  var _envShim = Object.create(null);
42974
43026
  var _getEnv = (useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis);
42975
43027
  var env = new Proxy(_envShim, {
@@ -43029,7 +43081,7 @@ var ENV = Object.freeze({
43029
43081
  return getEnvVar("BETTER_AUTH_TELEMETRY_ENDPOINT", "");
43030
43082
  }
43031
43083
  });
43032
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/utils/url.mjs
43084
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/utils/url.mjs
43033
43085
  function checkHasPath(url) {
43034
43086
  try {
43035
43087
  return (new URL(url).pathname.replace(/\/+$/, "") || "/") !== "/";
@@ -43113,7 +43165,7 @@ function getOrigin(url) {
43113
43165
  }
43114
43166
  }
43115
43167
 
43116
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/fetch-plugins.mjs
43168
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/fetch-plugins.mjs
43117
43169
  var redirectPlugin = {
43118
43170
  id: "redirect",
43119
43171
  name: "Redirect",
@@ -43129,7 +43181,7 @@ var redirectPlugin = {
43129
43181
  } }
43130
43182
  };
43131
43183
 
43132
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/session-atom.mjs
43184
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/session-atom.mjs
43133
43185
  function getSessionAtom($fetch, options) {
43134
43186
  const $signal = atom(false);
43135
43187
  const session = useAuthQuery($signal, "/get-session", $fetch, { method: "GET" });
@@ -43785,7 +43837,7 @@ var betterFetch = async (url, options) => {
43785
43837
  };
43786
43838
  };
43787
43839
 
43788
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/config.mjs
43840
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/config.mjs
43789
43841
  var resolvePublicAuthUrl = (basePath) => {
43790
43842
  if (typeof process === "undefined")
43791
43843
  return;
@@ -43853,7 +43905,7 @@ var getClientConfig = (options, loadEnv) => {
43853
43905
  const atomListeners = [{
43854
43906
  signal: "$sessionSignal",
43855
43907
  matcher(path) {
43856
- return path === "/sign-out" || path === "/update-user" || path === "/update-session" || path === "/sign-up/email" || path === "/sign-in/email" || path === "/delete-user" || path === "/verify-email" || path === "/revoke-sessions" || path === "/revoke-session" || path === "/change-email";
43908
+ return path === "/sign-out" || path === "/update-user" || path === "/update-session" || path === "/sign-up/email" || path === "/sign-in/email" || path === "/delete-user" || path === "/verify-email" || path === "/revoke-sessions" || path === "/revoke-session" || path === "/revoke-other-sessions" || path === "/change-email" || path === "/change-password";
43857
43909
  },
43858
43910
  callback(path) {
43859
43911
  if (path === "/sign-out")
@@ -43895,12 +43947,12 @@ var getClientConfig = (options, loadEnv) => {
43895
43947
  };
43896
43948
  };
43897
43949
 
43898
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/utils/is-atom.mjs
43950
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/utils/is-atom.mjs
43899
43951
  function isAtom(value) {
43900
43952
  return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
43901
43953
  }
43902
43954
 
43903
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/proxy.mjs
43955
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/proxy.mjs
43904
43956
  function getMethod2(path, knownPathMethods, args) {
43905
43957
  const method = knownPathMethods[path];
43906
43958
  const { fetchOptions, query: _query, ...body } = args || {};
@@ -43982,12 +44034,12 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
43982
44034
  return createProxy();
43983
44035
  }
43984
44036
 
43985
- // ../../node_modules/.bun/@better-auth+core@1.6.2+d0d9bec75502bd58/node_modules/@better-auth/core/dist/utils/string.mjs
44037
+ // ../../node_modules/.bun/@better-auth+core@1.6.5+ffc25a14ebebf8ae/node_modules/@better-auth/core/dist/utils/string.mjs
43986
44038
  function capitalizeFirstLetter(str) {
43987
44039
  return str.charAt(0).toUpperCase() + str.slice(1);
43988
44040
  }
43989
44041
 
43990
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/vanilla.mjs
44042
+ // ../../node_modules/.bun/better-auth@1.6.5+4ebdec0417783102/node_modules/better-auth/dist/client/vanilla.mjs
43991
44043
  function createAuthClient(options) {
43992
44044
  const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
43993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@@ -1,34 +1,43 @@
1
1
  {
2
- "name": "@1sat/connect",
3
- "version": "0.0.28",
4
- "description": "Connection layer for 1Sat wallet - popup flow, events, session management",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js"
12
- }
13
- },
14
- "files": ["dist"],
15
- "scripts": {
16
- "build": "bun build ./src/index.ts --outdir ./dist --target browser && tsc --emitDeclarationOnly",
17
- "dev": "tsc --watch"
18
- },
19
- "keywords": ["1sat", "bsv", "ordinals", "wallet", "sdk", "connect"],
20
- "license": "MIT",
21
- "dependencies": {
22
- "@1sat/wallet": "0.0.39",
23
- "@sigma-auth/better-auth-plugin": "^0.0.84",
24
- "better-auth": "^1.5.4",
25
- "eventemitter3": "^5.0.1"
26
- },
27
- "peerDependencies": {
28
- "@bsv/sdk": "^2.0.6"
29
- },
30
- "devDependencies": {
31
- "@bsv/sdk": "^2.0.6",
32
- "typescript": "^5.9.3"
33
- }
34
- }
2
+ "name": "@1sat/connect",
3
+ "version": "0.0.30",
4
+ "description": "Connection layer for 1Sat wallet - popup flow, events, session management",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "bun build ./src/index.ts --outdir ./dist --target browser && tsc --emitDeclarationOnly",
19
+ "dev": "tsc --watch"
20
+ },
21
+ "keywords": [
22
+ "1sat",
23
+ "bsv",
24
+ "ordinals",
25
+ "wallet",
26
+ "sdk",
27
+ "connect"
28
+ ],
29
+ "license": "MIT",
30
+ "dependencies": {
31
+ "@1sat/wallet": "0.0.41",
32
+ "@sigma-auth/better-auth-plugin": "^0.0.84",
33
+ "better-auth": "^1.5.4",
34
+ "eventemitter3": "^5.0.1"
35
+ },
36
+ "peerDependencies": {
37
+ "@bsv/sdk": "^2.0.13"
38
+ },
39
+ "devDependencies": {
40
+ "@bsv/sdk": "^2.0.13",
41
+ "typescript": "^5.9.3"
42
+ }
43
+ }