@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 CHANGED
@@ -705,7 +705,7 @@ function createCimdResolver(cimdOptions) {
705
705
  }
706
706
  //#endregion
707
707
  //#region src/version.ts
708
- const PACKAGE_VERSION = "1.7.2";
708
+ const PACKAGE_VERSION = "1.7.4";
709
709
  //#endregion
710
710
  //#region src/index.ts
711
711
  /**
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
- lookup: (_hostname, _options, callback) => {
50
- callback(null, pinnedAddress.address, pinnedAddress.family);
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.2",
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.2",
62
- "@better-auth/mcp": "1.7.2",
63
- "@better-auth/oauth-provider": "1.7.2",
64
- "better-auth": "1.7.2"
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.2",
69
- "@better-auth/oauth-provider": "^1.7.2",
70
- "better-auth": "^1.7.2"
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",