autumn-js 1.3.50 → 1.3.52
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 +14 -0
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +14 -0
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +14 -0
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +14 -0
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +14 -0
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-5DMQUWII.mjs → chunk-4XONQCNS.mjs} +1 -1
- package/dist/backend/{chunk-5CDM4XIN.mjs → chunk-7D4Q6DD5.mjs} +4 -4
- package/dist/backend/{chunk-HLYVCB6M.mjs → chunk-DAFJNKRC.mjs} +1 -1
- package/dist/backend/{chunk-BZ54HK66.mjs → chunk-HO6HXFXB.mjs} +1 -1
- package/dist/backend/{chunk-SS7EKOGZ.mjs → chunk-JANEVXQD.mjs} +6 -6
- package/dist/backend/{chunk-ZJSWDKBL.mjs → chunk-MLNOZNXA.mjs} +1 -1
- package/dist/backend/{chunk-JPQERXWV.mjs → chunk-NTT3NWTL.mjs} +14 -0
- package/dist/backend/core/handlers/coreHandler.js +14 -0
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +14 -0
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.js +14 -0
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.js +14 -0
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.js +14 -0
- package/dist/backend/index.mjs +9 -9
- package/dist/better-auth/{chunk-57PPCUDF.mjs → chunk-54S4JXQI.mjs} +14 -0
- package/dist/better-auth/index.js +14 -0
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +14 -0
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +14 -0
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.js +14 -0
- package/dist/sdk/index.mjs +14 -0
- package/package.json +2 -2
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -56806,6 +56806,19 @@ async function $do4(client, request, options) {
|
|
|
56806
56806
|
return [result, { status: "complete", request: req, response }];
|
|
56807
56807
|
}
|
|
56808
56808
|
|
|
56809
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56810
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56811
|
+
var BufferLoggedResponseHook = class {
|
|
56812
|
+
async afterSuccess(hookCtx, response) {
|
|
56813
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56814
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56815
|
+
return response;
|
|
56816
|
+
}
|
|
56817
|
+
await response.clone().arrayBuffer();
|
|
56818
|
+
return response;
|
|
56819
|
+
}
|
|
56820
|
+
};
|
|
56821
|
+
|
|
56809
56822
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56810
56823
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56811
56824
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56917,6 +56930,7 @@ function initHooks(hooks) {
|
|
|
56917
56930
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56918
56931
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56919
56932
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56933
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56920
56934
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56921
56935
|
}
|
|
56922
56936
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-DAFJNKRC.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JPQERXWV.mjs";
|
|
9
|
-
import "../chunk-MOHYGUMA.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-7D4Q6DD5.mjs";
|
|
7
|
+
import "../chunk-JANEVXQD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
+
import "../chunk-NTT3NWTL.mjs";
|
|
14
11
|
import "../chunk-IQQQ5P6R.mjs";
|
|
12
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-I7CD6EB6.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -56806,6 +56806,19 @@ async function $do4(client, request, options) {
|
|
|
56806
56806
|
return [result, { status: "complete", request: req, response }];
|
|
56807
56807
|
}
|
|
56808
56808
|
|
|
56809
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56810
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56811
|
+
var BufferLoggedResponseHook = class {
|
|
56812
|
+
async afterSuccess(hookCtx, response) {
|
|
56813
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56814
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56815
|
+
return response;
|
|
56816
|
+
}
|
|
56817
|
+
await response.clone().arrayBuffer();
|
|
56818
|
+
return response;
|
|
56819
|
+
}
|
|
56820
|
+
};
|
|
56821
|
+
|
|
56809
56822
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56810
56823
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56811
56824
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56917,6 +56930,7 @@ function initHooks(hooks) {
|
|
|
56917
56930
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56918
56931
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56919
56932
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56933
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56920
56934
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56921
56935
|
}
|
|
56922
56936
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4XONQCNS.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JPQERXWV.mjs";
|
|
9
|
-
import "../chunk-MOHYGUMA.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-7D4Q6DD5.mjs";
|
|
7
|
+
import "../chunk-JANEVXQD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
+
import "../chunk-NTT3NWTL.mjs";
|
|
14
11
|
import "../chunk-IQQQ5P6R.mjs";
|
|
12
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-I7CD6EB6.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -56806,6 +56806,19 @@ async function $do4(client, request, options) {
|
|
|
56806
56806
|
return [result, { status: "complete", request: req, response }];
|
|
56807
56807
|
}
|
|
56808
56808
|
|
|
56809
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56810
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56811
|
+
var BufferLoggedResponseHook = class {
|
|
56812
|
+
async afterSuccess(hookCtx, response) {
|
|
56813
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56814
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56815
|
+
return response;
|
|
56816
|
+
}
|
|
56817
|
+
await response.clone().arrayBuffer();
|
|
56818
|
+
return response;
|
|
56819
|
+
}
|
|
56820
|
+
};
|
|
56821
|
+
|
|
56809
56822
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56810
56823
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56811
56824
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56917,6 +56930,7 @@ function initHooks(hooks) {
|
|
|
56917
56930
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56918
56931
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56919
56932
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56933
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56920
56934
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56921
56935
|
}
|
|
56922
56936
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MLNOZNXA.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JPQERXWV.mjs";
|
|
9
|
-
import "../chunk-MOHYGUMA.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-7D4Q6DD5.mjs";
|
|
7
|
+
import "../chunk-JANEVXQD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
+
import "../chunk-NTT3NWTL.mjs";
|
|
14
11
|
import "../chunk-IQQQ5P6R.mjs";
|
|
12
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-I7CD6EB6.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -56809,6 +56809,19 @@ async function $do4(client, request, options) {
|
|
|
56809
56809
|
return [result, { status: "complete", request: req, response }];
|
|
56810
56810
|
}
|
|
56811
56811
|
|
|
56812
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56813
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56814
|
+
var BufferLoggedResponseHook = class {
|
|
56815
|
+
async afterSuccess(hookCtx, response) {
|
|
56816
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56817
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56818
|
+
return response;
|
|
56819
|
+
}
|
|
56820
|
+
await response.clone().arrayBuffer();
|
|
56821
|
+
return response;
|
|
56822
|
+
}
|
|
56823
|
+
};
|
|
56824
|
+
|
|
56812
56825
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56813
56826
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56814
56827
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56920,6 +56933,7 @@ function initHooks(hooks) {
|
|
|
56920
56933
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56921
56934
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56922
56935
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56936
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56923
56937
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56924
56938
|
}
|
|
56925
56939
|
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-DAFJNKRC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-4XONQCNS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-MLNOZNXA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-HO6HXFXB.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-JPQERXWV.mjs";
|
|
18
|
-
import "../chunk-MOHYGUMA.mjs";
|
|
19
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
20
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
15
|
+
import "../chunk-7D4Q6DD5.mjs";
|
|
16
|
+
import "../chunk-JANEVXQD.mjs";
|
|
21
17
|
import "../chunk-TSF4YCUO.mjs";
|
|
22
18
|
import "../chunk-UAR3TMWI.mjs";
|
|
19
|
+
import "../chunk-NTT3NWTL.mjs";
|
|
23
20
|
import "../chunk-IQQQ5P6R.mjs";
|
|
21
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
24
22
|
import "../chunk-OTXV5FY7.mjs";
|
|
25
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
26
23
|
import "../chunk-I7CD6EB6.mjs";
|
|
24
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
25
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
26
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
27
27
|
import "../chunk-N7NFYY54.mjs";
|
|
28
28
|
export {
|
|
29
29
|
autumnHandler as expressAutumnHandler,
|
|
@@ -56807,6 +56807,19 @@ async function $do4(client, request, options) {
|
|
|
56807
56807
|
return [result, { status: "complete", request: req, response }];
|
|
56808
56808
|
}
|
|
56809
56809
|
|
|
56810
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56811
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56812
|
+
var BufferLoggedResponseHook = class {
|
|
56813
|
+
async afterSuccess(hookCtx, response) {
|
|
56814
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56815
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56816
|
+
return response;
|
|
56817
|
+
}
|
|
56818
|
+
await response.clone().arrayBuffer();
|
|
56819
|
+
return response;
|
|
56820
|
+
}
|
|
56821
|
+
};
|
|
56822
|
+
|
|
56810
56823
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56811
56824
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56812
56825
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56918,6 +56931,7 @@ function initHooks(hooks) {
|
|
|
56918
56931
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56919
56932
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56920
56933
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56934
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56921
56935
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56922
56936
|
}
|
|
56923
56937
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HO6HXFXB.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-JPQERXWV.mjs";
|
|
9
|
-
import "../chunk-MOHYGUMA.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-7D4Q6DD5.mjs";
|
|
7
|
+
import "../chunk-JANEVXQD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
+
import "../chunk-NTT3NWTL.mjs";
|
|
14
11
|
import "../chunk-IQQQ5P6R.mjs";
|
|
12
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-I7CD6EB6.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
executeRoute
|
|
6
|
-
} from "./chunk-MOHYGUMA.mjs";
|
|
3
|
+
} from "./chunk-NTT3NWTL.mjs";
|
|
7
4
|
import {
|
|
8
5
|
routeConfigs
|
|
9
6
|
} from "./chunk-IQQQ5P6R.mjs";
|
|
7
|
+
import {
|
|
8
|
+
executeRoute
|
|
9
|
+
} from "./chunk-IXUCY7AU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
secretKeyCheck
|
|
12
12
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Autumn
|
|
3
|
-
} from "./chunk-JPQERXWV.mjs";
|
|
4
|
-
import {
|
|
5
|
-
executeRoute
|
|
6
|
-
} from "./chunk-MOHYGUMA.mjs";
|
|
7
1
|
import {
|
|
8
2
|
buildRouter
|
|
9
3
|
} from "./chunk-UAR3TMWI.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Autumn
|
|
6
|
+
} from "./chunk-NTT3NWTL.mjs";
|
|
10
7
|
import {
|
|
11
8
|
routeConfigs
|
|
12
9
|
} from "./chunk-IQQQ5P6R.mjs";
|
|
10
|
+
import {
|
|
11
|
+
executeRoute
|
|
12
|
+
} from "./chunk-IXUCY7AU.mjs";
|
|
13
13
|
import {
|
|
14
14
|
secretKeyCheck
|
|
15
15
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -56723,6 +56723,19 @@ async function $do4(client, request, options) {
|
|
|
56723
56723
|
return [result, { status: "complete", request: req, response }];
|
|
56724
56724
|
}
|
|
56725
56725
|
|
|
56726
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56727
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56728
|
+
var BufferLoggedResponseHook = class {
|
|
56729
|
+
async afterSuccess(hookCtx, response) {
|
|
56730
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56731
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56732
|
+
return response;
|
|
56733
|
+
}
|
|
56734
|
+
await response.clone().arrayBuffer();
|
|
56735
|
+
return response;
|
|
56736
|
+
}
|
|
56737
|
+
};
|
|
56738
|
+
|
|
56726
56739
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56727
56740
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56728
56741
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56834,6 +56847,7 @@ function initHooks(hooks) {
|
|
|
56834
56847
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56835
56848
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56836
56849
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56850
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56837
56851
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56838
56852
|
}
|
|
56839
56853
|
|
|
@@ -56806,6 +56806,19 @@ async function $do4(client, request, options) {
|
|
|
56806
56806
|
return [result, { status: "complete", request: req, response }];
|
|
56807
56807
|
}
|
|
56808
56808
|
|
|
56809
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56810
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56811
|
+
var BufferLoggedResponseHook = class {
|
|
56812
|
+
async afterSuccess(hookCtx, response) {
|
|
56813
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56814
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56815
|
+
return response;
|
|
56816
|
+
}
|
|
56817
|
+
await response.clone().arrayBuffer();
|
|
56818
|
+
return response;
|
|
56819
|
+
}
|
|
56820
|
+
};
|
|
56821
|
+
|
|
56809
56822
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56810
56823
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56811
56824
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56917,6 +56930,7 @@ function initHooks(hooks) {
|
|
|
56917
56930
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56918
56931
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56919
56932
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56933
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56920
56934
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56921
56935
|
}
|
|
56922
56936
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-JPQERXWV.mjs";
|
|
5
|
-
import "../../chunk-MOHYGUMA.mjs";
|
|
6
|
-
import "../../chunk-TBQ27LIK.mjs";
|
|
7
|
-
import "../../chunk-J44WR3QZ.mjs";
|
|
3
|
+
} from "../../chunk-JANEVXQD.mjs";
|
|
8
4
|
import "../../chunk-TSF4YCUO.mjs";
|
|
9
5
|
import "../../chunk-UAR3TMWI.mjs";
|
|
6
|
+
import "../../chunk-NTT3NWTL.mjs";
|
|
10
7
|
import "../../chunk-IQQQ5P6R.mjs";
|
|
8
|
+
import "../../chunk-IXUCY7AU.mjs";
|
|
11
9
|
import "../../chunk-OTXV5FY7.mjs";
|
|
12
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
13
10
|
import "../../chunk-I7CD6EB6.mjs";
|
|
11
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
12
|
+
import "../../chunk-TBQ27LIK.mjs";
|
|
13
|
+
import "../../chunk-J44WR3QZ.mjs";
|
|
14
14
|
import "../../chunk-N7NFYY54.mjs";
|
|
15
15
|
export {
|
|
16
16
|
createCoreHandler
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeRoute
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-TBQ27LIK.mjs";
|
|
5
|
-
import "../../chunk-J44WR3QZ.mjs";
|
|
3
|
+
} from "../../chunk-IXUCY7AU.mjs";
|
|
6
4
|
import "../../chunk-OTXV5FY7.mjs";
|
|
7
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
8
5
|
import "../../chunk-I7CD6EB6.mjs";
|
|
6
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
7
|
+
import "../../chunk-TBQ27LIK.mjs";
|
|
8
|
+
import "../../chunk-J44WR3QZ.mjs";
|
|
9
9
|
import "../../chunk-N7NFYY54.mjs";
|
|
10
10
|
export {
|
|
11
11
|
executeRoute
|
|
@@ -56806,6 +56806,19 @@ async function $do4(client, request, options) {
|
|
|
56806
56806
|
return [result, { status: "complete", request: req, response }];
|
|
56807
56807
|
}
|
|
56808
56808
|
|
|
56809
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56810
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56811
|
+
var BufferLoggedResponseHook = class {
|
|
56812
|
+
async afterSuccess(hookCtx, response) {
|
|
56813
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56814
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56815
|
+
return response;
|
|
56816
|
+
}
|
|
56817
|
+
await response.clone().arrayBuffer();
|
|
56818
|
+
return response;
|
|
56819
|
+
}
|
|
56820
|
+
};
|
|
56821
|
+
|
|
56809
56822
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56810
56823
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56811
56824
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56917,6 +56930,7 @@ function initHooks(hooks) {
|
|
|
56917
56930
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56918
56931
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56919
56932
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56933
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56920
56934
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56921
56935
|
}
|
|
56922
56936
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-MOHYGUMA.mjs";
|
|
6
|
-
import "../../chunk-TBQ27LIK.mjs";
|
|
7
|
-
import "../../chunk-J44WR3QZ.mjs";
|
|
3
|
+
} from "../../chunk-7D4Q6DD5.mjs";
|
|
4
|
+
import "../../chunk-NTT3NWTL.mjs";
|
|
8
5
|
import "../../chunk-IQQQ5P6R.mjs";
|
|
6
|
+
import "../../chunk-IXUCY7AU.mjs";
|
|
9
7
|
import "../../chunk-OTXV5FY7.mjs";
|
|
10
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
11
8
|
import "../../chunk-I7CD6EB6.mjs";
|
|
9
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
10
|
+
import "../../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../../chunk-N7NFYY54.mjs";
|
|
13
13
|
export {
|
|
14
14
|
handleRouteByName
|
|
@@ -56810,6 +56810,19 @@ async function $do4(client, request, options) {
|
|
|
56810
56810
|
return [result, { status: "complete", request: req, response }];
|
|
56811
56811
|
}
|
|
56812
56812
|
|
|
56813
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56814
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56815
|
+
var BufferLoggedResponseHook = class {
|
|
56816
|
+
async afterSuccess(hookCtx, response) {
|
|
56817
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56818
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56819
|
+
return response;
|
|
56820
|
+
}
|
|
56821
|
+
await response.clone().arrayBuffer();
|
|
56822
|
+
return response;
|
|
56823
|
+
}
|
|
56824
|
+
};
|
|
56825
|
+
|
|
56813
56826
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56814
56827
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56815
56828
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56921,6 +56934,7 @@ function initHooks(hooks) {
|
|
|
56921
56934
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56922
56935
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56923
56936
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56937
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56924
56938
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56925
56939
|
}
|
|
56926
56940
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
handleRouteByName
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-7D4Q6DD5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-JANEVXQD.mjs";
|
|
8
|
+
import "../../chunk-TSF4YCUO.mjs";
|
|
9
|
+
import "../../chunk-UAR3TMWI.mjs";
|
|
10
|
+
import "../../chunk-NTT3NWTL.mjs";
|
|
11
|
+
import "../../chunk-IQQQ5P6R.mjs";
|
|
9
12
|
import {
|
|
10
13
|
executeRoute
|
|
11
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-IXUCY7AU.mjs";
|
|
15
|
+
import "../../chunk-OTXV5FY7.mjs";
|
|
16
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
17
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
12
18
|
import {
|
|
13
19
|
resolveIdentity
|
|
14
20
|
} from "../../chunk-TBQ27LIK.mjs";
|
|
15
21
|
import {
|
|
16
22
|
transformSdkError
|
|
17
23
|
} from "../../chunk-J44WR3QZ.mjs";
|
|
18
|
-
import "../../chunk-TSF4YCUO.mjs";
|
|
19
|
-
import "../../chunk-UAR3TMWI.mjs";
|
|
20
|
-
import "../../chunk-IQQQ5P6R.mjs";
|
|
21
|
-
import "../../chunk-OTXV5FY7.mjs";
|
|
22
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
23
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
24
24
|
import "../../chunk-N7NFYY54.mjs";
|
|
25
25
|
export {
|
|
26
26
|
createCoreHandler,
|
|
@@ -56814,6 +56814,19 @@ async function $do4(client, request, options) {
|
|
|
56814
56814
|
return [result, { status: "complete", request: req, response }];
|
|
56815
56815
|
}
|
|
56816
56816
|
|
|
56817
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56818
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56819
|
+
var BufferLoggedResponseHook = class {
|
|
56820
|
+
async afterSuccess(hookCtx, response) {
|
|
56821
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56822
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56823
|
+
return response;
|
|
56824
|
+
}
|
|
56825
|
+
await response.clone().arrayBuffer();
|
|
56826
|
+
return response;
|
|
56827
|
+
}
|
|
56828
|
+
};
|
|
56829
|
+
|
|
56817
56830
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56818
56831
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56819
56832
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56925,6 +56938,7 @@ function initHooks(hooks) {
|
|
|
56925
56938
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56926
56939
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56927
56940
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56941
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56928
56942
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56929
56943
|
}
|
|
56930
56944
|
|
|
@@ -2,28 +2,28 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7D4Q6DD5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-JPQERXWV.mjs";
|
|
10
|
-
import "../chunk-MOHYGUMA.mjs";
|
|
11
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
12
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
8
|
+
} from "../chunk-JANEVXQD.mjs";
|
|
13
9
|
import "../chunk-TSF4YCUO.mjs";
|
|
14
10
|
import {
|
|
15
11
|
buildRouter
|
|
16
12
|
} from "../chunk-UAR3TMWI.mjs";
|
|
13
|
+
import "../chunk-NTT3NWTL.mjs";
|
|
17
14
|
import {
|
|
18
15
|
routeConfigs
|
|
19
16
|
} from "../chunk-IQQQ5P6R.mjs";
|
|
17
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
20
18
|
import "../chunk-OTXV5FY7.mjs";
|
|
21
|
-
import {
|
|
22
|
-
secretKeyCheck
|
|
23
|
-
} from "../chunk-VZIMT7AO.mjs";
|
|
24
19
|
import {
|
|
25
20
|
sanitizeBody
|
|
26
21
|
} from "../chunk-I7CD6EB6.mjs";
|
|
22
|
+
import {
|
|
23
|
+
secretKeyCheck
|
|
24
|
+
} from "../chunk-VZIMT7AO.mjs";
|
|
25
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
26
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
27
27
|
import {
|
|
28
28
|
backendError,
|
|
29
29
|
backendSuccess,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
routeConfigs
|
|
7
7
|
} from "../../chunk-IQQQ5P6R.mjs";
|
|
8
8
|
import "../../chunk-OTXV5FY7.mjs";
|
|
9
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
10
9
|
import "../../chunk-I7CD6EB6.mjs";
|
|
10
|
+
import "../../chunk-VZIMT7AO.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-IQQQ5P6R.mjs";
|
|
4
4
|
import "../../chunk-OTXV5FY7.mjs";
|
|
5
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
6
5
|
import "../../chunk-I7CD6EB6.mjs";
|
|
6
|
+
import "../../chunk-VZIMT7AO.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";
|
|
5
2
|
import {
|
|
6
3
|
CUSTOMER_PROTECTED_BODY_FIELDS,
|
|
7
4
|
DEFAULT_PROTECTED_BODY_FIELDS,
|
|
8
5
|
sanitizeBody
|
|
9
6
|
} from "../../chunk-I7CD6EB6.mjs";
|
|
7
|
+
import {
|
|
8
|
+
secretKeyCheck
|
|
9
|
+
} from "../../chunk-VZIMT7AO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
backendError,
|
|
12
12
|
backendSuccess,
|
package/dist/backend/index.js
CHANGED
|
@@ -56814,6 +56814,19 @@ async function $do4(client, request, options) {
|
|
|
56814
56814
|
return [result, { status: "complete", request: req, response }];
|
|
56815
56815
|
}
|
|
56816
56816
|
|
|
56817
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56818
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56819
|
+
var BufferLoggedResponseHook = class {
|
|
56820
|
+
async afterSuccess(hookCtx, response) {
|
|
56821
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56822
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56823
|
+
return response;
|
|
56824
|
+
}
|
|
56825
|
+
await response.clone().arrayBuffer();
|
|
56826
|
+
return response;
|
|
56827
|
+
}
|
|
56828
|
+
};
|
|
56829
|
+
|
|
56817
56830
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56818
56831
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56819
56832
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56925,6 +56938,7 @@ function initHooks(hooks) {
|
|
|
56925
56938
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56926
56939
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56927
56940
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56941
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56928
56942
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56929
56943
|
}
|
|
56930
56944
|
|
package/dist/backend/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "./chunk-WYDGEDEU.mjs";
|
|
2
2
|
import "./chunk-VXND2UDT.mjs";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-7D4Q6DD5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCoreHandler
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-JPQERXWV.mjs";
|
|
8
|
-
import "./chunk-MOHYGUMA.mjs";
|
|
9
|
-
import "./chunk-TBQ27LIK.mjs";
|
|
10
|
-
import "./chunk-J44WR3QZ.mjs";
|
|
6
|
+
} from "./chunk-JANEVXQD.mjs";
|
|
11
7
|
import "./chunk-TSF4YCUO.mjs";
|
|
12
8
|
import {
|
|
13
9
|
buildRouter
|
|
14
10
|
} from "./chunk-UAR3TMWI.mjs";
|
|
11
|
+
import "./chunk-NTT3NWTL.mjs";
|
|
15
12
|
import {
|
|
16
13
|
routeConfigs
|
|
17
14
|
} from "./chunk-IQQQ5P6R.mjs";
|
|
15
|
+
import "./chunk-IXUCY7AU.mjs";
|
|
18
16
|
import "./chunk-OTXV5FY7.mjs";
|
|
19
|
-
import {
|
|
20
|
-
secretKeyCheck
|
|
21
|
-
} from "./chunk-VZIMT7AO.mjs";
|
|
22
17
|
import {
|
|
23
18
|
sanitizeBody
|
|
24
19
|
} from "./chunk-I7CD6EB6.mjs";
|
|
20
|
+
import {
|
|
21
|
+
secretKeyCheck
|
|
22
|
+
} from "./chunk-VZIMT7AO.mjs";
|
|
23
|
+
import "./chunk-TBQ27LIK.mjs";
|
|
24
|
+
import "./chunk-J44WR3QZ.mjs";
|
|
25
25
|
import {
|
|
26
26
|
backendError,
|
|
27
27
|
backendSuccess,
|
|
@@ -56788,6 +56788,19 @@ async function $do4(client, request, options) {
|
|
|
56788
56788
|
return [result, { status: "complete", request: req, response }];
|
|
56789
56789
|
}
|
|
56790
56790
|
|
|
56791
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56792
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56793
|
+
var BufferLoggedResponseHook = class {
|
|
56794
|
+
async afterSuccess(hookCtx, response) {
|
|
56795
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56796
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56797
|
+
return response;
|
|
56798
|
+
}
|
|
56799
|
+
await response.clone().arrayBuffer();
|
|
56800
|
+
return response;
|
|
56801
|
+
}
|
|
56802
|
+
};
|
|
56803
|
+
|
|
56791
56804
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56792
56805
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56793
56806
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56899,6 +56912,7 @@ function initHooks(hooks) {
|
|
|
56899
56912
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56900
56913
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56901
56914
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56915
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56902
56916
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56903
56917
|
}
|
|
56904
56918
|
|
|
@@ -63636,6 +63636,19 @@ async function $do4(client, request, options) {
|
|
|
63636
63636
|
return [result, { status: "complete", request: req, response }];
|
|
63637
63637
|
}
|
|
63638
63638
|
|
|
63639
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
63640
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
63641
|
+
var BufferLoggedResponseHook = class {
|
|
63642
|
+
async afterSuccess(hookCtx, response) {
|
|
63643
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
63644
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
63645
|
+
return response;
|
|
63646
|
+
}
|
|
63647
|
+
await response.clone().arrayBuffer();
|
|
63648
|
+
return response;
|
|
63649
|
+
}
|
|
63650
|
+
};
|
|
63651
|
+
|
|
63639
63652
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
63640
63653
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
63641
63654
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -63747,6 +63760,7 @@ function initHooks(hooks) {
|
|
|
63747
63760
|
hooks.registerSDKInitHook(failOpenHook);
|
|
63748
63761
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
63749
63762
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
63763
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
63750
63764
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
63751
63765
|
}
|
|
63752
63766
|
|
|
@@ -56807,6 +56807,19 @@ async function $do4(client, request, options) {
|
|
|
56807
56807
|
return [result, { status: "complete", request: req, response }];
|
|
56808
56808
|
}
|
|
56809
56809
|
|
|
56810
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
56811
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
56812
|
+
var BufferLoggedResponseHook = class {
|
|
56813
|
+
async afterSuccess(hookCtx, response) {
|
|
56814
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
56815
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
56816
|
+
return response;
|
|
56817
|
+
}
|
|
56818
|
+
await response.clone().arrayBuffer();
|
|
56819
|
+
return response;
|
|
56820
|
+
}
|
|
56821
|
+
};
|
|
56822
|
+
|
|
56810
56823
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
56811
56824
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
56812
56825
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -56918,6 +56931,7 @@ function initHooks(hooks) {
|
|
|
56918
56931
|
hooks.registerSDKInitHook(failOpenHook);
|
|
56919
56932
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
56920
56933
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
56934
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
56921
56935
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
56922
56936
|
}
|
|
56923
56937
|
|
|
@@ -63640,6 +63640,19 @@ async function $do4(client, request, options) {
|
|
|
63640
63640
|
return [result, { status: "complete", request: req, response }];
|
|
63641
63641
|
}
|
|
63642
63642
|
|
|
63643
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
63644
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
63645
|
+
var BufferLoggedResponseHook = class {
|
|
63646
|
+
async afterSuccess(hookCtx, response) {
|
|
63647
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
63648
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
63649
|
+
return response;
|
|
63650
|
+
}
|
|
63651
|
+
await response.clone().arrayBuffer();
|
|
63652
|
+
return response;
|
|
63653
|
+
}
|
|
63654
|
+
};
|
|
63655
|
+
|
|
63643
63656
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
63644
63657
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
63645
63658
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -63751,6 +63764,7 @@ function initHooks(hooks) {
|
|
|
63751
63764
|
hooks.registerSDKInitHook(failOpenHook);
|
|
63752
63765
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
63753
63766
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
63767
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
63754
63768
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
63755
63769
|
}
|
|
63756
63770
|
|
package/dist/sdk/index.js
CHANGED
|
@@ -82573,6 +82573,19 @@ async function $do4(client, request, options) {
|
|
|
82573
82573
|
return [result, { status: "complete", request: req, response }];
|
|
82574
82574
|
}
|
|
82575
82575
|
|
|
82576
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
82577
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
82578
|
+
var BufferLoggedResponseHook = class {
|
|
82579
|
+
async afterSuccess(hookCtx, response) {
|
|
82580
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
82581
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
82582
|
+
return response;
|
|
82583
|
+
}
|
|
82584
|
+
await response.clone().arrayBuffer();
|
|
82585
|
+
return response;
|
|
82586
|
+
}
|
|
82587
|
+
};
|
|
82588
|
+
|
|
82576
82589
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
82577
82590
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
82578
82591
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -82686,6 +82699,7 @@ function initHooks(hooks) {
|
|
|
82686
82699
|
hooks.registerSDKInitHook(failOpenHook);
|
|
82687
82700
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
82688
82701
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
82702
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
82689
82703
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
82690
82704
|
}
|
|
82691
82705
|
|
package/dist/sdk/index.mjs
CHANGED
|
@@ -82550,6 +82550,19 @@ async function $do4(client, request, options) {
|
|
|
82550
82550
|
return [result, { status: "complete", request: req, response }];
|
|
82551
82551
|
}
|
|
82552
82552
|
|
|
82553
|
+
// ../sdk/src/hooks/bufferLoggedResponseHook.ts
|
|
82554
|
+
var STREAMED_CONTENT_TYPE = /event-stream|jsonl|ndjson/i;
|
|
82555
|
+
var BufferLoggedResponseHook = class {
|
|
82556
|
+
async afterSuccess(hookCtx, response) {
|
|
82557
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
82558
|
+
if (!hookCtx.options.debugLogger || STREAMED_CONTENT_TYPE.test(contentType)) {
|
|
82559
|
+
return response;
|
|
82560
|
+
}
|
|
82561
|
+
await response.clone().arrayBuffer();
|
|
82562
|
+
return response;
|
|
82563
|
+
}
|
|
82564
|
+
};
|
|
82565
|
+
|
|
82553
82566
|
// ../sdk/src/hooks/failOpenHook.ts
|
|
82554
82567
|
var FAIL_OPEN_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
82555
82568
|
var FAIL_OPEN_LOG_MESSAGE = "[Autumn] Request failed \u2014 failing open. Learn more: https://docs.useautumn.com/documentation/fail-open";
|
|
@@ -82663,6 +82676,7 @@ function initHooks(hooks) {
|
|
|
82663
82676
|
hooks.registerSDKInitHook(failOpenHook);
|
|
82664
82677
|
hooks.registerSDKInitHook(new RedactDebugLogHook());
|
|
82665
82678
|
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
82679
|
+
hooks.registerAfterSuccessHook(new BufferLoggedResponseHook());
|
|
82666
82680
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
82667
82681
|
}
|
|
82668
82682
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autumn-js",
|
|
3
3
|
"description": "Autumn JS Library",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.52",
|
|
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": "d20cffdfef02f24da9fb11fe1a46707a97800320"
|
|
130
130
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sanitizeBody
|
|
3
|
+
} from "./chunk-I7CD6EB6.mjs";
|
|
1
4
|
import {
|
|
2
5
|
resolveIdentity
|
|
3
6
|
} from "./chunk-TBQ27LIK.mjs";
|
|
4
7
|
import {
|
|
5
8
|
transformSdkError
|
|
6
9
|
} from "./chunk-J44WR3QZ.mjs";
|
|
7
|
-
import {
|
|
8
|
-
sanitizeBody
|
|
9
|
-
} from "./chunk-I7CD6EB6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
backendSuccess,
|
|
12
12
|
isBackendResult
|