@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/{chunk-LLP7KCG7.mjs → chunk-5BECN54C.mjs} +4 -3
- package/dist/{chunk-LLP7KCG7.mjs.map → chunk-5BECN54C.mjs.map} +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal.js +3 -2
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/tokens/clerkRequest.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
// src/constants.ts
|
|
32
32
|
var API_URL = "https://api.clerk.com";
|
|
33
33
|
var API_VERSION = "v1";
|
|
34
|
-
var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.
|
|
34
|
+
var USER_AGENT = `${"@clerk/backend"}@${"3.0.0-canary.v20251215042408"}`;
|
|
35
35
|
var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
|
|
36
36
|
var SUPPORTED_BAPI_VERSION = "2025-11-10";
|
|
37
37
|
var Attributes = {
|
|
@@ -4371,7 +4371,8 @@ var ClerkRequest = class extends Request {
|
|
|
4371
4371
|
}
|
|
4372
4372
|
};
|
|
4373
4373
|
var createClerkRequest = (...args) => {
|
|
4374
|
-
|
|
4374
|
+
const isClerkRequest = args[0] && typeof args[0] === "object" && "clerkUrl" in args[0] && "cookies" in args[0];
|
|
4375
|
+
return isClerkRequest ? args[0] : new ClerkRequest(...args);
|
|
4375
4376
|
};
|
|
4376
4377
|
|
|
4377
4378
|
// src/tokens/cookie.ts
|
|
@@ -5697,4 +5698,4 @@ export {
|
|
|
5697
5698
|
debugRequestState,
|
|
5698
5699
|
createAuthenticateRequest
|
|
5699
5700
|
};
|
|
5700
|
-
//# sourceMappingURL=chunk-
|
|
5701
|
+
//# sourceMappingURL=chunk-5BECN54C.mjs.map
|