@clerk/backend 3.0.0-canary.v20251213192802 → 3.0.0-canary.v20251213231137

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
@@ -2,7 +2,7 @@ import {
2
2
  createAuthenticateRequest,
3
3
  createBackendApiClient,
4
4
  verifyToken
5
- } from "./chunk-LLP7KCG7.mjs";
5
+ } from "./chunk-7BDIPKYC.mjs";
6
6
  import "./chunk-YBVFDYDR.mjs";
7
7
  import {
8
8
  withLegacyReturn
package/dist/internal.js CHANGED
@@ -56,7 +56,7 @@ module.exports = __toCommonJS(internal_exports);
56
56
  // src/constants.ts
57
57
  var API_URL = "https://api.clerk.com";
58
58
  var API_VERSION = "v1";
59
- var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251213192802"}`;
59
+ var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251213231137"}`;
60
60
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
61
61
  var SUPPORTED_BAPI_VERSION = "2025-11-10";
62
62
  var Attributes = {
@@ -4852,7 +4852,8 @@ var ClerkRequest = class extends Request {
4852
4852
  }
4853
4853
  };
4854
4854
  var createClerkRequest = (...args) => {
4855
- return args[0] instanceof ClerkRequest ? args[0] : new ClerkRequest(...args);
4855
+ const isClerkRequest = args[0] && typeof args[0] === "object" && "clerkUrl" in args[0] && "cookies" in args[0];
4856
+ return isClerkRequest ? args[0] : new ClerkRequest(...args);
4856
4857
  };
4857
4858
 
4858
4859
  // src/tokens/cookie.ts