@1sat/connect 0.0.84 → 0.0.85
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 +17 -18
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -106032,7 +106032,6 @@ var P1SAT_INTENTS = {
|
|
|
106032
106032
|
BSV21_DEPLOY: "bsv21.deploy"
|
|
106033
106033
|
};
|
|
106034
106034
|
var P1SAT_INTENT_IDS = new Set(Object.values(P1SAT_INTENTS));
|
|
106035
|
-
var OPNS_REGISTER_LOCK_PLACEHOLDER_HEX = "00".repeat(142);
|
|
106036
106035
|
var ORD_LOCK_PREFIX = "2097dfd76851bf465e8f715593b217714858bbe9570ff3bd5e33840a34e20ff0262102ba79df5f8ae7604a9830f03c7933028186aede0675a16f025dc4f8be8eec0382201008ce7480da41702918d1ec8e6849ba32b4d65b1e40dc669c31a1e6306b266c0000";
|
|
106037
106036
|
var ORD_LOCK_SUFFIX = "615179547a75537a537a537a0079537a75527a527a7575615579008763567901c161517957795779210ac407f0e4bd44bfc207355a778b046225a7068fc59ee7eda43ad905aadbffc800206c266b30e6a1319c66dc401e5bd6b432ba49688eecd118297041da8074ce081059795679615679aa0079610079517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e01007e81517a75615779567956795679567961537956795479577995939521414136d08c5ed2bf3ba048afe6dcaebafeffffffffffffffffffffffffffffff00517951796151795179970079009f63007952799367007968517a75517a75517a7561527a75517a517951795296a0630079527994527a75517a6853798277527982775379012080517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f517f7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e7c7e01205279947f7754537993527993013051797e527e54797e58797e527e53797e52797e57797e0079517a75517a75517a75517a75517a75517a75517a75517a75517a75517a75517a75517a75517a756100795779ac517a75517a75517a75517a75517a75517a75517a75517a75517a7561517a75517a756169587951797e58797eaa577961007982775179517958947f7551790128947f77517a75517a75618777777777777777777767557951876351795779a9876957795779ac777777777777777767006868";
|
|
106038
106037
|
var LOCK_PREFIX = "2097dfd76851bf465e8f715593b217714858bbe9570ff3bd5e33840a34e20ff0262102ba79df5f8ae7604a9830f03c7933028186aede0675a16f025dc4f8be8eec0382201008ce7480da41702918d1ec8e6849ba32b4d65b1e40dc669c31a1e6306b266c0000";
|
|
@@ -129179,7 +129178,7 @@ var onMount = ($store, initialize) => {
|
|
|
129179
129178
|
};
|
|
129180
129179
|
});
|
|
129181
129180
|
};
|
|
129182
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
129181
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/equality.mjs
|
|
129183
129182
|
function isPlainObject(value) {
|
|
129184
129183
|
if (typeof value !== "object" || value === null)
|
|
129185
129184
|
return false;
|
|
@@ -129340,7 +129339,7 @@ var BetterAuthError = class extends Error {
|
|
|
129340
129339
|
}
|
|
129341
129340
|
};
|
|
129342
129341
|
|
|
129343
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
129342
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+eed15e04171d9f72/node_modules/@sigma-auth/better-auth-plugin/dist/client/local-signer.js
|
|
129344
129343
|
class LocalServerSigner {
|
|
129345
129344
|
baseUrl;
|
|
129346
129345
|
timeout;
|
|
@@ -129568,7 +129567,7 @@ class LocalServerSigner {
|
|
|
129568
129567
|
}
|
|
129569
129568
|
}
|
|
129570
129569
|
|
|
129571
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
129570
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+eed15e04171d9f72/node_modules/@sigma-auth/better-auth-plugin/dist/client/sigma-cwi.js
|
|
129572
129571
|
var isRecord3 = (v3) => typeof v3 === "object" && v3 !== null;
|
|
129573
129572
|
var isResponse3 = (v3) => isRecord3(v3) && v3.type === "CWI" && v3.isInvocation === false && typeof v3.id === "string";
|
|
129574
129573
|
var isState3 = (v3) => isRecord3(v3) && v3.type === "CWI" && isRecord3(v3.cwiState);
|
|
@@ -129809,7 +129808,7 @@ class SigmaCWISigner {
|
|
|
129809
129808
|
this.pending.clear();
|
|
129810
129809
|
}
|
|
129811
129810
|
}
|
|
129812
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
129811
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+eed15e04171d9f72/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
|
|
129813
129812
|
class SigmaIframeSigner {
|
|
129814
129813
|
iframe = null;
|
|
129815
129814
|
pendingRequests = new Map;
|
|
@@ -130207,7 +130206,7 @@ class SigmaIframeSigner {
|
|
|
130207
130206
|
this.rejectAllPending(new Error("Signer destroyed"));
|
|
130208
130207
|
}
|
|
130209
130208
|
}
|
|
130210
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
130209
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+eed15e04171d9f72/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
|
|
130211
130210
|
var signer = null;
|
|
130212
130211
|
var signerType = null;
|
|
130213
130212
|
var storedBapId = null;
|
|
@@ -130715,7 +130714,7 @@ Backend: ${status} (${endpoint})`;
|
|
|
130715
130714
|
};
|
|
130716
130715
|
};
|
|
130717
130716
|
|
|
130718
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
130717
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
130719
130718
|
var kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
130720
130719
|
var now = () => Math.floor(Date.now() / 1000);
|
|
130721
130720
|
var WindowBroadcastChannel = class {
|
|
@@ -130763,7 +130762,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
|
|
|
130763
130762
|
return globalThis[kBroadcastChannel];
|
|
130764
130763
|
}
|
|
130765
130764
|
|
|
130766
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
130765
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
130767
130766
|
var kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
130768
130767
|
var WindowFocusManager = class {
|
|
130769
130768
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -130795,7 +130794,7 @@ function getGlobalFocusManager() {
|
|
|
130795
130794
|
return globalThis[kFocusManager];
|
|
130796
130795
|
}
|
|
130797
130796
|
|
|
130798
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
130797
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/online-manager.mjs
|
|
130799
130798
|
var kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
130800
130799
|
var WindowOnlineManager = class {
|
|
130801
130800
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -130829,7 +130828,7 @@ function getGlobalOnlineManager() {
|
|
|
130829
130828
|
return globalThis[kOnlineManager];
|
|
130830
130829
|
}
|
|
130831
130830
|
|
|
130832
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
130831
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/parser.mjs
|
|
130833
130832
|
var PROTO_POLLUTION_PATTERNS = {
|
|
130834
130833
|
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*:/,
|
|
130835
130834
|
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*:/,
|
|
@@ -130907,7 +130906,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
130907
130906
|
return betterJSONParse(value, options);
|
|
130908
130907
|
}
|
|
130909
130908
|
|
|
130910
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
130909
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
130911
130910
|
var now2 = () => Math.floor(Date.now() / 1000);
|
|
130912
130911
|
var FOCUS_REFETCH_RATE_LIMIT_SECONDS = 5;
|
|
130913
130912
|
function createSessionRefreshManager(opts) {
|
|
@@ -131099,7 +131098,7 @@ var ENV = Object.freeze({
|
|
|
131099
131098
|
return getEnvVar("BETTER_AUTH_TELEMETRY_ENDPOINT", "");
|
|
131100
131099
|
}
|
|
131101
131100
|
});
|
|
131102
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
131101
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/utils/url.mjs
|
|
131103
131102
|
var SLASH_CHAR_CODE = 47;
|
|
131104
131103
|
function trimTrailingSlashes(value) {
|
|
131105
131104
|
let end = value.length;
|
|
@@ -131206,7 +131205,7 @@ function isSafeUrlScheme(value) {
|
|
|
131206
131205
|
return !DANGEROUS_URL_SCHEMES.includes(parsed.protocol);
|
|
131207
131206
|
}
|
|
131208
131207
|
|
|
131209
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
131208
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
131210
131209
|
var redirectPlugin = {
|
|
131211
131210
|
id: "redirect",
|
|
131212
131211
|
name: "Redirect",
|
|
@@ -131222,7 +131221,7 @@ var redirectPlugin = {
|
|
|
131222
131221
|
} }
|
|
131223
131222
|
};
|
|
131224
131223
|
|
|
131225
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
131224
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/session-atom.mjs
|
|
131226
131225
|
var isServer = () => typeof window === "undefined";
|
|
131227
131226
|
function normalizeSessionResponse(res) {
|
|
131228
131227
|
if (typeof res === "object" && res !== null && "data" in res && "error" in res)
|
|
@@ -132063,7 +132062,7 @@ var betterFetch = async (url, options) => {
|
|
|
132063
132062
|
};
|
|
132064
132063
|
};
|
|
132065
132064
|
|
|
132066
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
132065
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/config.mjs
|
|
132067
132066
|
var resolvePublicAuthUrl = (basePath) => {
|
|
132068
132067
|
if (typeof process === "undefined")
|
|
132069
132068
|
return;
|
|
@@ -132173,7 +132172,7 @@ var getClientConfig = (options, loadEnv) => {
|
|
|
132173
132172
|
};
|
|
132174
132173
|
};
|
|
132175
132174
|
|
|
132176
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
132175
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
132177
132176
|
function isAtom(value) {
|
|
132178
132177
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
132179
132178
|
}
|
|
@@ -132191,7 +132190,7 @@ function toKebabCase(input) {
|
|
|
132191
132190
|
return splitWords(input).map((word) => word.toLowerCase()).join("-");
|
|
132192
132191
|
}
|
|
132193
132192
|
|
|
132194
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
132193
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/proxy.mjs
|
|
132195
132194
|
function getMethod3(path, knownPathMethods, args) {
|
|
132196
132195
|
const method = knownPathMethods[path];
|
|
132197
132196
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -132273,7 +132272,7 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
132273
132272
|
return createProxy();
|
|
132274
132273
|
}
|
|
132275
132274
|
|
|
132276
|
-
// ../../node_modules/.bun/better-auth@1.6.25+
|
|
132275
|
+
// ../../node_modules/.bun/better-auth@1.6.25+8ddc87490baacd42/node_modules/better-auth/dist/client/vanilla.mjs
|
|
132277
132276
|
function createAuthClient(options) {
|
|
132278
132277
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
132279
132278
|
const resolvedHooks = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1sat/connect",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
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.100",
|
|
32
32
|
"@sigma-auth/better-auth-plugin": "^0.0.92",
|
|
33
33
|
"better-auth": "^1.6.18",
|
|
34
34
|
"eventemitter3": "^5.0.1"
|