@1sat/connect 0.0.79 → 0.0.81
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 +24 -24
- package/package.json +41 -41
package/dist/index.js
CHANGED
|
@@ -102801,10 +102801,10 @@ function createWalletSession(result, options) {
|
|
|
102801
102801
|
};
|
|
102802
102802
|
return session;
|
|
102803
102803
|
}
|
|
102804
|
-
// ../../node_modules/.bun/nanostores@1.4.
|
|
102804
|
+
// ../../node_modules/.bun/nanostores@1.4.1/node_modules/nanostores/clean-stores/index.js
|
|
102805
102805
|
var clean2 = Symbol("clean");
|
|
102806
102806
|
|
|
102807
|
-
// ../../node_modules/.bun/nanostores@1.4.
|
|
102807
|
+
// ../../node_modules/.bun/nanostores@1.4.1/node_modules/nanostores/atom/index.js
|
|
102808
102808
|
var listenerQueue = [];
|
|
102809
102809
|
var lqIndex = 0;
|
|
102810
102810
|
var batchSeen = null;
|
|
@@ -102882,7 +102882,7 @@ var atom = (initialValue) => {
|
|
|
102882
102882
|
}
|
|
102883
102883
|
return $atom;
|
|
102884
102884
|
};
|
|
102885
|
-
// ../../node_modules/.bun/nanostores@1.4.
|
|
102885
|
+
// ../../node_modules/.bun/nanostores@1.4.1/node_modules/nanostores/lifecycle/index.js
|
|
102886
102886
|
var SET = 2;
|
|
102887
102887
|
var MOUNT = 5;
|
|
102888
102888
|
var UNMOUNT = 6;
|
|
@@ -102987,7 +102987,7 @@ var onMount = ($store, initialize) => {
|
|
|
102987
102987
|
};
|
|
102988
102988
|
});
|
|
102989
102989
|
};
|
|
102990
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
102990
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/equality.mjs
|
|
102991
102991
|
function isPlainObject(value) {
|
|
102992
102992
|
if (typeof value !== "object" || value === null)
|
|
102993
102993
|
return false;
|
|
@@ -103138,7 +103138,7 @@ var InternalAPIError = class extends Error {
|
|
|
103138
103138
|
var kAPIErrorHeaderSymbol = Symbol.for("better-call:api-error-headers");
|
|
103139
103139
|
var APIError = makeErrorForHideStackFrame(InternalAPIError, Error);
|
|
103140
103140
|
|
|
103141
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
103141
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.24+de40f753a75684d3/node_modules/@better-auth/core/dist/error/index.mjs
|
|
103142
103142
|
var BetterAuthError = class extends Error {
|
|
103143
103143
|
constructor(message, options) {
|
|
103144
103144
|
super(message, options);
|
|
@@ -103148,7 +103148,7 @@ var BetterAuthError = class extends Error {
|
|
|
103148
103148
|
}
|
|
103149
103149
|
};
|
|
103150
103150
|
|
|
103151
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
103151
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+f7d1acf83eac3b9f/node_modules/@sigma-auth/better-auth-plugin/dist/client/local-signer.js
|
|
103152
103152
|
class LocalServerSigner {
|
|
103153
103153
|
baseUrl;
|
|
103154
103154
|
timeout;
|
|
@@ -103376,7 +103376,7 @@ class LocalServerSigner {
|
|
|
103376
103376
|
}
|
|
103377
103377
|
}
|
|
103378
103378
|
|
|
103379
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
103379
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+f7d1acf83eac3b9f/node_modules/@sigma-auth/better-auth-plugin/dist/client/sigma-cwi.js
|
|
103380
103380
|
var isRecord3 = (v3) => typeof v3 === "object" && v3 !== null;
|
|
103381
103381
|
var isResponse3 = (v3) => isRecord3(v3) && v3.type === "CWI" && v3.isInvocation === false && typeof v3.id === "string";
|
|
103382
103382
|
var isState3 = (v3) => isRecord3(v3) && v3.type === "CWI" && isRecord3(v3.cwiState);
|
|
@@ -103617,7 +103617,7 @@ class SigmaCWISigner {
|
|
|
103617
103617
|
this.pending.clear();
|
|
103618
103618
|
}
|
|
103619
103619
|
}
|
|
103620
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
103620
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+f7d1acf83eac3b9f/node_modules/@sigma-auth/better-auth-plugin/dist/client/signer.js
|
|
103621
103621
|
class SigmaIframeSigner {
|
|
103622
103622
|
iframe = null;
|
|
103623
103623
|
pendingRequests = new Map;
|
|
@@ -104015,7 +104015,7 @@ class SigmaIframeSigner {
|
|
|
104015
104015
|
this.rejectAllPending(new Error("Signer destroyed"));
|
|
104016
104016
|
}
|
|
104017
104017
|
}
|
|
104018
|
-
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+
|
|
104018
|
+
// ../../node_modules/.bun/@sigma-auth+better-auth-plugin@0.0.92+f7d1acf83eac3b9f/node_modules/@sigma-auth/better-auth-plugin/dist/client/index.js
|
|
104019
104019
|
var signer = null;
|
|
104020
104020
|
var signerType = null;
|
|
104021
104021
|
var storedBapId = null;
|
|
@@ -104523,7 +104523,7 @@ Backend: ${status} (${endpoint})`;
|
|
|
104523
104523
|
};
|
|
104524
104524
|
};
|
|
104525
104525
|
|
|
104526
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
104526
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
104527
104527
|
var kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
104528
104528
|
var now = () => Math.floor(Date.now() / 1000);
|
|
104529
104529
|
var WindowBroadcastChannel = class {
|
|
@@ -104571,7 +104571,7 @@ function getGlobalBroadcastChannel(name = "better-auth.message") {
|
|
|
104571
104571
|
return globalThis[kBroadcastChannel];
|
|
104572
104572
|
}
|
|
104573
104573
|
|
|
104574
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
104574
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
104575
104575
|
var kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
104576
104576
|
var WindowFocusManager = class {
|
|
104577
104577
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -104603,7 +104603,7 @@ function getGlobalFocusManager() {
|
|
|
104603
104603
|
return globalThis[kFocusManager];
|
|
104604
104604
|
}
|
|
104605
104605
|
|
|
104606
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
104606
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/online-manager.mjs
|
|
104607
104607
|
var kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
104608
104608
|
var WindowOnlineManager = class {
|
|
104609
104609
|
listeners = /* @__PURE__ */ new Set;
|
|
@@ -104637,7 +104637,7 @@ function getGlobalOnlineManager() {
|
|
|
104637
104637
|
return globalThis[kOnlineManager];
|
|
104638
104638
|
}
|
|
104639
104639
|
|
|
104640
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
104640
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/parser.mjs
|
|
104641
104641
|
var PROTO_POLLUTION_PATTERNS = {
|
|
104642
104642
|
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*:/,
|
|
104643
104643
|
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*:/,
|
|
@@ -104715,7 +104715,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
104715
104715
|
return betterJSONParse(value, options);
|
|
104716
104716
|
}
|
|
104717
104717
|
|
|
104718
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
104718
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
104719
104719
|
var now2 = () => Math.floor(Date.now() / 1000);
|
|
104720
104720
|
var FOCUS_REFETCH_RATE_LIMIT_SECONDS = 5;
|
|
104721
104721
|
function createSessionRefreshManager(opts) {
|
|
@@ -104847,7 +104847,7 @@ function createSessionRefreshManager(opts) {
|
|
|
104847
104847
|
};
|
|
104848
104848
|
}
|
|
104849
104849
|
|
|
104850
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
104850
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.24+de40f753a75684d3/node_modules/@better-auth/core/dist/env/env-impl.mjs
|
|
104851
104851
|
var _envShim = Object.create(null);
|
|
104852
104852
|
var _getEnv = (useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis);
|
|
104853
104853
|
var env = new Proxy(_envShim, {
|
|
@@ -104907,7 +104907,7 @@ var ENV = Object.freeze({
|
|
|
104907
104907
|
return getEnvVar("BETTER_AUTH_TELEMETRY_ENDPOINT", "");
|
|
104908
104908
|
}
|
|
104909
104909
|
});
|
|
104910
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
104910
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/utils/url.mjs
|
|
104911
104911
|
var SLASH_CHAR_CODE = 47;
|
|
104912
104912
|
function trimTrailingSlashes(value) {
|
|
104913
104913
|
let end = value.length;
|
|
@@ -104998,7 +104998,7 @@ function getOrigin(url) {
|
|
|
104998
104998
|
}
|
|
104999
104999
|
}
|
|
105000
105000
|
|
|
105001
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
105001
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.24+de40f753a75684d3/node_modules/@better-auth/core/dist/utils/url.mjs
|
|
105002
105002
|
var DANGEROUS_URL_SCHEMES = [
|
|
105003
105003
|
"javascript:",
|
|
105004
105004
|
"data:",
|
|
@@ -105014,7 +105014,7 @@ function isSafeUrlScheme(value) {
|
|
|
105014
105014
|
return !DANGEROUS_URL_SCHEMES.includes(parsed.protocol);
|
|
105015
105015
|
}
|
|
105016
105016
|
|
|
105017
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
105017
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
105018
105018
|
var redirectPlugin = {
|
|
105019
105019
|
id: "redirect",
|
|
105020
105020
|
name: "Redirect",
|
|
@@ -105030,7 +105030,7 @@ var redirectPlugin = {
|
|
|
105030
105030
|
} }
|
|
105031
105031
|
};
|
|
105032
105032
|
|
|
105033
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
105033
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/session-atom.mjs
|
|
105034
105034
|
var isServer = () => typeof window === "undefined";
|
|
105035
105035
|
function normalizeSessionResponse(res) {
|
|
105036
105036
|
if (typeof res === "object" && res !== null && "data" in res && "error" in res)
|
|
@@ -105871,7 +105871,7 @@ var betterFetch = async (url, options) => {
|
|
|
105871
105871
|
};
|
|
105872
105872
|
};
|
|
105873
105873
|
|
|
105874
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
105874
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/config.mjs
|
|
105875
105875
|
var resolvePublicAuthUrl = (basePath) => {
|
|
105876
105876
|
if (typeof process === "undefined")
|
|
105877
105877
|
return;
|
|
@@ -105981,12 +105981,12 @@ var getClientConfig = (options, loadEnv) => {
|
|
|
105981
105981
|
};
|
|
105982
105982
|
};
|
|
105983
105983
|
|
|
105984
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
105984
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
105985
105985
|
function isAtom(value) {
|
|
105986
105986
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
105987
105987
|
}
|
|
105988
105988
|
|
|
105989
|
-
// ../../node_modules/.bun/@better-auth+core@1.6.
|
|
105989
|
+
// ../../node_modules/.bun/@better-auth+core@1.6.24+de40f753a75684d3/node_modules/@better-auth/core/dist/utils/string.mjs
|
|
105990
105990
|
function capitalizeFirstLetter(str) {
|
|
105991
105991
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
105992
105992
|
}
|
|
@@ -105999,7 +105999,7 @@ function toKebabCase(input) {
|
|
|
105999
105999
|
return splitWords(input).map((word) => word.toLowerCase()).join("-");
|
|
106000
106000
|
}
|
|
106001
106001
|
|
|
106002
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
106002
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/proxy.mjs
|
|
106003
106003
|
function getMethod3(path, knownPathMethods, args) {
|
|
106004
106004
|
const method = knownPathMethods[path];
|
|
106005
106005
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -106081,7 +106081,7 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
106081
106081
|
return createProxy();
|
|
106082
106082
|
}
|
|
106083
106083
|
|
|
106084
|
-
// ../../node_modules/.bun/better-auth@1.6.
|
|
106084
|
+
// ../../node_modules/.bun/better-auth@1.6.24+1e95e03b8c0caf29/node_modules/better-auth/dist/client/vanilla.mjs
|
|
106085
106085
|
function createAuthClient(options) {
|
|
106086
106086
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
106087
106087
|
const resolvedHooks = {};
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
2
|
+
"name": "@1sat/connect",
|
|
3
|
+
"version": "0.0.81",
|
|
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.96",
|
|
32
|
+
"@sigma-auth/better-auth-plugin": "^0.0.92",
|
|
33
|
+
"better-auth": "^1.6.18",
|
|
34
|
+
"eventemitter3": "^5.0.1"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@bsv/sdk": "^2.1.6"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@bsv/sdk": "^2.1.6",
|
|
41
|
+
"typescript": "^5.9.3"
|
|
42
|
+
}
|
|
43
43
|
}
|