@1sat/connect 0.0.28 → 0.0.29

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.20+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;
@@ -40847,7 +40847,12 @@ function buildConnector(config) {
40847
40847
  const { wallet: wallet2, destroy } = createWebCWI(webConfig);
40848
40848
  await wallet2.waitForAuthentication({});
40849
40849
  const { publicKey } = await wallet2.getPublicKey({ identityKey: true });
40850
- return { wallet: wallet2, provider: config.type, identityKey: publicKey, disconnect: destroy };
40850
+ return {
40851
+ wallet: wallet2,
40852
+ provider: config.type,
40853
+ identityKey: publicKey,
40854
+ disconnect: destroy
40855
+ };
40851
40856
  };
40852
40857
  }
40853
40858
  return () => Promise.reject(new Error(`Provider "${config.type}" has no url or connect function`));
@@ -41037,7 +41042,7 @@ var onMount = ($store, initialize) => {
41037
41042
  };
41038
41043
  });
41039
41044
  };
41040
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/query.mjs
41045
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/query.mjs
41041
41046
  var isServer = () => typeof window === "undefined";
41042
41047
  var useAuthQuery = (initializedAtom, path, $fetch, options) => {
41043
41048
  const value = atom({
@@ -41111,19 +41116,19 @@ var useAuthQuery = (initializedAtom, path, $fetch, options) => {
41111
41116
  });
41112
41117
  };
41113
41118
  initializedAtom = Array.isArray(initializedAtom) ? initializedAtom : [initializedAtom];
41114
- let isMounted = false;
41119
+ let isInitialized = false;
41115
41120
  for (const initAtom of initializedAtom)
41116
41121
  initAtom.subscribe(async () => {
41117
41122
  if (isServer())
41118
41123
  return;
41119
- if (isMounted)
41124
+ if (isInitialized)
41120
41125
  await fn();
41121
41126
  else
41122
41127
  onMount(value, () => {
41123
41128
  const timeoutId = setTimeout(async () => {
41124
- if (!isMounted) {
41129
+ if (!isInitialized) {
41130
+ isInitialized = true;
41125
41131
  await fn();
41126
- isMounted = true;
41127
41132
  }
41128
41133
  }, 0);
41129
41134
  return () => {
@@ -41250,7 +41255,7 @@ var InternalAPIError = class extends Error {
41250
41255
  var kAPIErrorHeaderSymbol = Symbol.for("better-call:api-error-headers");
41251
41256
  var APIError = makeErrorForHideStackFrame(InternalAPIError, Error);
41252
41257
 
41253
- // ../../node_modules/.bun/@better-auth+core@1.6.2+d0d9bec75502bd58/node_modules/@better-auth/core/dist/error/index.mjs
41258
+ // ../../node_modules/.bun/@better-auth+core@1.6.4+ffc25a14ebebf8ae/node_modules/@better-auth/core/dist/error/index.mjs
41254
41259
  var BetterAuthError = class extends Error {
41255
41260
  constructor(message, options) {
41256
41261
  super(message, options);
@@ -41260,7 +41265,7 @@ var BetterAuthError = class extends Error {
41260
41265
  }
41261
41266
  };
41262
41267
 
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
41268
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+21c0b460964c222b/node_modules/@sigma-auth/better-auth-plugin/dist/client/local-signer.js
41264
41269
  class LocalServerSigner {
41265
41270
  baseUrl;
41266
41271
  timeout;
@@ -41488,7 +41493,7 @@ class LocalServerSigner {
41488
41493
  }
41489
41494
  }
41490
41495
 
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
41496
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+21c0b460964c222b/node_modules/@sigma-auth/better-auth-plugin/dist/client/sigma-cwi.js
41492
41497
  var isRecord3 = (v) => typeof v === "object" && v !== null;
41493
41498
  var isResponse3 = (v) => isRecord3(v) && v.type === "CWI" && v.isInvocation === false && typeof v.id === "string";
41494
41499
  var isState3 = (v) => isRecord3(v) && v.type === "CWI" && isRecord3(v.cwiState);
@@ -41729,7 +41734,7 @@ class SigmaCWISigner {
41729
41734
  this.pending.clear();
41730
41735
  }
41731
41736
  }
41732
- // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+fa9a5a0bea468140/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
41737
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+21c0b460964c222b/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
41733
41738
  class SigmaIframeSigner {
41734
41739
  iframe = null;
41735
41740
  pendingRequests = new Map;
@@ -42127,7 +42132,7 @@ class SigmaIframeSigner {
42127
42132
  this.rejectAllPending(new Error("Signer destroyed"));
42128
42133
  }
42129
42134
  }
42130
- // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+fa9a5a0bea468140/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
42135
+ // ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+21c0b460964c222b/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
42131
42136
  var signer = null;
42132
42137
  var signerType = null;
42133
42138
  var storedBapId = null;
@@ -42635,7 +42640,7 @@ Backend: ${status} (${endpoint})`;
42635
42640
  };
42636
42641
  };
42637
42642
 
42638
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/broadcast-channel.mjs
42643
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/broadcast-channel.mjs
42639
42644
  var kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
42640
42645
  var now = () => Math.floor(Date.now() / 1000);
42641
42646
  var WindowBroadcastChannel = class {
@@ -42683,7 +42688,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
42683
42688
  return globalThis[kBroadcastChannel];
42684
42689
  }
42685
42690
 
42686
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/focus-manager.mjs
42691
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/focus-manager.mjs
42687
42692
  var kFocusManager = Symbol.for("better-auth:focus-manager");
42688
42693
  var WindowFocusManager = class {
42689
42694
  listeners = /* @__PURE__ */ new Set;
@@ -42715,7 +42720,7 @@ function getGlobalFocusManager() {
42715
42720
  return globalThis[kFocusManager];
42716
42721
  }
42717
42722
 
42718
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/online-manager.mjs
42723
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/online-manager.mjs
42719
42724
  var kOnlineManager = Symbol.for("better-auth:online-manager");
42720
42725
  var WindowOnlineManager = class {
42721
42726
  listeners = /* @__PURE__ */ new Set;
@@ -42749,7 +42754,7 @@ function getGlobalOnlineManager() {
42749
42754
  return globalThis[kOnlineManager];
42750
42755
  }
42751
42756
 
42752
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/parser.mjs
42757
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/parser.mjs
42753
42758
  var PROTO_POLLUTION_PATTERNS = {
42754
42759
  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
42760
  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 +42834,7 @@ function parseJSON(value, options = { strict: true }) {
42829
42834
  return betterJSONParse(value, options);
42830
42835
  }
42831
42836
 
42832
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/session-refresh.mjs
42837
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/session-refresh.mjs
42833
42838
  var now2 = () => Math.floor(Date.now() / 1000);
42834
42839
  function normalizeSessionResponse(res) {
42835
42840
  if (typeof res === "object" && res !== null && "data" in res && "error" in res)
@@ -42969,7 +42974,7 @@ function createSessionRefreshManager(opts) {
42969
42974
  };
42970
42975
  }
42971
42976
 
42972
- // ../../node_modules/.bun/@better-auth+core@1.6.2+d0d9bec75502bd58/node_modules/@better-auth/core/dist/env/env-impl.mjs
42977
+ // ../../node_modules/.bun/@better-auth+core@1.6.4+ffc25a14ebebf8ae/node_modules/@better-auth/core/dist/env/env-impl.mjs
42973
42978
  var _envShim = Object.create(null);
42974
42979
  var _getEnv = (useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis);
42975
42980
  var env = new Proxy(_envShim, {
@@ -43029,7 +43034,7 @@ var ENV = Object.freeze({
43029
43034
  return getEnvVar("BETTER_AUTH_TELEMETRY_ENDPOINT", "");
43030
43035
  }
43031
43036
  });
43032
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/utils/url.mjs
43037
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/utils/url.mjs
43033
43038
  function checkHasPath(url) {
43034
43039
  try {
43035
43040
  return (new URL(url).pathname.replace(/\/+$/, "") || "/") !== "/";
@@ -43113,7 +43118,7 @@ function getOrigin(url) {
43113
43118
  }
43114
43119
  }
43115
43120
 
43116
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/fetch-plugins.mjs
43121
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/fetch-plugins.mjs
43117
43122
  var redirectPlugin = {
43118
43123
  id: "redirect",
43119
43124
  name: "Redirect",
@@ -43129,7 +43134,7 @@ var redirectPlugin = {
43129
43134
  } }
43130
43135
  };
43131
43136
 
43132
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/session-atom.mjs
43137
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/session-atom.mjs
43133
43138
  function getSessionAtom($fetch, options) {
43134
43139
  const $signal = atom(false);
43135
43140
  const session = useAuthQuery($signal, "/get-session", $fetch, { method: "GET" });
@@ -43785,7 +43790,7 @@ var betterFetch = async (url, options) => {
43785
43790
  };
43786
43791
  };
43787
43792
 
43788
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/config.mjs
43793
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/config.mjs
43789
43794
  var resolvePublicAuthUrl = (basePath) => {
43790
43795
  if (typeof process === "undefined")
43791
43796
  return;
@@ -43895,12 +43900,12 @@ var getClientConfig = (options, loadEnv) => {
43895
43900
  };
43896
43901
  };
43897
43902
 
43898
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/utils/is-atom.mjs
43903
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/utils/is-atom.mjs
43899
43904
  function isAtom(value) {
43900
43905
  return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
43901
43906
  }
43902
43907
 
43903
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/proxy.mjs
43908
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/proxy.mjs
43904
43909
  function getMethod2(path, knownPathMethods, args) {
43905
43910
  const method = knownPathMethods[path];
43906
43911
  const { fetchOptions, query: _query, ...body } = args || {};
@@ -43982,12 +43987,12 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
43982
43987
  return createProxy();
43983
43988
  }
43984
43989
 
43985
- // ../../node_modules/.bun/@better-auth+core@1.6.2+d0d9bec75502bd58/node_modules/@better-auth/core/dist/utils/string.mjs
43990
+ // ../../node_modules/.bun/@better-auth+core@1.6.4+ffc25a14ebebf8ae/node_modules/@better-auth/core/dist/utils/string.mjs
43986
43991
  function capitalizeFirstLetter(str) {
43987
43992
  return str.charAt(0).toUpperCase() + str.slice(1);
43988
43993
  }
43989
43994
 
43990
- // ../../node_modules/.bun/better-auth@1.6.2+46771799ecf4a8c6/node_modules/better-auth/dist/client/vanilla.mjs
43995
+ // ../../node_modules/.bun/better-auth@1.6.4+ae0101fa9c1d85a1/node_modules/better-auth/dist/client/vanilla.mjs
43991
43996
  function createAuthClient(options) {
43992
43997
  const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
43993
43998
  const resolvedHooks = {};
@@ -1 +1 @@
1
- {"version":3,"file":"sigma-oauth.d.ts","sourceRoot":"","sources":["../src/sigma-oauth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EACN,KAAK,kBAAkB,EACvB,WAAW,EACX,MAAM,uCAAuC,CAAA;AAE9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEhF,eAAO,MAAM,SAAS,mCAAmC,CA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AAC;;aAA8F,CAAC;oBAAiE,CAAC;cAAgC,CAAC;mBAAkG,CAAC;yBAA0E,CAAC;qBAAwC,CAAC;;;uBAAkF,CAAC;+GAAuL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAzE34C,CAAA;AAEF,eAAO,MAAM,eAAe,EAAqB,OAAO,cAAc,GACrE,oBAAoB,CAAA;AAErB;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,aAAa,CAAC,GAC5D,OAAO,CAAC,KAAK,CAAC,CAOhB;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACvC,YAAY,EAAE,eAAe,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAe3B;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,mBAAmB,CAAC,CAgB9B"}
package/package.json CHANGED
@@ -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.29",
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.40",
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.6"
38
+ },
39
+ "devDependencies": {
40
+ "@bsv/sdk": "^2.0.6",
41
+ "typescript": "^5.9.3"
42
+ }
43
+ }