autumn-js 1.5.3 → 1.5.5

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.
Files changed (41) hide show
  1. package/dist/backend/adapters/express.js +4 -3
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +4 -3
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +4 -3
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +4 -3
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +4 -3
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-M2M4XGR3.mjs → chunk-EJV4XYF2.mjs} +1 -1
  12. package/dist/backend/{chunk-IYAH3T5I.mjs → chunk-HNVAMCWE.mjs} +1 -1
  13. package/dist/backend/{chunk-TIMTH6KH.mjs → chunk-JBTI5ZG4.mjs} +1 -1
  14. package/dist/backend/{chunk-U6ZA3C2Q.mjs → chunk-OGT3KDLO.mjs} +1 -1
  15. package/dist/backend/{chunk-3Q6V6DG2.mjs → chunk-S7XG2ILR.mjs} +1 -1
  16. package/dist/backend/{chunk-VCDAISVX.mjs → chunk-WFVUFPBT.mjs} +1 -1
  17. package/dist/backend/{chunk-7BQ53LCL.mjs → chunk-ZKDGEDOA.mjs} +4 -3
  18. package/dist/backend/core/handlers/coreHandler.js +4 -3
  19. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  20. package/dist/backend/core/handlers/executeRoute.mjs +1 -1
  21. package/dist/backend/core/handlers/handleRouteByName.js +4 -3
  22. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  23. package/dist/backend/core/handlers/index.js +4 -3
  24. package/dist/backend/core/handlers/index.mjs +4 -4
  25. package/dist/backend/core/index.js +4 -3
  26. package/dist/backend/core/index.mjs +6 -6
  27. package/dist/backend/core/routes/index.mjs +1 -1
  28. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  29. package/dist/backend/core/utils/index.mjs +3 -3
  30. package/dist/backend/index.js +4 -3
  31. package/dist/backend/index.mjs +6 -6
  32. package/dist/better-auth/{chunk-ZDLPFH2D.mjs → chunk-TBLGR7LG.mjs} +4 -3
  33. package/dist/better-auth/index.js +4 -3
  34. package/dist/better-auth/index.mjs +1 -1
  35. package/dist/better-auth/utils/handleBetterAuthRoute.js +4 -3
  36. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  37. package/dist/better-auth/utils/index.js +4 -3
  38. package/dist/better-auth/utils/index.mjs +1 -1
  39. package/dist/sdk/index.js +4 -3
  40. package/dist/sdk/index.mjs +4 -3
  41. package/package.json +2 -2
