autumn-js 1.5.3 → 1.5.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/backend/adapters/express.js +4 -3
- package/dist/backend/adapters/express.mjs +7 -7
- package/dist/backend/adapters/fetch.js +4 -3
- package/dist/backend/adapters/fetch.mjs +7 -7
- package/dist/backend/adapters/hono.js +4 -3
- package/dist/backend/adapters/hono.mjs +7 -7
- package/dist/backend/adapters/index.js +4 -3
- package/dist/backend/adapters/index.mjs +10 -10
- package/dist/backend/adapters/next.js +4 -3
- package/dist/backend/adapters/next.mjs +7 -7
- package/dist/backend/{chunk-TIMTH6KH.mjs → chunk-D7QYCSUG.mjs} +3 -3
- package/dist/backend/{chunk-3Q6V6DG2.mjs → chunk-D7Z5ZPUV.mjs} +1 -1
- package/dist/backend/{chunk-VCDAISVX.mjs → chunk-G7XF7XPF.mjs} +1 -1
- package/dist/backend/{chunk-U6ZA3C2Q.mjs → chunk-H2IHYPDJ.mjs} +3 -3
- package/dist/backend/{chunk-IYAH3T5I.mjs → chunk-KMWCDS3R.mjs} +1 -1
- package/dist/backend/{chunk-M2M4XGR3.mjs → chunk-ZFK63DYU.mjs} +1 -1
- package/dist/backend/{chunk-7BQ53LCL.mjs → chunk-ZKDGEDOA.mjs} +4 -3
- package/dist/backend/core/handlers/coreHandler.js +4 -3
- package/dist/backend/core/handlers/coreHandler.mjs +5 -5
- package/dist/backend/core/handlers/executeRoute.mjs +2 -2
- package/dist/backend/core/handlers/handleRouteByName.js +4 -3
- package/dist/backend/core/handlers/handleRouteByName.mjs +5 -5
- package/dist/backend/core/handlers/index.js +4 -3
- package/dist/backend/core/handlers/index.mjs +6 -6
- package/dist/backend/core/index.js +4 -3
- package/dist/backend/core/index.mjs +8 -8
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/utils/index.mjs +5 -5
- package/dist/backend/index.js +4 -3
- package/dist/backend/index.mjs +8 -8
- package/dist/better-auth/{chunk-ZDLPFH2D.mjs → chunk-TBLGR7LG.mjs} +4 -3
- package/dist/better-auth/index.js +4 -3
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +4 -3
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +4 -3
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.js +4 -3
- package/dist/sdk/index.mjs +4 -3
- package/package.json +2 -2
- package/dist/backend/{chunk-ZRT6PJPJ.mjs → chunk-BJPNYTPU.mjs} +4 -4
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-OVAKKRI6.mjs} +3 -3
|
@@ -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
|
|
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 (!
|
|
50926
|
+
if (!isWrite({
|
|
50926
50927
|
operationID: hookCtx.operationID,
|
|
50927
50928
|
body: input.options?.body
|
|
50928
50929
|
}))
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KMWCDS3R.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-H2IHYPDJ.mjs";
|
|
7
|
+
import "../chunk-D7QYCSUG.mjs";
|
|
8
|
+
import "../chunk-ZKDGEDOA.mjs";
|
|
9
|
+
import "../chunk-OVAKKRI6.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-BJPNYTPU.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
18
17
|
import "../chunk-N7NFYY54.mjs";
|
|
18
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
21
21
|
};
|
|
@@ -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
|
|
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 (!
|
|
50926
|
+
if (!isWrite({
|
|
50926
50927
|
operationID: hookCtx.operationID,
|
|
50927
50928
|
body: input.options?.body
|
|
50928
50929
|
}))
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-D7Z5ZPUV.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-H2IHYPDJ.mjs";
|
|
7
|
+
import "../chunk-D7QYCSUG.mjs";
|
|
8
|
+
import "../chunk-ZKDGEDOA.mjs";
|
|
9
|
+
import "../chunk-OVAKKRI6.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-BJPNYTPU.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
18
17
|
import "../chunk-N7NFYY54.mjs";
|
|
18
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
21
21
|
};
|
|
@@ -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
|
|
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 (!
|
|
50926
|
+
if (!isWrite({
|
|
50926
50927
|
operationID: hookCtx.operationID,
|
|
50927
50928
|
body: input.options?.body
|
|
50928
50929
|
}))
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ZFK63DYU.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-H2IHYPDJ.mjs";
|
|
7
|
+
import "../chunk-D7QYCSUG.mjs";
|
|
8
|
+
import "../chunk-ZKDGEDOA.mjs";
|
|
9
|
+
import "../chunk-OVAKKRI6.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-BJPNYTPU.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
18
17
|
import "../chunk-N7NFYY54.mjs";
|
|
18
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
21
21
|
};
|
|
@@ -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
|
|
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 (!
|
|
50929
|
+
if (!isWrite({
|
|
50929
50930
|
operationID: hookCtx.operationID,
|
|
50930
50931
|
body: input.options?.body
|
|
50931
50932
|
}))
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KMWCDS3R.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-D7Z5ZPUV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-ZFK63DYU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-G7XF7XPF.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-H2IHYPDJ.mjs";
|
|
16
|
+
import "../chunk-D7QYCSUG.mjs";
|
|
17
|
+
import "../chunk-ZKDGEDOA.mjs";
|
|
18
|
+
import "../chunk-OVAKKRI6.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.mjs";
|
|
21
21
|
import "../chunk-TSF4YCUO.mjs";
|
|
22
22
|
import "../chunk-UAR3TMWI.mjs";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-BJPNYTPU.mjs";
|
|
24
24
|
import "../chunk-OTXV5FY7.mjs";
|
|
25
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
26
25
|
import "../chunk-VZIMT7AO.mjs";
|
|
27
26
|
import "../chunk-N7NFYY54.mjs";
|
|
27
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
28
28
|
export {
|
|
29
29
|
autumnHandler as expressAutumnHandler,
|
|
30
30
|
autumnHandler2 as fetchAutumnHandler,
|
|
@@ -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
|
|
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 (!
|
|
50927
|
+
if (!isWrite({
|
|
50927
50928
|
operationID: hookCtx.operationID,
|
|
50928
50929
|
body: input.options?.body
|
|
50929
50930
|
}))
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-G7XF7XPF.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-H2IHYPDJ.mjs";
|
|
7
|
+
import "../chunk-D7QYCSUG.mjs";
|
|
8
|
+
import "../chunk-ZKDGEDOA.mjs";
|
|
9
|
+
import "../chunk-OVAKKRI6.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-BJPNYTPU.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
17
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
18
17
|
import "../chunk-N7NFYY54.mjs";
|
|
18
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
21
21
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZKDGEDOA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
executeRoute
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OVAKKRI6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildRouter
|
|
9
9
|
} from "./chunk-UAR3TMWI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
routeConfigs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BJPNYTPU.mjs";
|
|
13
13
|
import {
|
|
14
14
|
secretKeyCheck
|
|
15
15
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZKDGEDOA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
executeRoute
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OVAKKRI6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
routeConfigs
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BJPNYTPU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
secretKeyCheck
|
|
12
12
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -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
|
|
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 (!
|
|
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
|
|
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 (!
|
|
50926
|
+
if (!isWrite({
|
|
50926
50927
|
operationID: hookCtx.operationID,
|
|
50927
50928
|
body: input.options?.body
|
|
50928
50929
|
}))
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-D7QYCSUG.mjs";
|
|
4
|
+
import "../../chunk-ZKDGEDOA.mjs";
|
|
5
|
+
import "../../chunk-OVAKKRI6.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
8
8
|
import "../../chunk-TSF4YCUO.mjs";
|
|
9
9
|
import "../../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-BJPNYTPU.mjs";
|
|
11
11
|
import "../../chunk-OTXV5FY7.mjs";
|
|
12
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
13
12
|
import "../../chunk-VZIMT7AO.mjs";
|
|
14
13
|
import "../../chunk-N7NFYY54.mjs";
|
|
14
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
15
15
|
export {
|
|
16
16
|
createCoreHandler
|
|
17
17
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeRoute
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OVAKKRI6.mjs";
|
|
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";
|
|
9
8
|
import "../../chunk-N7NFYY54.mjs";
|
|
9
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
10
10
|
export {
|
|
11
11
|
executeRoute
|
|
12
12
|
};
|
|
@@ -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
|
|
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 (!
|
|
50926
|
+
if (!isWrite({
|
|
50926
50927
|
operationID: hookCtx.operationID,
|
|
50927
50928
|
body: input.options?.body
|
|
50928
50929
|
}))
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-H2IHYPDJ.mjs";
|
|
4
|
+
import "../../chunk-ZKDGEDOA.mjs";
|
|
5
|
+
import "../../chunk-OVAKKRI6.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-BJPNYTPU.mjs";
|
|
9
9
|
import "../../chunk-OTXV5FY7.mjs";
|
|
10
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
11
10
|
import "../../chunk-VZIMT7AO.mjs";
|
|
12
11
|
import "../../chunk-N7NFYY54.mjs";
|
|
12
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
handleRouteByName
|
|
15
15
|
};
|
|
@@ -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
|
|
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 (!
|
|
50930
|
+
if (!isWrite({
|
|
50930
50931
|
operationID: hookCtx.operationID,
|
|
50931
50932
|
body: input.options?.body
|
|
50932
50933
|
}))
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
handleRouteByName
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-H2IHYPDJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-D7QYCSUG.mjs";
|
|
8
|
+
import "../../chunk-ZKDGEDOA.mjs";
|
|
9
9
|
import {
|
|
10
10
|
executeRoute
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-OVAKKRI6.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveIdentity
|
|
14
14
|
} from "../../chunk-TBQ27LIK.mjs";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "../../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../../chunk-TSF4YCUO.mjs";
|
|
19
19
|
import "../../chunk-UAR3TMWI.mjs";
|
|
20
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-BJPNYTPU.mjs";
|
|
21
21
|
import "../../chunk-OTXV5FY7.mjs";
|
|
22
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
23
22
|
import "../../chunk-VZIMT7AO.mjs";
|
|
24
23
|
import "../../chunk-N7NFYY54.mjs";
|
|
24
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
25
25
|
export {
|
|
26
26
|
createCoreHandler,
|
|
27
27
|
executeRoute,
|
|
@@ -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
|
|
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 (!
|
|
50934
|
+
if (!isWrite({
|
|
50934
50935
|
operationID: hookCtx.operationID,
|
|
50935
50936
|
body: input.options?.body
|
|
50936
50937
|
}))
|
|
@@ -2,12 +2,12 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-H2IHYPDJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-D7QYCSUG.mjs";
|
|
9
|
+
import "../chunk-ZKDGEDOA.mjs";
|
|
10
|
+
import "../chunk-OVAKKRI6.mjs";
|
|
11
11
|
import "../chunk-TBQ27LIK.mjs";
|
|
12
12
|
import "../chunk-J44WR3QZ.mjs";
|
|
13
13
|
import "../chunk-TSF4YCUO.mjs";
|
|
@@ -16,11 +16,8 @@ import {
|
|
|
16
16
|
} from "../chunk-UAR3TMWI.mjs";
|
|
17
17
|
import {
|
|
18
18
|
routeConfigs
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-BJPNYTPU.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";
|
|
@@ -29,6 +26,9 @@ import {
|
|
|
29
26
|
backendSuccess,
|
|
30
27
|
isBackendResult
|
|
31
28
|
} from "../chunk-N7NFYY54.mjs";
|
|
29
|
+
import {
|
|
30
|
+
sanitizeBody
|
|
31
|
+
} from "../chunk-I7CD6EB6.mjs";
|
|
32
32
|
export {
|
|
33
33
|
backendError,
|
|
34
34
|
backendSuccess,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../../chunk-UAR3TMWI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
routeConfigs
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-BJPNYTPU.mjs";
|
|
8
8
|
import "../../chunk-OTXV5FY7.mjs";
|
|
9
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
10
9
|
import "../../chunk-VZIMT7AO.mjs";
|
|
11
10
|
import "../../chunk-N7NFYY54.mjs";
|
|
11
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
12
12
|
export {
|
|
13
13
|
buildRouter,
|
|
14
14
|
routeConfigs
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeConfigs
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-BJPNYTPU.mjs";
|
|
4
4
|
import "../../chunk-OTXV5FY7.mjs";
|
|
5
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
6
5
|
import "../../chunk-VZIMT7AO.mjs";
|
|
7
6
|
import "../../chunk-N7NFYY54.mjs";
|
|
7
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
routeConfigs
|
|
10
10
|
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import "../../chunk-OTXV5FY7.mjs";
|
|
2
|
-
import {
|
|
3
|
-
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
4
|
-
DEFAULT_PROTECTED_BODY_FIELDS,
|
|
5
|
-
sanitizeBody
|
|
6
|
-
} from "../../chunk-I7CD6EB6.mjs";
|
|
7
2
|
import {
|
|
8
3
|
secretKeyCheck
|
|
9
4
|
} from "../../chunk-VZIMT7AO.mjs";
|
|
@@ -12,6 +7,11 @@ import {
|
|
|
12
7
|
backendSuccess,
|
|
13
8
|
isBackendResult
|
|
14
9
|
} from "../../chunk-N7NFYY54.mjs";
|
|
10
|
+
import {
|
|
11
|
+
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
12
|
+
DEFAULT_PROTECTED_BODY_FIELDS,
|
|
13
|
+
sanitizeBody
|
|
14
|
+
} from "../../chunk-I7CD6EB6.mjs";
|
|
15
15
|
export {
|
|
16
16
|
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
17
17
|
DEFAULT_PROTECTED_BODY_FIELDS,
|
package/dist/backend/index.js
CHANGED
|
@@ -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
|
|
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 (!
|
|
50934
|
+
if (!isWrite({
|
|
50934
50935
|
operationID: hookCtx.operationID,
|
|
50935
50936
|
body: input.options?.body
|
|
50936
50937
|
}))
|
package/dist/backend/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./chunk-WYDGEDEU.mjs";
|
|
2
2
|
import "./chunk-VXND2UDT.mjs";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-H2IHYPDJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCoreHandler
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-D7QYCSUG.mjs";
|
|
7
|
+
import "./chunk-ZKDGEDOA.mjs";
|
|
8
|
+
import "./chunk-OVAKKRI6.mjs";
|
|
9
9
|
import "./chunk-TBQ27LIK.mjs";
|
|
10
10
|
import "./chunk-J44WR3QZ.mjs";
|
|
11
11
|
import "./chunk-TSF4YCUO.mjs";
|
|
@@ -14,11 +14,8 @@ import {
|
|
|
14
14
|
} from "./chunk-UAR3TMWI.mjs";
|
|
15
15
|
import {
|
|
16
16
|
routeConfigs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BJPNYTPU.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";
|
|
@@ -27,6 +24,9 @@ import {
|
|
|
27
24
|
backendSuccess,
|
|
28
25
|
isBackendResult
|
|
29
26
|
} from "./chunk-N7NFYY54.mjs";
|
|
27
|
+
import {
|
|
28
|
+
sanitizeBody
|
|
29
|
+
} from "./chunk-I7CD6EB6.mjs";
|
|
30
30
|
|
|
31
31
|
// src/backend/index.ts
|
|
32
32
|
async function autumnHandler(options) {
|
|
@@ -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
|
|
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 (!
|
|
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
|
|
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 (!
|
|
61754
|
+
if (!isWrite({
|
|
61754
61755
|
operationID: hookCtx.operationID,
|
|
61755
61756
|
body: input.options?.body
|
|
61756
61757
|
}))
|
|
@@ -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
|
|
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 (!
|
|
50927
|
+
if (!isWrite({
|
|
50927
50928
|
operationID: hookCtx.operationID,
|
|
50928
50929
|
body: input.options?.body
|
|
50929
50930
|
}))
|
|
@@ -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
|
|
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 (!
|
|
61758
|
+
if (!isWrite({
|
|
61758
61759
|
operationID: hookCtx.operationID,
|
|
61759
61760
|
body: input.options?.body
|
|
61760
61761
|
}))
|
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
|
|
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 (!
|
|
71246
|
+
if (!isWrite({
|
|
71246
71247
|
operationID: hookCtx.operationID,
|
|
71247
71248
|
body: input.options?.body
|
|
71248
71249
|
}))
|
package/dist/sdk/index.mjs
CHANGED
|
@@ -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
|
|
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 (!
|
|
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.
|
|
4
|
+
"version": "1.5.4",
|
|
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": "
|
|
129
|
+
"gitHead": "82c207bc80aed99c1f5fc65641be6e6dc02afd22"
|
|
130
130
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
3
|
-
sanitizeBody
|
|
4
|
-
} from "./chunk-I7CD6EB6.mjs";
|
|
5
1
|
import {
|
|
6
2
|
backendError,
|
|
7
3
|
backendSuccess
|
|
8
4
|
} from "./chunk-N7NFYY54.mjs";
|
|
5
|
+
import {
|
|
6
|
+
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
7
|
+
sanitizeBody
|
|
8
|
+
} from "./chunk-I7CD6EB6.mjs";
|
|
9
9
|
|
|
10
10
|
// src/backend/core/routes/routeConfigs.ts
|
|
11
11
|
import { z as z18 } from "zod/v4";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
transformSdkError
|
|
6
6
|
} from "./chunk-J44WR3QZ.mjs";
|
|
7
|
-
import {
|
|
8
|
-
sanitizeBody
|
|
9
|
-
} from "./chunk-I7CD6EB6.mjs";
|
|
10
7
|
import {
|
|
11
8
|
backendSuccess,
|
|
12
9
|
isBackendResult
|
|
13
10
|
} from "./chunk-N7NFYY54.mjs";
|
|
11
|
+
import {
|
|
12
|
+
sanitizeBody
|
|
13
|
+
} from "./chunk-I7CD6EB6.mjs";
|
|
14
14
|
|
|
15
15
|
// src/backend/core/handlers/executeRoute.ts
|
|
16
16
|
var buildSdkArgs = ({
|