@1sat/connect 0.0.47 → 0.0.49
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.js +98 -20
- package/dist/types.d.ts +1 -18
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -99618,6 +99618,7 @@ var CWIEventName;
|
|
|
99618
99618
|
CWIEventName2["REVEAL_COUNTERPARTY_KEY_LINKAGE"] = "revealCounterpartyKeyLinkage";
|
|
99619
99619
|
CWIEventName2["REVEAL_SPECIFIC_KEY_LINKAGE"] = "revealSpecificKeyLinkage";
|
|
99620
99620
|
})(CWIEventName || (CWIEventName = {}));
|
|
99621
|
+
var CWI_EVENT_NAMES = new Set(Object.values(CWIEventName));
|
|
99621
99622
|
// ../wallet/dist/cwi/factory.js
|
|
99622
99623
|
var createCWI = (transport) => ({
|
|
99623
99624
|
listOutputs: (args) => transport(CWIEventName.LIST_OUTPUTS, args),
|
|
@@ -100056,6 +100057,59 @@ function createSigmaCWI(config) {
|
|
|
100056
100057
|
};
|
|
100057
100058
|
return { wallet: createCWI(transport), destroy, sendCustomMessage };
|
|
100058
100059
|
}
|
|
100060
|
+
// ../wallet/dist/backupRegistration.js
|
|
100061
|
+
class BackupRegistration {
|
|
100062
|
+
opts;
|
|
100063
|
+
pending;
|
|
100064
|
+
attempting = new Set;
|
|
100065
|
+
attempts = new Map;
|
|
100066
|
+
timers = new Map;
|
|
100067
|
+
stopped = false;
|
|
100068
|
+
constructor(opts) {
|
|
100069
|
+
this.opts = opts;
|
|
100070
|
+
this.pending = new Set(opts.urls);
|
|
100071
|
+
}
|
|
100072
|
+
start() {
|
|
100073
|
+
for (const url of this.pending)
|
|
100074
|
+
this.attempt(url);
|
|
100075
|
+
}
|
|
100076
|
+
stop() {
|
|
100077
|
+
this.stopped = true;
|
|
100078
|
+
for (const t of this.timers.values())
|
|
100079
|
+
clearTimeout(t);
|
|
100080
|
+
this.timers.clear();
|
|
100081
|
+
}
|
|
100082
|
+
attempt(url) {
|
|
100083
|
+
if (this.stopped)
|
|
100084
|
+
return;
|
|
100085
|
+
if (!this.pending.has(url))
|
|
100086
|
+
return;
|
|
100087
|
+
if (this.attempting.has(url))
|
|
100088
|
+
return;
|
|
100089
|
+
this.attempting.add(url);
|
|
100090
|
+
const count = (this.attempts.get(url) ?? 0) + 1;
|
|
100091
|
+
this.attempts.set(url, count);
|
|
100092
|
+
(async () => {
|
|
100093
|
+
try {
|
|
100094
|
+
await this.opts.register(url);
|
|
100095
|
+
this.pending.delete(url);
|
|
100096
|
+
this.attempts.delete(url);
|
|
100097
|
+
} catch (err) {
|
|
100098
|
+
if (this.opts.onError)
|
|
100099
|
+
this.opts.onError(url, err, count);
|
|
100100
|
+
if (!this.stopped && this.pending.has(url)) {
|
|
100101
|
+
const t = setTimeout(() => {
|
|
100102
|
+
this.timers.delete(url);
|
|
100103
|
+
this.attempt(url);
|
|
100104
|
+
}, this.opts.retryMsecs);
|
|
100105
|
+
this.timers.set(url, t);
|
|
100106
|
+
}
|
|
100107
|
+
} finally {
|
|
100108
|
+
this.attempting.delete(url);
|
|
100109
|
+
}
|
|
100110
|
+
})();
|
|
100111
|
+
}
|
|
100112
|
+
}
|
|
100059
100113
|
// ../wallet/dist/permissions/key.js
|
|
100060
100114
|
var DEFAULT_PORTS = {
|
|
100061
100115
|
"http:": "80",
|
|
@@ -100213,6 +100267,9 @@ class LocalWalletPermissionsManager extends import_index_client.WalletPermission
|
|
|
100213
100267
|
return super.bindCallback(eventName, wrapped);
|
|
100214
100268
|
}
|
|
100215
100269
|
async ensureProtocolPermission(args) {
|
|
100270
|
+
if (this.isAdminProtocolUpstream(args.protocolID)) {
|
|
100271
|
+
return super.ensureProtocolPermission(args);
|
|
100272
|
+
}
|
|
100216
100273
|
const counterparty = args.protocolID[0] === 1 ? "" : args.counterparty ?? "self";
|
|
100217
100274
|
const key = {
|
|
100218
100275
|
type: "protocol",
|
|
@@ -100227,6 +100284,9 @@ class LocalWalletPermissionsManager extends import_index_client.WalletPermission
|
|
|
100227
100284
|
return super.ensureProtocolPermission(args);
|
|
100228
100285
|
}
|
|
100229
100286
|
async ensureBasketAccess(args) {
|
|
100287
|
+
if (this.isAdminBasketUpstream(args.basket)) {
|
|
100288
|
+
return super.ensureBasketAccess(args);
|
|
100289
|
+
}
|
|
100230
100290
|
const key = {
|
|
100231
100291
|
type: "basket",
|
|
100232
100292
|
originator: normalizeOriginator(args.originator),
|
|
@@ -100264,6 +100324,20 @@ class LocalWalletPermissionsManager extends import_index_client.WalletPermission
|
|
|
100264
100324
|
const grant = await this.permissionStore.findGrant(key);
|
|
100265
100325
|
return !!grant && !isExpired(grant.expiry);
|
|
100266
100326
|
}
|
|
100327
|
+
isAdminBasketUpstream(basket) {
|
|
100328
|
+
const fn = this.isAdminBasket;
|
|
100329
|
+
if (typeof fn !== "function") {
|
|
100330
|
+
throw new Error("LocalWalletPermissionsManager: super.isAdminBasket is unavailable; admin-basket checks would silently bypass");
|
|
100331
|
+
}
|
|
100332
|
+
return fn.call(this, basket);
|
|
100333
|
+
}
|
|
100334
|
+
isAdminProtocolUpstream(proto) {
|
|
100335
|
+
const fn = this.isAdminProtocol;
|
|
100336
|
+
if (typeof fn !== "function") {
|
|
100337
|
+
throw new Error("LocalWalletPermissionsManager: super.isAdminProtocol is unavailable; admin-protocol checks would silently bypass");
|
|
100338
|
+
}
|
|
100339
|
+
return fn.call(this, proto);
|
|
100340
|
+
}
|
|
100267
100341
|
async grantPermission(params) {
|
|
100268
100342
|
const request3 = this.pendingSingle.get(params.requestID);
|
|
100269
100343
|
if (request3) {
|
|
@@ -100306,6 +100380,8 @@ class LocalWalletPermissionsManager extends import_index_client.WalletPermission
|
|
|
100306
100380
|
for (const p of params.granted.protocolPermissions ?? []) {
|
|
100307
100381
|
if (p.counterparty === "")
|
|
100308
100382
|
continue;
|
|
100383
|
+
if (this.isAdminProtocolUpstream(p.protocolID))
|
|
100384
|
+
continue;
|
|
100309
100385
|
const level = p.protocolID[0];
|
|
100310
100386
|
const counterparty = level === 1 ? "" : p.counterparty ?? "self";
|
|
100311
100387
|
await this.permissionStore.putGrant({
|
|
@@ -100323,6 +100399,8 @@ class LocalWalletPermissionsManager extends import_index_client.WalletPermission
|
|
|
100323
100399
|
});
|
|
100324
100400
|
}
|
|
100325
100401
|
for (const b of params.granted.basketAccess ?? []) {
|
|
100402
|
+
if (this.isAdminBasketUpstream(b.basket))
|
|
100403
|
+
continue;
|
|
100326
100404
|
await this.permissionStore.putGrant({
|
|
100327
100405
|
key: { type: "basket", originator, basket: b.basket },
|
|
100328
100406
|
expiry,
|
|
@@ -100827,7 +100905,7 @@ var onMount = ($store, initialize) => {
|
|
|
100827
100905
|
};
|
|
100828
100906
|
});
|
|
100829
100907
|
};
|
|
100830
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
100908
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/query.mjs
|
|
100831
100909
|
var isServer = () => typeof window === "undefined";
|
|
100832
100910
|
var useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
100833
100911
|
const value = atom({
|
|
@@ -101040,7 +101118,7 @@ var InternalAPIError = class extends Error {
|
|
|
101040
101118
|
var kAPIErrorHeaderSymbol = Symbol.for("better-call:api-error-headers");
|
|
101041
101119
|
var APIError = makeErrorForHideStackFrame(InternalAPIError, Error);
|
|
101042
101120
|
|
|
101043
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
101121
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.9+52327739b267453f/node_modules/@better-auth/core/dist/error/index.mjs
|
|
101044
101122
|
var BetterAuthError = class extends Error {
|
|
101045
101123
|
constructor(message, options) {
|
|
101046
101124
|
super(message, options);
|
|
@@ -101050,7 +101128,7 @@ var BetterAuthError = class extends Error {
|
|
|
101050
101128
|
}
|
|
101051
101129
|
};
|
|
101052
101130
|
|
|
101053
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+
|
|
101131
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+9f726a97e5e0cb02/node_modules/@sigma-auth/better-auth-plugin/dist/client/local-signer.js
|
|
101054
101132
|
class LocalServerSigner {
|
|
101055
101133
|
baseUrl;
|
|
101056
101134
|
timeout;
|
|
@@ -101278,7 +101356,7 @@ class LocalServerSigner {
|
|
|
101278
101356
|
}
|
|
101279
101357
|
}
|
|
101280
101358
|
|
|
101281
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+
|
|
101359
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+9f726a97e5e0cb02/node_modules/@sigma-auth/better-auth-plugin/dist/client/sigma-cwi.js
|
|
101282
101360
|
var isRecord3 = (v) => typeof v === "object" && v !== null;
|
|
101283
101361
|
var isResponse3 = (v) => isRecord3(v) && v.type === "CWI" && v.isInvocation === false && typeof v.id === "string";
|
|
101284
101362
|
var isState3 = (v) => isRecord3(v) && v.type === "CWI" && isRecord3(v.cwiState);
|
|
@@ -101519,7 +101597,7 @@ class SigmaCWISigner {
|
|
|
101519
101597
|
this.pending.clear();
|
|
101520
101598
|
}
|
|
101521
101599
|
}
|
|
101522
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+
|
|
101600
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+9f726a97e5e0cb02/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
|
|
101523
101601
|
class SigmaIframeSigner {
|
|
101524
101602
|
iframe = null;
|
|
101525
101603
|
pendingRequests = new Map;
|
|
@@ -101917,7 +101995,7 @@ class SigmaIframeSigner {
|
|
|
101917
101995
|
this.rejectAllPending(new Error("Signer destroyed"));
|
|
101918
101996
|
}
|
|
101919
101997
|
}
|
|
101920
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+
|
|
101998
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.84+9f726a97e5e0cb02/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
|
|
101921
101999
|
var signer = null;
|
|
101922
102000
|
var signerType = null;
|
|
101923
102001
|
var storedBapId = null;
|
|
@@ -102425,7 +102503,7 @@ Backend: ${status} (${endpoint})`;
|
|
|
102425
102503
|
};
|
|
102426
102504
|
};
|
|
102427
102505
|
|
|
102428
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102506
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
102429
102507
|
var kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
102430
102508
|
var now = () => Math.floor(Date.now() / 1000);
|
|
102431
102509
|
var WindowBroadcastChannel = class {
|
|
@@ -102473,7 +102551,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
|
|
|
102473
102551
|
return globalThis[kBroadcastChannel];
|
|
102474
102552
|
}
|
|
102475
102553
|
|
|
102476
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102554
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
102477
102555
|
var kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
102478
102556
|
var WindowFocusManager = class {
|
|
102479
102557
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -102505,7 +102583,7 @@ function getGlobalFocusManager() {
|
|
|
102505
102583
|
return globalThis[kFocusManager];
|
|
102506
102584
|
}
|
|
102507
102585
|
|
|
102508
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102586
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/online-manager.mjs
|
|
102509
102587
|
var kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
102510
102588
|
var WindowOnlineManager = class {
|
|
102511
102589
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -102539,7 +102617,7 @@ function getGlobalOnlineManager() {
|
|
|
102539
102617
|
return globalThis[kOnlineManager];
|
|
102540
102618
|
}
|
|
102541
102619
|
|
|
102542
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102620
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/parser.mjs
|
|
102543
102621
|
var PROTO_POLLUTION_PATTERNS = {
|
|
102544
102622
|
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*:/,
|
|
102545
102623
|
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*:/,
|
|
@@ -102619,7 +102697,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
102619
102697
|
return betterJSONParse(value, options);
|
|
102620
102698
|
}
|
|
102621
102699
|
|
|
102622
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102700
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
102623
102701
|
var now2 = () => Math.floor(Date.now() / 1000);
|
|
102624
102702
|
function normalizeSessionResponse(res) {
|
|
102625
102703
|
if (typeof res === "object" && res !== null && "data" in res && "error" in res)
|
|
@@ -102759,7 +102837,7 @@ function createSessionRefreshManager(opts) {
|
|
|
102759
102837
|
};
|
|
102760
102838
|
}
|
|
102761
102839
|
|
|
102762
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
102840
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.9+52327739b267453f/node_modules/@better-auth/core/dist/env/env-impl.mjs
|
|
102763
102841
|
var _envShim = Object.create(null);
|
|
102764
102842
|
var _getEnv = (useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis);
|
|
102765
102843
|
var env = new Proxy(_envShim, {
|
|
@@ -102819,7 +102897,7 @@ var ENV = Object.freeze({
|
|
|
102819
102897
|
return getEnvVar("BETTER_AUTH_TELEMETRY_ENDPOINT", "");
|
|
102820
102898
|
}
|
|
102821
102899
|
});
|
|
102822
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102900
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/utils/url.mjs
|
|
102823
102901
|
function checkHasPath(url) {
|
|
102824
102902
|
try {
|
|
102825
102903
|
return (new URL(url).pathname.replace(/\/+$/, "") || "/") !== "/";
|
|
@@ -102903,7 +102981,7 @@ function getOrigin(url) {
|
|
|
102903
102981
|
}
|
|
102904
102982
|
}
|
|
102905
102983
|
|
|
102906
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102984
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
102907
102985
|
var redirectPlugin = {
|
|
102908
102986
|
id: "redirect",
|
|
102909
102987
|
name: "Redirect",
|
|
@@ -102919,7 +102997,7 @@ var redirectPlugin = {
|
|
|
102919
102997
|
} }
|
|
102920
102998
|
};
|
|
102921
102999
|
|
|
102922
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
103000
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/session-atom.mjs
|
|
102923
103001
|
function getSessionAtom($fetch, options) {
|
|
102924
103002
|
const $signal = atom(false);
|
|
102925
103003
|
const session = useAuthQuery($signal, "/get-session", $fetch, { method: "GET" });
|
|
@@ -103575,7 +103653,7 @@ var betterFetch = async (url, options) => {
|
|
|
103575
103653
|
};
|
|
103576
103654
|
};
|
|
103577
103655
|
|
|
103578
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
103656
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/config.mjs
|
|
103579
103657
|
var resolvePublicAuthUrl = (basePath) => {
|
|
103580
103658
|
if (typeof process === "undefined")
|
|
103581
103659
|
return;
|
|
@@ -103685,12 +103763,12 @@ var getClientConfig = (options, loadEnv) => {
|
|
|
103685
103763
|
};
|
|
103686
103764
|
};
|
|
103687
103765
|
|
|
103688
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
103766
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
103689
103767
|
function isAtom(value) {
|
|
103690
103768
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
103691
103769
|
}
|
|
103692
103770
|
|
|
103693
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
103771
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/proxy.mjs
|
|
103694
103772
|
function getMethod3(path, knownPathMethods, args) {
|
|
103695
103773
|
const method = knownPathMethods[path];
|
|
103696
103774
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -103772,12 +103850,12 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
103772
103850
|
return createProxy();
|
|
103773
103851
|
}
|
|
103774
103852
|
|
|
103775
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
103853
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.9+52327739b267453f/node_modules/@better-auth/core/dist/utils/string.mjs
|
|
103776
103854
|
function capitalizeFirstLetter(str) {
|
|
103777
103855
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
103778
103856
|
}
|
|
103779
103857
|
|
|
103780
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
103858
|
+
// ../../node_modules/.bun/better-auth@1.6.9+5b359f2b516881c0/node_modules/better-auth/dist/client/vanilla.mjs
|
|
103781
103859
|
function createAuthClient(options) {
|
|
103782
103860
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
103783
103861
|
const resolvedHooks = {};
|
package/dist/types.d.ts
CHANGED
|
@@ -95,24 +95,7 @@ export interface CWIState {
|
|
|
95
95
|
fallbackRecommended?: boolean;
|
|
96
96
|
reason?: CWIHandshakeReason;
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
export interface CWIRequestMessage {
|
|
100
|
-
type: 'CWI';
|
|
101
|
-
isInvocation: true;
|
|
102
|
-
id: string;
|
|
103
|
-
call: string;
|
|
104
|
-
args?: unknown;
|
|
105
|
-
}
|
|
106
|
-
/** CWI invocation response sent from iframe to dApp */
|
|
107
|
-
export interface CWIResponseMessage {
|
|
108
|
-
type: 'CWI';
|
|
109
|
-
isInvocation: false;
|
|
110
|
-
id: string;
|
|
111
|
-
result?: unknown;
|
|
112
|
-
status?: 'error';
|
|
113
|
-
description?: string;
|
|
114
|
-
code?: number;
|
|
115
|
-
}
|
|
98
|
+
export type { CWIRequestMessage, CWIResponseMessage } from '@1sat/wallet';
|
|
116
99
|
/** CWI state updates posted by wallet iframe */
|
|
117
100
|
export interface CWIStateMessage {
|
|
118
101
|
type: 'CWI';
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB;;;OAGG;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AAc,CAAC,CAAA;IAC3D,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAG/D,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IACpE,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IACrE,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAGjE,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAGjE,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC,CAAA;IACpC,WAAW,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAA;IAC5D,SAAS,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IACxD,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;IAG3B,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IACnE,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAAA;IAGpD,YAAY,IAAI;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACzE,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAAA;CAClC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1sat/connect",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"description": "Connection layer for 1Sat wallet - popup flow, events, session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@1sat/wallet": "0.0.
|
|
31
|
+
"@1sat/wallet": "0.0.63",
|
|
32
32
|
"@sigma-auth/better-auth-plugin": "^0.0.84",
|
|
33
33
|
"better-auth": "^1.5.4",
|
|
34
34
|
"eventemitter3": "^5.0.1"
|