@@ -50812,7 +50812,7 @@ var edgeHTTPClientOf = ({
50812
50812
  };
50813
50813
 
50814
50814
  // ../sdk/src/hooks/edge/edgeHook.ts
50815
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50815
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50816
50816
  var EdgeHook = class {
50817
50817
  sdkInit(opts) {
50818
50818
  const bases = edgeBasesOf({ options: opts });
@@ -50906,10 +50906,11 @@ var FailOpenHook = class {
50906
50906
 
50907
50907
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50908
50908
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50909
- var isWriteCheck = ({
50909
+ var isWrite = ({
50910
50910
  operationID,
50911
50911
  body
50912
50912
  }) => {
50913
+ if (operationID === "finalizeLock") return true;
50913
50914
  if (operationID !== "check" || typeof body !== "string") return false;
50914
50915
  try {
50915
50916
  const sent = JSON.parse(body);
@@ -50922,7 +50923,7 @@ var IdempotencyKeyHook = class {
50922
50923
  beforeCreateRequest(hookCtx, input) {
50923
50924
  const options = hookCtx.options;
50924
50925
  if (!options.useEdge) return input;
50925
- if (!isWriteCheck({
50926
+ if (!isWrite({
50926
50927
  operationID: hookCtx.operationID,
50927
50928
  body: input.options?.body
50928
50929
  }))
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-IYAH3T5I.mjs";
3
+ } from "../chunk-HNVAMCWE.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-U6ZA3C2Q.mjs";
7
- import "../chunk-TIMTH6KH.mjs";
8
- import "../chunk-7BQ53LCL.mjs";
6
+ import "../chunk-OGT3KDLO.mjs";
7
+ import "../chunk-JBTI5ZG4.mjs";
8
+ import "../chunk-ZKDGEDOA.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
13
13
  import "../chunk-UAR3TMWI.mjs";
14
14
  import "../chunk-ZRT6PJPJ.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
16
  import "../chunk-VZIMT7AO.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -50812,7 +50812,7 @@ var edgeHTTPClientOf = ({
50812
50812
  };
50813
50813
 
50814
50814
  // ../sdk/src/hooks/edge/edgeHook.ts
50815
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50815
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50816
50816
  var EdgeHook = class {
50817
50817
  sdkInit(opts) {
50818
50818
  const bases = edgeBasesOf({ options: opts });
@@ -50906,10 +50906,11 @@ var FailOpenHook = class {
50906
50906
 
50907
50907
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50908
50908
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50909
- var isWriteCheck = ({
50909
+ var isWrite = ({
50910
50910
  operationID,
50911
50911
  body
50912
50912
  }) => {
50913
+ if (operationID === "finalizeLock") return true;
50913
50914
  if (operationID !== "check" || typeof body !== "string") return false;
50914
50915
  try {
50915
50916
  const sent = JSON.parse(body);
@@ -50922,7 +50923,7 @@ var IdempotencyKeyHook = class {
50922
50923
  beforeCreateRequest(hookCtx, input) {
50923
50924
  const options = hookCtx.options;
50924
50925
  if (!options.useEdge) return input;
50925
- if (!isWriteCheck({
50926
+ if (!isWrite({
50926
50927
  operationID: hookCtx.operationID,
50927
50928
  body: input.options?.body
50928
50929
  }))
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-3Q6V6DG2.mjs";
3
+ } from "../chunk-S7XG2ILR.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-U6ZA3C2Q.mjs";
7
- import "../chunk-TIMTH6KH.mjs";
8
- import "../chunk-7BQ53LCL.mjs";
6
+ import "../chunk-OGT3KDLO.mjs";
7
+ import "../chunk-JBTI5ZG4.mjs";
8
+ import "../chunk-ZKDGEDOA.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
13
13
  import "../chunk-UAR3TMWI.mjs";
14
14
  import "../chunk-ZRT6PJPJ.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
16
  import "../chunk-VZIMT7AO.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -50812,7 +50812,7 @@ var edgeHTTPClientOf = ({
50812
50812
  };
50813
50813
 
50814
50814
  // ../sdk/src/hooks/edge/edgeHook.ts
50815
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50815
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50816
50816
  var EdgeHook = class {
50817
50817
  sdkInit(opts) {
50818
50818
  const bases = edgeBasesOf({ options: opts });
@@ -50906,10 +50906,11 @@ var FailOpenHook = class {
50906
50906
 
50907
50907
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50908
50908
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50909
- var isWriteCheck = ({
50909
+ var isWrite = ({
50910
50910
  operationID,
50911
50911
  body
50912
50912
  }) => {
50913
+ if (operationID === "finalizeLock") return true;
50913
50914
  if (operationID !== "check" || typeof body !== "string") return false;
50914
50915
  try {
50915
50916
  const sent = JSON.parse(body);
@@ -50922,7 +50923,7 @@ var IdempotencyKeyHook = class {
50922
50923
  beforeCreateRequest(hookCtx, input) {
50923
50924
  const options = hookCtx.options;
50924
50925
  if (!options.useEdge) return input;
50925
- if (!isWriteCheck({
50926
+ if (!isWrite({
50926
50927
  operationID: hookCtx.operationID,
50927
50928
  body: input.options?.body
50928
50929
  }))
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-M2M4XGR3.mjs";
3
+ } from "../chunk-EJV4XYF2.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-U6ZA3C2Q.mjs";
7
- import "../chunk-TIMTH6KH.mjs";
8
- import "../chunk-7BQ53LCL.mjs";
6
+ import "../chunk-OGT3KDLO.mjs";
7
+ import "../chunk-JBTI5ZG4.mjs";
8
+ import "../chunk-ZKDGEDOA.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
13
13
  import "../chunk-UAR3TMWI.mjs";
14
14
  import "../chunk-ZRT6PJPJ.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
16
  import "../chunk-VZIMT7AO.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -50815,7 +50815,7 @@ var edgeHTTPClientOf = ({
50815
50815
  };
50816
50816
 
50817
50817
  // ../sdk/src/hooks/edge/edgeHook.ts
50818
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50818
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50819
50819
  var EdgeHook = class {
50820
50820
  sdkInit(opts) {
50821
50821
  const bases = edgeBasesOf({ options: opts });
@@ -50909,10 +50909,11 @@ var FailOpenHook = class {
50909
50909
 
50910
50910
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50911
50911
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50912
- var isWriteCheck = ({
50912
+ var isWrite = ({
50913
50913
  operationID,
50914
50914
  body
50915
50915
  }) => {
50916
+ if (operationID === "finalizeLock") return true;
50916
50917
  if (operationID !== "check" || typeof body !== "string") return false;
50917
50918
  try {
50918
50919
  const sent = JSON.parse(body);
@@ -50925,7 +50926,7 @@ var IdempotencyKeyHook = class {
50925
50926
  beforeCreateRequest(hookCtx, input) {
50926
50927
  const options = hookCtx.options;
50927
50928
  if (!options.useEdge) return input;
50928
- if (!isWriteCheck({
50929
+ if (!isWrite({
50929
50930
  operationID: hookCtx.operationID,
50930
50931
  body: input.options?.body
50931
50932
  }))
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-IYAH3T5I.mjs";
3
+ } from "../chunk-HNVAMCWE.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-3Q6V6DG2.mjs";
6
+ } from "../chunk-S7XG2ILR.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-M2M4XGR3.mjs";
9
+ } from "../chunk-EJV4XYF2.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-VCDAISVX.mjs";
12
+ } from "../chunk-WFVUFPBT.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-U6ZA3C2Q.mjs";
16
- import "../chunk-TIMTH6KH.mjs";
17
- import "../chunk-7BQ53LCL.mjs";
15
+ import "../chunk-OGT3KDLO.mjs";
16
+ import "../chunk-JBTI5ZG4.mjs";
17
+ import "../chunk-ZKDGEDOA.mjs";
18
18
  import "../chunk-MOHYGUMA.mjs";
19
19
  import "../chunk-TBQ27LIK.mjs";
20
20
  import "../chunk-J44WR3QZ.mjs";
@@ -22,8 +22,8 @@ import "../chunk-TSF4YCUO.mjs";
22
22
  import "../chunk-UAR3TMWI.mjs";
23
23
  import "../chunk-ZRT6PJPJ.mjs";
24
24
  import "../chunk-OTXV5FY7.mjs";
25
- import "../chunk-I7CD6EB6.mjs";
26
25
  import "../chunk-VZIMT7AO.mjs";
26
+ import "../chunk-I7CD6EB6.mjs";
27
27
  import "../chunk-N7NFYY54.mjs";
28
28
  export {
29
29
  autumnHandler as expressAutumnHandler,
@@ -50813,7 +50813,7 @@ var edgeHTTPClientOf = ({
50813
50813
  };
50814
50814
 
50815
50815
  // ../sdk/src/hooks/edge/edgeHook.ts
50816
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50816
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50817
50817
  var EdgeHook = class {
50818
50818
  sdkInit(opts) {
50819
50819
  const bases = edgeBasesOf({ options: opts });
@@ -50907,10 +50907,11 @@ var FailOpenHook = class {
50907
50907
 
50908
50908
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50909
50909
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50910
- var isWriteCheck = ({
50910
+ var isWrite = ({
50911
50911
  operationID,
50912
50912
  body
50913
50913
  }) => {
50914
+ if (operationID === "finalizeLock") return true;
50914
50915
  if (operationID !== "check" || typeof body !== "string") return false;
50915
50916
  try {
50916
50917
  const sent = JSON.parse(body);
@@ -50923,7 +50924,7 @@ var IdempotencyKeyHook = class {
50923
50924
  beforeCreateRequest(hookCtx, input) {
50924
50925
  const options = hookCtx.options;
50925
50926
  if (!options.useEdge) return input;
50926
- if (!isWriteCheck({
50927
+ if (!isWrite({
50927
50928
  operationID: hookCtx.operationID,
50928
50929
  body: input.options?.body
50929
50930
  }))
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-VCDAISVX.mjs";
3
+ } from "../chunk-WFVUFPBT.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-U6ZA3C2Q.mjs";
7
- import "../chunk-TIMTH6KH.mjs";
8
- import "../chunk-7BQ53LCL.mjs";
6
+ import "../chunk-OGT3KDLO.mjs";
7
+ import "../chunk-JBTI5ZG4.mjs";
8
+ import "../chunk-ZKDGEDOA.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -13,8 +13,8 @@ import "../chunk-TSF4YCUO.mjs";
13
13
  import "../chunk-UAR3TMWI.mjs";
14
14
  import "../chunk-ZRT6PJPJ.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
- import "../chunk-I7CD6EB6.mjs";
17
16
  import "../chunk-VZIMT7AO.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-TIMTH6KH.mjs";
3
+ } from "./chunk-JBTI5ZG4.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-TIMTH6KH.mjs";
3
+ } from "./chunk-JBTI5ZG4.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-7BQ53LCL.mjs";
3
+ } from "./chunk-ZKDGEDOA.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-7BQ53LCL.mjs";
3
+ } from "./chunk-ZKDGEDOA.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-TIMTH6KH.mjs";
3
+ } from "./chunk-JBTI5ZG4.mjs";
4
4
 
5
5
  // src/backend/adapters/fetch.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-TIMTH6KH.mjs";
3
+ } from "./chunk-JBTI5ZG4.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -50757,7 +50757,7 @@ var edgeHTTPClientOf = ({
50757
50757
  };
50758
50758
 
50759
50759
  // ../sdk/src/hooks/edge/edgeHook.ts
50760
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50760
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50761
50761
  var EdgeHook = class {
50762
50762
  sdkInit(opts) {
50763
50763
  const bases = edgeBasesOf({ options: opts });
@@ -50851,10 +50851,11 @@ var FailOpenHook = class {
50851
50851
 
50852
50852
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50853
50853
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50854
- var isWriteCheck = ({
50854
+ var isWrite = ({
50855
50855
  operationID,
50856
50856
  body
50857
50857
  }) => {
50858
+ if (operationID === "finalizeLock") return true;
50858
50859
  if (operationID !== "check" || typeof body !== "string") return false;
50859
50860
  try {
50860
50861
  const sent = JSON.parse(body);
@@ -50867,7 +50868,7 @@ var IdempotencyKeyHook = class {
50867
50868
  beforeCreateRequest(hookCtx, input) {
50868
50869
  const options = hookCtx.options;
50869
50870
  if (!options.useEdge) return input;
50870
- if (!isWriteCheck({
50871
+ if (!isWrite({
50871
50872
  operationID: hookCtx.operationID,
50872
50873
  body: input.options?.body
50873
50874
  }))
@@ -50812,7 +50812,7 @@ var edgeHTTPClientOf = ({
50812
50812
  };
50813
50813
 
50814
50814
  // ../sdk/src/hooks/edge/edgeHook.ts
50815
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50815
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50816
50816
  var EdgeHook = class {
50817
50817
  sdkInit(opts) {
50818
50818
  const bases = edgeBasesOf({ options: opts });
@@ -50906,10 +50906,11 @@ var FailOpenHook = class {
50906
50906
 
50907
50907
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50908
50908
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50909
- var isWriteCheck = ({
50909
+ var isWrite = ({
50910
50910
  operationID,
50911
50911
  body
50912
50912
  }) => {
50913
+ if (operationID === "finalizeLock") return true;
50913
50914
  if (operationID !== "check" || typeof body !== "string") return false;
50914
50915
  try {
50915
50916
  const sent = JSON.parse(body);
@@ -50922,7 +50923,7 @@ var IdempotencyKeyHook = class {
50922
50923
  beforeCreateRequest(hookCtx, input) {
50923
50924
  const options = hookCtx.options;
50924
50925
  if (!options.useEdge) return input;
50925
- if (!isWriteCheck({
50926
+ if (!isWrite({
50926
50927
  operationID: hookCtx.operationID,
50927
50928
  body: input.options?.body
50928
50929
  }))
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "../../chunk-TIMTH6KH.mjs";
4
- import "../../chunk-7BQ53LCL.mjs";
3
+ } from "../../chunk-JBTI5ZG4.mjs";
4
+ import "../../chunk-ZKDGEDOA.mjs";
5
5
  import "../../chunk-MOHYGUMA.mjs";
6
6
  import "../../chunk-TBQ27LIK.mjs";
7
7
  import "../../chunk-J44WR3QZ.mjs";
@@ -9,8 +9,8 @@ import "../../chunk-TSF4YCUO.mjs";
9
9
  import "../../chunk-UAR3TMWI.mjs";
10
10
  import "../../chunk-ZRT6PJPJ.mjs";
11
11
  import "../../chunk-OTXV5FY7.mjs";
12
- import "../../chunk-I7CD6EB6.mjs";
13
12
  import "../../chunk-VZIMT7AO.mjs";
13
+ import "../../chunk-I7CD6EB6.mjs";
14
14
  import "../../chunk-N7NFYY54.mjs";
15
15
  export {
16
16
  createCoreHandler
@@ -4,8 +4,8 @@ import {
4
4
  import "../../chunk-TBQ27LIK.mjs";
5
5
  import "../../chunk-J44WR3QZ.mjs";
6
6
  import "../../chunk-OTXV5FY7.mjs";
7
- import "../../chunk-I7CD6EB6.mjs";
8
7
  import "../../chunk-VZIMT7AO.mjs";
8
+ import "../../chunk-I7CD6EB6.mjs";
9
9
  import "../../chunk-N7NFYY54.mjs";
10
10
  export {
11
11
  executeRoute
@@ -50812,7 +50812,7 @@ var edgeHTTPClientOf = ({
50812
50812
  };
50813
50813
 
50814
50814
  // ../sdk/src/hooks/edge/edgeHook.ts
50815
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50815
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50816
50816
  var EdgeHook = class {
50817
50817
  sdkInit(opts) {
50818
50818
  const bases = edgeBasesOf({ options: opts });
@@ -50906,10 +50906,11 @@ var FailOpenHook = class {
50906
50906
 
50907
50907
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50908
50908
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50909
- var isWriteCheck = ({
50909
+ var isWrite = ({
50910
50910
  operationID,
50911
50911
  body
50912
50912
  }) => {
50913
+ if (operationID === "finalizeLock") return true;
50913
50914
  if (operationID !== "check" || typeof body !== "string") return false;
50914
50915
  try {
50915
50916
  const sent = JSON.parse(body);
@@ -50922,7 +50923,7 @@ var IdempotencyKeyHook = class {
50922
50923
  beforeCreateRequest(hookCtx, input) {
50923
50924
  const options = hookCtx.options;
50924
50925
  if (!options.useEdge) return input;
50925
- if (!isWriteCheck({
50926
+ if (!isWrite({
50926
50927
  operationID: hookCtx.operationID,
50927
50928
  body: input.options?.body
50928
50929
  }))
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  handleRouteByName
3
- } from "../../chunk-U6ZA3C2Q.mjs";
4
- import "../../chunk-7BQ53LCL.mjs";
3
+ } from "../../chunk-OGT3KDLO.mjs";
4
+ import "../../chunk-ZKDGEDOA.mjs";
5
5
  import "../../chunk-MOHYGUMA.mjs";
6
6
  import "../../chunk-TBQ27LIK.mjs";
7
7
  import "../../chunk-J44WR3QZ.mjs";
8
8
  import "../../chunk-ZRT6PJPJ.mjs";
9
9
  import "../../chunk-OTXV5FY7.mjs";
10
- import "../../chunk-I7CD6EB6.mjs";
11
10
  import "../../chunk-VZIMT7AO.mjs";
11
+ import "../../chunk-I7CD6EB6.mjs";
12
12
  import "../../chunk-N7NFYY54.mjs";
13
13
  export {
14
14
  handleRouteByName
@@ -50816,7 +50816,7 @@ var edgeHTTPClientOf = ({
50816
50816
  };
50817
50817
 
50818
50818
  // ../sdk/src/hooks/edge/edgeHook.ts
50819
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50819
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50820
50820
  var EdgeHook = class {
50821
50821
  sdkInit(opts) {
50822
50822
  const bases = edgeBasesOf({ options: opts });
@@ -50910,10 +50910,11 @@ var FailOpenHook = class {
50910
50910
 
50911
50911
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50912
50912
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50913
- var isWriteCheck = ({
50913
+ var isWrite = ({
50914
50914
  operationID,
50915
50915
  body
50916
50916
  }) => {
50917
+ if (operationID === "finalizeLock") return true;
50917
50918
  if (operationID !== "check" || typeof body !== "string") return false;
50918
50919
  try {
50919
50920
  const sent = JSON.parse(body);
@@ -50926,7 +50927,7 @@ var IdempotencyKeyHook = class {
50926
50927
  beforeCreateRequest(hookCtx, input) {
50927
50928
  const options = hookCtx.options;
50928
50929
  if (!options.useEdge) return input;
50929
- if (!isWriteCheck({
50930
+ if (!isWrite({
50930
50931
  operationID: hookCtx.operationID,
50931
50932
  body: input.options?.body
50932
50933
  }))
@@ -1,11 +1,11 @@
1
1
  import "../../chunk-VXND2UDT.mjs";
2
2
  import {
3
3
  handleRouteByName
4
- } from "../../chunk-U6ZA3C2Q.mjs";
4
+ } from "../../chunk-OGT3KDLO.mjs";
5
5
  import {
6
6
  createCoreHandler
7
- } from "../../chunk-TIMTH6KH.mjs";
8
- import "../../chunk-7BQ53LCL.mjs";
7
+ } from "../../chunk-JBTI5ZG4.mjs";
8
+ import "../../chunk-ZKDGEDOA.mjs";
9
9
  import {
10
10
  executeRoute
11
11
  } from "../../chunk-MOHYGUMA.mjs";
@@ -19,8 +19,8 @@ import "../../chunk-TSF4YCUO.mjs";
19
19
  import "../../chunk-UAR3TMWI.mjs";
20
20
  import "../../chunk-ZRT6PJPJ.mjs";
21
21
  import "../../chunk-OTXV5FY7.mjs";
22
- import "../../chunk-I7CD6EB6.mjs";
23
22
  import "../../chunk-VZIMT7AO.mjs";
23
+ import "../../chunk-I7CD6EB6.mjs";
24
24
  import "../../chunk-N7NFYY54.mjs";
25
25
  export {
26
26
  createCoreHandler,
@@ -50820,7 +50820,7 @@ var edgeHTTPClientOf = ({
50820
50820
  };
50821
50821
 
50822
50822
  // ../sdk/src/hooks/edge/edgeHook.ts
50823
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50823
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50824
50824
  var EdgeHook = class {
50825
50825
  sdkInit(opts) {
50826
50826
  const bases = edgeBasesOf({ options: opts });
@@ -50914,10 +50914,11 @@ var FailOpenHook = class {
50914
50914
 
50915
50915
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50916
50916
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50917
- var isWriteCheck = ({
50917
+ var isWrite = ({
50918
50918
  operationID,
50919
50919
  body
50920
50920
  }) => {
50921
+ if (operationID === "finalizeLock") return true;
50921
50922
  if (operationID !== "check" || typeof body !== "string") return false;
50922
50923
  try {
50923
50924
  const sent = JSON.parse(body);
@@ -50930,7 +50931,7 @@ var IdempotencyKeyHook = class {
50930
50931
  beforeCreateRequest(hookCtx, input) {
50931
50932
  const options = hookCtx.options;
50932
50933
  if (!options.useEdge) return input;
50933
- if (!isWriteCheck({
50934
+ if (!isWrite({
50934
50935
  operationID: hookCtx.operationID,
50935
50936
  body: input.options?.body
50936
50937
  }))
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
3
  import {
4
4
  handleRouteByName
5
- } from "../chunk-U6ZA3C2Q.mjs";
5
+ } from "../chunk-OGT3KDLO.mjs";
6
6
  import {
7
7
  createCoreHandler
8
- } from "../chunk-TIMTH6KH.mjs";
9
- import "../chunk-7BQ53LCL.mjs";
8
+ } from "../chunk-JBTI5ZG4.mjs";
9
+ import "../chunk-ZKDGEDOA.mjs";
10
10
  import "../chunk-MOHYGUMA.mjs";
11
11
  import "../chunk-TBQ27LIK.mjs";
12
12
  import "../chunk-J44WR3QZ.mjs";
@@ -18,12 +18,12 @@ import {
18
18
  routeConfigs
19
19
  } from "../chunk-ZRT6PJPJ.mjs";
20
20
  import "../chunk-OTXV5FY7.mjs";
21
- import {
22
- sanitizeBody
23
- } from "../chunk-I7CD6EB6.mjs";
24
21
  import {
25
22
  secretKeyCheck
26
23
  } from "../chunk-VZIMT7AO.mjs";
24
+ import {
25
+ sanitizeBody
26
+ } from "../chunk-I7CD6EB6.mjs";
27
27
  import {
28
28
  backendError,
29
29
  backendSuccess,
@@ -6,8 +6,8 @@ import {
6
6
  routeConfigs
7
7
  } from "../../chunk-ZRT6PJPJ.mjs";
8
8
  import "../../chunk-OTXV5FY7.mjs";
9
- import "../../chunk-I7CD6EB6.mjs";
10
9
  import "../../chunk-VZIMT7AO.mjs";
10
+ import "../../chunk-I7CD6EB6.mjs";
11
11
  import "../../chunk-N7NFYY54.mjs";
12
12
  export {
13
13
  buildRouter,
@@ -2,8 +2,8 @@ import {
2
2
  routeConfigs
3
3
  } from "../../chunk-ZRT6PJPJ.mjs";
4
4
  import "../../chunk-OTXV5FY7.mjs";
5
- import "../../chunk-I7CD6EB6.mjs";
6
5
  import "../../chunk-VZIMT7AO.mjs";
6
+ import "../../chunk-I7CD6EB6.mjs";
7
7
  import "../../chunk-N7NFYY54.mjs";
8
8
  export {
9
9
  routeConfigs
@@ -1,12 +1,12 @@
1
1
  import "../../chunk-OTXV5FY7.mjs";
2
+ import {
3
+ secretKeyCheck
4
+ } from "../../chunk-VZIMT7AO.mjs";
2
5
  import {
3
6
  CUSTOMER_PROTECTED_BODY_FIELDS,
4
7
  DEFAULT_PROTECTED_BODY_FIELDS,
5
8
  sanitizeBody
6
9
  } from "../../chunk-I7CD6EB6.mjs";
7
- import {
8
- secretKeyCheck
9
- } from "../../chunk-VZIMT7AO.mjs";
10
10
  import {
11
11
  backendError,
12
12
  backendSuccess,
@@ -50820,7 +50820,7 @@ var edgeHTTPClientOf = ({
50820
50820
  };
50821
50821
 
50822
50822
  // ../sdk/src/hooks/edge/edgeHook.ts
50823
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50823
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50824
50824
  var EdgeHook = class {
50825
50825
  sdkInit(opts) {
50826
50826
  const bases = edgeBasesOf({ options: opts });
@@ -50914,10 +50914,11 @@ var FailOpenHook = class {
50914
50914
 
50915
50915
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50916
50916
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50917
- var isWriteCheck = ({
50917
+ var isWrite = ({
50918
50918
  operationID,
50919
50919
  body
50920
50920
  }) => {
50921
+ if (operationID === "finalizeLock") return true;
50921
50922
  if (operationID !== "check" || typeof body !== "string") return false;
50922
50923
  try {
50923
50924
  const sent = JSON.parse(body);
@@ -50930,7 +50931,7 @@ var IdempotencyKeyHook = class {
50930
50931
  beforeCreateRequest(hookCtx, input) {
50931
50932
  const options = hookCtx.options;
50932
50933
  if (!options.useEdge) return input;
50933
- if (!isWriteCheck({
50934
+ if (!isWrite({
50934
50935
  operationID: hookCtx.operationID,
50935
50936
  body: input.options?.body
50936
50937
  }))
@@ -1,10 +1,10 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
- import "./chunk-U6ZA3C2Q.mjs";
3
+ import "./chunk-OGT3KDLO.mjs";
4
4
  import {
5
5
  createCoreHandler
6
- } from "./chunk-TIMTH6KH.mjs";
7
- import "./chunk-7BQ53LCL.mjs";
6
+ } from "./chunk-JBTI5ZG4.mjs";
7
+ import "./chunk-ZKDGEDOA.mjs";
8
8
  import "./chunk-MOHYGUMA.mjs";
9
9
  import "./chunk-TBQ27LIK.mjs";
10
10
  import "./chunk-J44WR3QZ.mjs";
@@ -16,12 +16,12 @@ import {
16
16
  routeConfigs
17
17
  } from "./chunk-ZRT6PJPJ.mjs";
18
18
  import "./chunk-OTXV5FY7.mjs";
19
- import {
20
- sanitizeBody
21
- } from "./chunk-I7CD6EB6.mjs";
22
19
  import {
23
20
  secretKeyCheck
24
21
  } from "./chunk-VZIMT7AO.mjs";
22
+ import {
23
+ sanitizeBody
24
+ } from "./chunk-I7CD6EB6.mjs";
25
25
  import {
26
26
  backendError,
27
27
  backendSuccess,
@@ -50794,7 +50794,7 @@ var edgeHTTPClientOf = ({
50794
50794
  };
50795
50795
 
50796
50796
  // ../sdk/src/hooks/edge/edgeHook.ts
50797
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50797
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50798
50798
  var EdgeHook = class {
50799
50799
  sdkInit(opts) {
50800
50800
  const bases = edgeBasesOf({ options: opts });
@@ -50888,10 +50888,11 @@ var FailOpenHook = class {
50888
50888
 
50889
50889
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50890
50890
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50891
- var isWriteCheck = ({
50891
+ var isWrite = ({
50892
50892
  operationID,
50893
50893
  body
50894
50894
  }) => {
50895
+ if (operationID === "finalizeLock") return true;
50895
50896
  if (operationID !== "check" || typeof body !== "string") return false;
50896
50897
  try {
50897
50898
  const sent = JSON.parse(body);
@@ -50904,7 +50905,7 @@ var IdempotencyKeyHook = class {
50904
50905
  beforeCreateRequest(hookCtx, input) {
50905
50906
  const options = hookCtx.options;
50906
50907
  if (!options.useEdge) return input;
50907
- if (!isWriteCheck({
50908
+ if (!isWrite({
50908
50909
  operationID: hookCtx.operationID,
50909
50910
  body: input.options?.body
50910
50911
  }))
@@ -61640,7 +61640,7 @@ var edgeHTTPClientOf = ({
61640
61640
  };
61641
61641
 
61642
61642
  // ../sdk/src/hooks/edge/edgeHook.ts
61643
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
61643
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
61644
61644
  var EdgeHook = class {
61645
61645
  sdkInit(opts) {
61646
61646
  const bases = edgeBasesOf({ options: opts });
@@ -61734,10 +61734,11 @@ var FailOpenHook = class {
61734
61734
 
61735
61735
  // ../sdk/src/hooks/idempotencyKeyHook.ts
61736
61736
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
61737
- var isWriteCheck = ({
61737
+ var isWrite = ({
61738
61738
  operationID,
61739
61739
  body
61740
61740
  }) => {
61741
+ if (operationID === "finalizeLock") return true;
61741
61742
  if (operationID !== "check" || typeof body !== "string") return false;
61742
61743
  try {
61743
61744
  const sent = JSON.parse(body);
@@ -61750,7 +61751,7 @@ var IdempotencyKeyHook = class {
61750
61751
  beforeCreateRequest(hookCtx, input) {
61751
61752
  const options = hookCtx.options;
61752
61753
  if (!options.useEdge) return input;
61753
- if (!isWriteCheck({
61754
+ if (!isWrite({
61754
61755
  operationID: hookCtx.operationID,
61755
61756
  body: input.options?.body
61756
61757
  }))
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XE5CQTPH.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "./chunk-ZDLPFH2D.mjs";
7
+ } from "./chunk-TBLGR7LG.mjs";
8
8
  import "./chunk-J2WYVGHS.mjs";
9
9
  import "./chunk-TE4V3OUW.mjs";
10
10
  import "./chunk-BT3EAYVW.mjs";
@@ -50813,7 +50813,7 @@ var edgeHTTPClientOf = ({
50813
50813
  };
50814
50814
 
50815
50815
  // ../sdk/src/hooks/edge/edgeHook.ts
50816
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
50816
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
50817
50817
  var EdgeHook = class {
50818
50818
  sdkInit(opts) {
50819
50819
  const bases = edgeBasesOf({ options: opts });
@@ -50907,10 +50907,11 @@ var FailOpenHook = class {
50907
50907
 
50908
50908
  // ../sdk/src/hooks/idempotencyKeyHook.ts
50909
50909
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
50910
- var isWriteCheck = ({
50910
+ var isWrite = ({
50911
50911
  operationID,
50912
50912
  body
50913
50913
  }) => {
50914
+ if (operationID === "finalizeLock") return true;
50914
50915
  if (operationID !== "check" || typeof body !== "string") return false;
50915
50916
  try {
50916
50917
  const sent = JSON.parse(body);
@@ -50923,7 +50924,7 @@ var IdempotencyKeyHook = class {
50923
50924
  beforeCreateRequest(hookCtx, input) {
50924
50925
  const options = hookCtx.options;
50925
50926
  if (!options.useEdge) return input;
50926
- if (!isWriteCheck({
50927
+ if (!isWrite({
50927
50928
  operationID: hookCtx.operationID,
50928
50929
  body: input.options?.body
50929
50930
  }))
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHandleBetterAuthRoute
3
- } from "../chunk-ZDLPFH2D.mjs";
3
+ } from "../chunk-TBLGR7LG.mjs";
4
4
  import "../chunk-J2WYVGHS.mjs";
5
5
  import "../chunk-TE4V3OUW.mjs";
6
6
  import "../chunk-BT3EAYVW.mjs";
@@ -61644,7 +61644,7 @@ var edgeHTTPClientOf = ({
61644
61644
  };
61645
61645
 
61646
61646
  // ../sdk/src/hooks/edge/edgeHook.ts
61647
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
61647
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
61648
61648
  var EdgeHook = class {
61649
61649
  sdkInit(opts) {
61650
61650
  const bases = edgeBasesOf({ options: opts });
@@ -61738,10 +61738,11 @@ var FailOpenHook = class {
61738
61738
 
61739
61739
  // ../sdk/src/hooks/idempotencyKeyHook.ts
61740
61740
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
61741
- var isWriteCheck = ({
61741
+ var isWrite = ({
61742
61742
  operationID,
61743
61743
  body
61744
61744
  }) => {
61745
+ if (operationID === "finalizeLock") return true;
61745
61746
  if (operationID !== "check" || typeof body !== "string") return false;
61746
61747
  try {
61747
61748
  const sent = JSON.parse(body);
@@ -61754,7 +61755,7 @@ var IdempotencyKeyHook = class {
61754
61755
  beforeCreateRequest(hookCtx, input) {
61755
61756
  const options = hookCtx.options;
61756
61757
  if (!options.useEdge) return input;
61757
- if (!isWriteCheck({
61758
+ if (!isWrite({
61758
61759
  operationID: hookCtx.operationID,
61759
61760
  body: input.options?.body
61760
61761
  }))
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-XE5CQTPH.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-ZDLPFH2D.mjs";
7
+ } from "../chunk-TBLGR7LG.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";
package/dist/sdk/index.js CHANGED
@@ -71130,7 +71130,7 @@ var edgeHTTPClientOf = ({
71130
71130
  };
71131
71131
 
71132
71132
  // ../sdk/src/hooks/edge/edgeHook.ts
71133
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
71133
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
71134
71134
  var EdgeHook = class {
71135
71135
  sdkInit(opts) {
71136
71136
  const bases = edgeBasesOf({ options: opts });
@@ -71226,10 +71226,11 @@ var FailOpenHook = class {
71226
71226
 
71227
71227
  // ../sdk/src/hooks/idempotencyKeyHook.ts
71228
71228
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
71229
- var isWriteCheck = ({
71229
+ var isWrite = ({
71230
71230
  operationID,
71231
71231
  body
71232
71232
  }) => {
71233
+ if (operationID === "finalizeLock") return true;
71233
71234
  if (operationID !== "check" || typeof body !== "string") return false;
71234
71235
  try {
71235
71236
  const sent = JSON.parse(body);
@@ -71242,7 +71243,7 @@ var IdempotencyKeyHook = class {
71242
71243
  beforeCreateRequest(hookCtx, input) {
71243
71244
  const options = hookCtx.options;
71244
71245
  if (!options.useEdge) return input;
71245
- if (!isWriteCheck({
71246
+ if (!isWrite({
71246
71247
  operationID: hookCtx.operationID,
71247
71248
  body: input.options?.body
71248
71249
  }))
@@ -71107,7 +71107,7 @@ var edgeHTTPClientOf = ({
71107
71107
  };
71108
71108
 
71109
71109
  // ../sdk/src/hooks/edge/edgeHook.ts
71110
- var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check"]);
71110
+ var EDGE_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "finalizeLock"]);
71111
71111
  var EdgeHook = class {
71112
71112
  sdkInit(opts) {
71113
71113
  const bases = edgeBasesOf({ options: opts });
@@ -71203,10 +71203,11 @@ var FailOpenHook = class {
71203
71203
 
71204
71204
  // ../sdk/src/hooks/idempotencyKeyHook.ts
71205
71205
  var IDEMPOTENCY_KEY_HEADER = "Idempotency-Key";
71206
- var isWriteCheck = ({
71206
+ var isWrite = ({
71207
71207
  operationID,
71208
71208
  body
71209
71209
  }) => {
71210
+ if (operationID === "finalizeLock") return true;
71210
71211
  if (operationID !== "check" || typeof body !== "string") return false;
71211
71212
  try {
71212
71213
  const sent = JSON.parse(body);
@@ -71219,7 +71220,7 @@ var IdempotencyKeyHook = class {
71219
71220
  beforeCreateRequest(hookCtx, input) {
71220
71221
  const options = hookCtx.options;
71221
71222
  if (!options.useEdge) return input;
71222
- if (!isWriteCheck({
71223
+ if (!isWrite({
71223
71224
  operationID: hookCtx.operationID,
71224
71225
  body: input.options?.body
71225
71226
  }))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "autumn-js",
3
3
  "description": "Autumn JS Library",
4
- "version": "1.5.3",
4
+ "version": "1.5.5",
5
5
  "repository": "github:useautumn/autumn",
6
6
  "homepage": "https://docs.useautumn.com",
7
7
  "main": "./dist/sdk/index.js",
@@ -126,5 +126,5 @@
126
126
  "optional": true
127
127
  }
128
128
  },
129
- "gitHead": "575b617d3f90f9c9e572d70246924df7fa4b5993"
129
+ "gitHead": "a91bb58b19ff32b7a5e922b7a48868dc0d0f468b"
130
130
  }