@better-auth/cimd 1.7.2 → 1.7.4
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.mjs +1 -1
- package/dist/node.mjs +13 -2
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -46,8 +46,19 @@ const fetchClientMetadataResource = async (input, init) => {
|
|
|
46
46
|
method: webRequest.method,
|
|
47
47
|
servername: isIP(url.hostname.replace(/^\[|\]$/g, "")) === 0 ? url.hostname : void 0,
|
|
48
48
|
signal,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Node requests all lookup results when automatic address-family
|
|
51
|
+
* selection is enabled. The callback must receive an address array for
|
|
52
|
+
* `all: true`, and the legacy address and family arguments otherwise.
|
|
53
|
+
* Both forms return only the previously validated address to preserve
|
|
54
|
+
* connection pinning.
|
|
55
|
+
*
|
|
56
|
+
* @see https://nodejs.org/api/net.html#socketconnectoptions-connectlistener
|
|
57
|
+
* @see https://nodejs.org/api/dns.html#dnslookuphostname-options-callback
|
|
58
|
+
*/
|
|
59
|
+
lookup: (_hostname, options, callback) => {
|
|
60
|
+
if (options.all) callback(null, [pinnedAddress]);
|
|
61
|
+
else callback(null, pinnedAddress.address, pinnedAddress.family);
|
|
51
62
|
}
|
|
52
63
|
}, (response) => {
|
|
53
64
|
const status = response.statusCode ?? 500;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/cimd",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Client ID Metadata Document plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"@modelcontextprotocol/server": "2.0.0",
|
|
59
59
|
"listhen": "^1.9.0",
|
|
60
60
|
"tsdown": "0.21.10",
|
|
61
|
-
"@better-auth/core": "1.7.
|
|
62
|
-
"@better-auth/mcp": "1.7.
|
|
63
|
-
"@better-auth/oauth-provider": "1.7.
|
|
64
|
-
"better-auth": "1.7.
|
|
61
|
+
"@better-auth/core": "1.7.4",
|
|
62
|
+
"@better-auth/mcp": "1.7.4",
|
|
63
|
+
"@better-auth/oauth-provider": "1.7.4",
|
|
64
|
+
"better-auth": "1.7.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"better-call": "1.4.0",
|
|
68
|
-
"@better-auth/core": "^1.7.
|
|
69
|
-
"@better-auth/oauth-provider": "^1.7.
|
|
70
|
-
"better-auth": "^1.7.
|
|
68
|
+
"@better-auth/core": "^1.7.4",
|
|
69
|
+
"@better-auth/oauth-provider": "^1.7.4",
|
|
70
|
+
"better-auth": "^1.7.4"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsdown",
|