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

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 CHANGED
@@ -1691,7 +1691,7 @@ var snakecase_keys_default = snakecaseKeys;
1691
1691
  // src/constants.ts
1692
1692
  var API_URL = "https://api.clerk.com";
1693
1693
  var API_VERSION = "v1";
1694
- var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251213192802"}`;
1694
+ var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251215042408"}`;
1695
1695
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
1696
1696
  var SUPPORTED_BAPI_VERSION = "2025-11-10";
1697
1697
  var Attributes = {
@@ -4349,7 +4349,8 @@ var ClerkRequest = class extends Request {
4349
4349
  }
4350
4350
  };
4351
4351
  var createClerkRequest = (...args) => {
4352
- return args[0] instanceof ClerkRequest ? args[0] : new ClerkRequest(...args);
4352
+ const isClerkRequest = args[0] && typeof args[0] === "object" && "clerkUrl" in args[0] && "cookies" in args[0];
4353
+ return isClerkRequest ? args[0] : new ClerkRequest(...args);
4353
4354
  };
4354
4355
 
4355
4356
  // src/internal.ts