skedyul 1.7.17 → 1.7.19

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/.build-stamp CHANGED
@@ -1 +1 @@
1
- 1786320274767
1
+ 1786330648697
package/dist/cli/index.js CHANGED
@@ -3763,8 +3763,8 @@ async function handleInstall(body, hooks) {
3763
3763
  try {
3764
3764
  const installHook = hooks.install;
3765
3765
  const installHandler = typeof installHook === "function" ? installHook : installHook.handler;
3766
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
3767
- return await runWithConfig(requestConfig, async () => {
3766
+ const result = await runWithConfig(requestConfig, async () => {
3767
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
3768
3768
  return await installHandler(installContext);
3769
3769
  });
3770
3770
  });
@@ -3831,8 +3831,8 @@ async function handleUninstall(body, hooks) {
3831
3831
  try {
3832
3832
  const uninstallHook = hooks.uninstall;
3833
3833
  const uninstallHandlerFn = typeof uninstallHook === "function" ? uninstallHook : uninstallHook.handler;
3834
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
3835
- return await runWithConfig(requestConfig, async () => {
3834
+ const result = await runWithConfig(requestConfig, async () => {
3835
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
3836
3836
  return await uninstallHandlerFn(uninstallContext);
3837
3837
  });
3838
3838
  });
@@ -3892,8 +3892,8 @@ async function handleProvision(body, hooks) {
3892
3892
  try {
3893
3893
  const provisionHook = hooks.provision;
3894
3894
  const provisionHandler = typeof provisionHook === "function" ? provisionHook : provisionHook.handler;
3895
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
3896
- return await runWithConfig(requestConfig, async () => {
3895
+ const result = await runWithConfig(requestConfig, async () => {
3896
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
3897
3897
  return await provisionHandler(provisionContext);
3898
3898
  });
3899
3899
  });
@@ -3952,14 +3952,11 @@ async function handleSetupRevalidate(body, hooks) {
3952
3952
  };
3953
3953
  try {
3954
3954
  const handler = typeof revalidateHook === "function" ? revalidateHook : revalidateHook.handler;
3955
- const result = await runWithLogContext(
3956
- { invocation: body.invocation },
3957
- async () => {
3958
- return await runWithConfig(requestConfig, async () => {
3959
- return await handler(ctx);
3960
- });
3961
- }
3962
- );
3955
+ const result = await runWithConfig(requestConfig, async () => {
3956
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
3957
+ return await handler(ctx);
3958
+ });
3959
+ });
3963
3960
  return {
3964
3961
  status: 200,
3965
3962
  body: {
@@ -4057,8 +4054,8 @@ async function handleOAuthCallback(parsedBody, hooks) {
4057
4054
  try {
4058
4055
  const oauthCallbackHook = hooks.oauth_callback;
4059
4056
  const oauthCallbackHandler = typeof oauthCallbackHook === "function" ? oauthCallbackHook : oauthCallbackHook.handler;
4060
- const result = await runWithLogContext({ invocation }, async () => {
4061
- return await runWithConfig(requestConfig, async () => {
4057
+ const result = await runWithConfig(requestConfig, async () => {
4058
+ return await runWithLogContext({ invocation }, async () => {
4062
4059
  return await oauthCallbackHandler(oauthCallbackContext);
4063
4060
  });
4064
4061
  });
@@ -4178,8 +4175,8 @@ async function executeWebhookHandler(handle, webhookRegistry, data) {
4178
4175
  invocation: data.invocation,
4179
4176
  isProvisionContext: !isRuntimeWebhookContext(data.webhookContext)
4180
4177
  };
4181
- webhookResponse = await runWithLogContext({ invocation: data.invocation }, async () => {
4182
- return await runWithConfig(requestConfig, async () => {
4178
+ webhookResponse = await runWithConfig(requestConfig, async () => {
4179
+ return await runWithLogContext({ invocation: data.invocation }, async () => {
4183
4180
  return await runWithRateLimitExecutionContext(rateLimitContext, async () => {
4184
4181
  return await webhookDef.handler(data.webhookRequest, data.webhookContext);
4185
4182
  });
@@ -1072,8 +1072,8 @@ async function handleInstall(body, hooks) {
1072
1072
  try {
1073
1073
  const installHook = hooks.install;
1074
1074
  const installHandler = typeof installHook === "function" ? installHook : installHook.handler;
1075
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1076
- return await runWithConfig(requestConfig, async () => {
1075
+ const result = await runWithConfig(requestConfig, async () => {
1076
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1077
1077
  return await installHandler(installContext);
1078
1078
  });
1079
1079
  });
@@ -1140,8 +1140,8 @@ async function handleUninstall(body, hooks) {
1140
1140
  try {
1141
1141
  const uninstallHook = hooks.uninstall;
1142
1142
  const uninstallHandlerFn = typeof uninstallHook === "function" ? uninstallHook : uninstallHook.handler;
1143
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1144
- return await runWithConfig(requestConfig, async () => {
1143
+ const result = await runWithConfig(requestConfig, async () => {
1144
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1145
1145
  return await uninstallHandlerFn(uninstallContext);
1146
1146
  });
1147
1147
  });
@@ -1201,8 +1201,8 @@ async function handleProvision(body, hooks) {
1201
1201
  try {
1202
1202
  const provisionHook = hooks.provision;
1203
1203
  const provisionHandler = typeof provisionHook === "function" ? provisionHook : provisionHook.handler;
1204
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1205
- return await runWithConfig(requestConfig, async () => {
1204
+ const result = await runWithConfig(requestConfig, async () => {
1205
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1206
1206
  return await provisionHandler(provisionContext);
1207
1207
  });
1208
1208
  });
@@ -1261,14 +1261,11 @@ async function handleSetupRevalidate(body, hooks) {
1261
1261
  };
1262
1262
  try {
1263
1263
  const handler = typeof revalidateHook === "function" ? revalidateHook : revalidateHook.handler;
1264
- const result = await runWithLogContext(
1265
- { invocation: body.invocation },
1266
- async () => {
1267
- return await runWithConfig(requestConfig, async () => {
1268
- return await handler(ctx);
1269
- });
1270
- }
1271
- );
1264
+ const result = await runWithConfig(requestConfig, async () => {
1265
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1266
+ return await handler(ctx);
1267
+ });
1268
+ });
1272
1269
  return {
1273
1270
  status: 200,
1274
1271
  body: {
@@ -1366,8 +1363,8 @@ async function handleOAuthCallback(parsedBody, hooks) {
1366
1363
  try {
1367
1364
  const oauthCallbackHook = hooks.oauth_callback;
1368
1365
  const oauthCallbackHandler = typeof oauthCallbackHook === "function" ? oauthCallbackHook : oauthCallbackHook.handler;
1369
- const result = await runWithLogContext({ invocation }, async () => {
1370
- return await runWithConfig(requestConfig, async () => {
1366
+ const result = await runWithConfig(requestConfig, async () => {
1367
+ return await runWithLogContext({ invocation }, async () => {
1371
1368
  return await oauthCallbackHandler(oauthCallbackContext);
1372
1369
  });
1373
1370
  });
@@ -1487,8 +1484,8 @@ async function executeWebhookHandler(handle, webhookRegistry, data) {
1487
1484
  invocation: data.invocation,
1488
1485
  isProvisionContext: !isRuntimeWebhookContext(data.webhookContext)
1489
1486
  };
1490
- webhookResponse = await runWithLogContext({ invocation: data.invocation }, async () => {
1491
- return await runWithConfig(requestConfig, async () => {
1487
+ webhookResponse = await runWithConfig(requestConfig, async () => {
1488
+ return await runWithLogContext({ invocation: data.invocation }, async () => {
1492
1489
  return await runWithRateLimitExecutionContext(rateLimitContext, async () => {
1493
1490
  return await webhookDef.handler(data.webhookRequest, data.webhookContext);
1494
1491
  });
@@ -4627,8 +4627,8 @@ async function handleInstall(body, hooks) {
4627
4627
  try {
4628
4628
  const installHook = hooks.install;
4629
4629
  const installHandler = typeof installHook === "function" ? installHook : installHook.handler;
4630
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
4631
- return await runWithConfig(requestConfig, async () => {
4630
+ const result = await runWithConfig(requestConfig, async () => {
4631
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
4632
4632
  return await installHandler(installContext);
4633
4633
  });
4634
4634
  });
@@ -4695,8 +4695,8 @@ async function handleUninstall(body, hooks) {
4695
4695
  try {
4696
4696
  const uninstallHook = hooks.uninstall;
4697
4697
  const uninstallHandlerFn = typeof uninstallHook === "function" ? uninstallHook : uninstallHook.handler;
4698
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
4699
- return await runWithConfig(requestConfig, async () => {
4698
+ const result = await runWithConfig(requestConfig, async () => {
4699
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
4700
4700
  return await uninstallHandlerFn(uninstallContext);
4701
4701
  });
4702
4702
  });
@@ -4756,8 +4756,8 @@ async function handleProvision(body, hooks) {
4756
4756
  try {
4757
4757
  const provisionHook = hooks.provision;
4758
4758
  const provisionHandler = typeof provisionHook === "function" ? provisionHook : provisionHook.handler;
4759
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
4760
- return await runWithConfig(requestConfig, async () => {
4759
+ const result = await runWithConfig(requestConfig, async () => {
4760
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
4761
4761
  return await provisionHandler(provisionContext);
4762
4762
  });
4763
4763
  });
@@ -4816,14 +4816,11 @@ async function handleSetupRevalidate(body, hooks) {
4816
4816
  };
4817
4817
  try {
4818
4818
  const handler = typeof revalidateHook === "function" ? revalidateHook : revalidateHook.handler;
4819
- const result = await runWithLogContext(
4820
- { invocation: body.invocation },
4821
- async () => {
4822
- return await runWithConfig(requestConfig, async () => {
4823
- return await handler(ctx);
4824
- });
4825
- }
4826
- );
4819
+ const result = await runWithConfig(requestConfig, async () => {
4820
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
4821
+ return await handler(ctx);
4822
+ });
4823
+ });
4827
4824
  return {
4828
4825
  status: 200,
4829
4826
  body: {
@@ -4921,8 +4918,8 @@ async function handleOAuthCallback(parsedBody, hooks) {
4921
4918
  try {
4922
4919
  const oauthCallbackHook = hooks.oauth_callback;
4923
4920
  const oauthCallbackHandler = typeof oauthCallbackHook === "function" ? oauthCallbackHook : oauthCallbackHook.handler;
4924
- const result = await runWithLogContext({ invocation }, async () => {
4925
- return await runWithConfig(requestConfig, async () => {
4921
+ const result = await runWithConfig(requestConfig, async () => {
4922
+ return await runWithLogContext({ invocation }, async () => {
4926
4923
  return await oauthCallbackHandler(oauthCallbackContext);
4927
4924
  });
4928
4925
  });
@@ -5037,8 +5034,8 @@ async function executeWebhookHandler(handle, webhookRegistry, data) {
5037
5034
  invocation: data.invocation,
5038
5035
  isProvisionContext: !isRuntimeWebhookContext(data.webhookContext)
5039
5036
  };
5040
- webhookResponse = await runWithLogContext({ invocation: data.invocation }, async () => {
5041
- return await runWithConfig(requestConfig, async () => {
5037
+ webhookResponse = await runWithConfig(requestConfig, async () => {
5038
+ return await runWithLogContext({ invocation: data.invocation }, async () => {
5042
5039
  return await runWithRateLimitExecutionContext(rateLimitContext, async () => {
5043
5040
  return await webhookDef.handler(data.webhookRequest, data.webhookContext);
5044
5041
  });
package/dist/index.js CHANGED
@@ -5016,8 +5016,8 @@ async function handleInstall(body, hooks) {
5016
5016
  try {
5017
5017
  const installHook = hooks.install;
5018
5018
  const installHandler = typeof installHook === "function" ? installHook : installHook.handler;
5019
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
5020
- return await runWithConfig(requestConfig, async () => {
5019
+ const result = await runWithConfig(requestConfig, async () => {
5020
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
5021
5021
  return await installHandler(installContext);
5022
5022
  });
5023
5023
  });
@@ -5084,8 +5084,8 @@ async function handleUninstall(body, hooks) {
5084
5084
  try {
5085
5085
  const uninstallHook = hooks.uninstall;
5086
5086
  const uninstallHandlerFn = typeof uninstallHook === "function" ? uninstallHook : uninstallHook.handler;
5087
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
5088
- return await runWithConfig(requestConfig, async () => {
5087
+ const result = await runWithConfig(requestConfig, async () => {
5088
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
5089
5089
  return await uninstallHandlerFn(uninstallContext);
5090
5090
  });
5091
5091
  });
@@ -5145,8 +5145,8 @@ async function handleProvision(body, hooks) {
5145
5145
  try {
5146
5146
  const provisionHook = hooks.provision;
5147
5147
  const provisionHandler = typeof provisionHook === "function" ? provisionHook : provisionHook.handler;
5148
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
5149
- return await runWithConfig(requestConfig, async () => {
5148
+ const result = await runWithConfig(requestConfig, async () => {
5149
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
5150
5150
  return await provisionHandler(provisionContext);
5151
5151
  });
5152
5152
  });
@@ -5205,14 +5205,11 @@ async function handleSetupRevalidate(body, hooks) {
5205
5205
  };
5206
5206
  try {
5207
5207
  const handler = typeof revalidateHook === "function" ? revalidateHook : revalidateHook.handler;
5208
- const result = await runWithLogContext(
5209
- { invocation: body.invocation },
5210
- async () => {
5211
- return await runWithConfig(requestConfig, async () => {
5212
- return await handler(ctx);
5213
- });
5214
- }
5215
- );
5208
+ const result = await runWithConfig(requestConfig, async () => {
5209
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
5210
+ return await handler(ctx);
5211
+ });
5212
+ });
5216
5213
  return {
5217
5214
  status: 200,
5218
5215
  body: {
@@ -5310,8 +5307,8 @@ async function handleOAuthCallback(parsedBody, hooks) {
5310
5307
  try {
5311
5308
  const oauthCallbackHook = hooks.oauth_callback;
5312
5309
  const oauthCallbackHandler = typeof oauthCallbackHook === "function" ? oauthCallbackHook : oauthCallbackHook.handler;
5313
- const result = await runWithLogContext({ invocation }, async () => {
5314
- return await runWithConfig(requestConfig, async () => {
5310
+ const result = await runWithConfig(requestConfig, async () => {
5311
+ return await runWithLogContext({ invocation }, async () => {
5315
5312
  return await oauthCallbackHandler(oauthCallbackContext);
5316
5313
  });
5317
5314
  });
@@ -5426,8 +5423,8 @@ async function executeWebhookHandler(handle, webhookRegistry, data) {
5426
5423
  invocation: data.invocation,
5427
5424
  isProvisionContext: !isRuntimeWebhookContext(data.webhookContext)
5428
5425
  };
5429
- webhookResponse = await runWithLogContext({ invocation: data.invocation }, async () => {
5430
- return await runWithConfig(requestConfig, async () => {
5426
+ webhookResponse = await runWithConfig(requestConfig, async () => {
5427
+ return await runWithLogContext({ invocation: data.invocation }, async () => {
5431
5428
  return await runWithRateLimitExecutionContext(rateLimitContext, async () => {
5432
5429
  return await webhookDef.handler(data.webhookRequest, data.webhookContext);
5433
5430
  });
package/dist/server.js CHANGED
@@ -1072,8 +1072,8 @@ async function handleInstall(body, hooks) {
1072
1072
  try {
1073
1073
  const installHook = hooks.install;
1074
1074
  const installHandler = typeof installHook === "function" ? installHook : installHook.handler;
1075
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1076
- return await runWithConfig(requestConfig, async () => {
1075
+ const result = await runWithConfig(requestConfig, async () => {
1076
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1077
1077
  return await installHandler(installContext);
1078
1078
  });
1079
1079
  });
@@ -1140,8 +1140,8 @@ async function handleUninstall(body, hooks) {
1140
1140
  try {
1141
1141
  const uninstallHook = hooks.uninstall;
1142
1142
  const uninstallHandlerFn = typeof uninstallHook === "function" ? uninstallHook : uninstallHook.handler;
1143
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1144
- return await runWithConfig(requestConfig, async () => {
1143
+ const result = await runWithConfig(requestConfig, async () => {
1144
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1145
1145
  return await uninstallHandlerFn(uninstallContext);
1146
1146
  });
1147
1147
  });
@@ -1201,8 +1201,8 @@ async function handleProvision(body, hooks) {
1201
1201
  try {
1202
1202
  const provisionHook = hooks.provision;
1203
1203
  const provisionHandler = typeof provisionHook === "function" ? provisionHook : provisionHook.handler;
1204
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1205
- return await runWithConfig(requestConfig, async () => {
1204
+ const result = await runWithConfig(requestConfig, async () => {
1205
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1206
1206
  return await provisionHandler(provisionContext);
1207
1207
  });
1208
1208
  });
@@ -1261,14 +1261,11 @@ async function handleSetupRevalidate(body, hooks) {
1261
1261
  };
1262
1262
  try {
1263
1263
  const handler = typeof revalidateHook === "function" ? revalidateHook : revalidateHook.handler;
1264
- const result = await runWithLogContext(
1265
- { invocation: body.invocation },
1266
- async () => {
1267
- return await runWithConfig(requestConfig, async () => {
1268
- return await handler(ctx);
1269
- });
1270
- }
1271
- );
1264
+ const result = await runWithConfig(requestConfig, async () => {
1265
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1266
+ return await handler(ctx);
1267
+ });
1268
+ });
1272
1269
  return {
1273
1270
  status: 200,
1274
1271
  body: {
@@ -1366,8 +1363,8 @@ async function handleOAuthCallback(parsedBody, hooks) {
1366
1363
  try {
1367
1364
  const oauthCallbackHook = hooks.oauth_callback;
1368
1365
  const oauthCallbackHandler = typeof oauthCallbackHook === "function" ? oauthCallbackHook : oauthCallbackHook.handler;
1369
- const result = await runWithLogContext({ invocation }, async () => {
1370
- return await runWithConfig(requestConfig, async () => {
1366
+ const result = await runWithConfig(requestConfig, async () => {
1367
+ return await runWithLogContext({ invocation }, async () => {
1371
1368
  return await oauthCallbackHandler(oauthCallbackContext);
1372
1369
  });
1373
1370
  });
@@ -1487,8 +1484,8 @@ async function executeWebhookHandler(handle, webhookRegistry, data) {
1487
1484
  invocation: data.invocation,
1488
1485
  isProvisionContext: !isRuntimeWebhookContext(data.webhookContext)
1489
1486
  };
1490
- webhookResponse = await runWithLogContext({ invocation: data.invocation }, async () => {
1491
- return await runWithConfig(requestConfig, async () => {
1487
+ webhookResponse = await runWithConfig(requestConfig, async () => {
1488
+ return await runWithLogContext({ invocation: data.invocation }, async () => {
1492
1489
  return await runWithRateLimitExecutionContext(rateLimitContext, async () => {
1493
1490
  return await webhookDef.handler(data.webhookRequest, data.webhookContext);
1494
1491
  });
@@ -1033,8 +1033,8 @@ async function handleInstall(body, hooks) {
1033
1033
  try {
1034
1034
  const installHook = hooks.install;
1035
1035
  const installHandler = typeof installHook === "function" ? installHook : installHook.handler;
1036
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1037
- return await runWithConfig(requestConfig, async () => {
1036
+ const result = await runWithConfig(requestConfig, async () => {
1037
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1038
1038
  return await installHandler(installContext);
1039
1039
  });
1040
1040
  });
@@ -1101,8 +1101,8 @@ async function handleUninstall(body, hooks) {
1101
1101
  try {
1102
1102
  const uninstallHook = hooks.uninstall;
1103
1103
  const uninstallHandlerFn = typeof uninstallHook === "function" ? uninstallHook : uninstallHook.handler;
1104
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1105
- return await runWithConfig(requestConfig, async () => {
1104
+ const result = await runWithConfig(requestConfig, async () => {
1105
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1106
1106
  return await uninstallHandlerFn(uninstallContext);
1107
1107
  });
1108
1108
  });
@@ -1162,8 +1162,8 @@ async function handleProvision(body, hooks) {
1162
1162
  try {
1163
1163
  const provisionHook = hooks.provision;
1164
1164
  const provisionHandler = typeof provisionHook === "function" ? provisionHook : provisionHook.handler;
1165
- const result = await runWithLogContext({ invocation: body.invocation }, async () => {
1166
- return await runWithConfig(requestConfig, async () => {
1165
+ const result = await runWithConfig(requestConfig, async () => {
1166
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1167
1167
  return await provisionHandler(provisionContext);
1168
1168
  });
1169
1169
  });
@@ -1222,14 +1222,11 @@ async function handleSetupRevalidate(body, hooks) {
1222
1222
  };
1223
1223
  try {
1224
1224
  const handler = typeof revalidateHook === "function" ? revalidateHook : revalidateHook.handler;
1225
- const result = await runWithLogContext(
1226
- { invocation: body.invocation },
1227
- async () => {
1228
- return await runWithConfig(requestConfig, async () => {
1229
- return await handler(ctx);
1230
- });
1231
- }
1232
- );
1225
+ const result = await runWithConfig(requestConfig, async () => {
1226
+ return await runWithLogContext({ invocation: body.invocation }, async () => {
1227
+ return await handler(ctx);
1228
+ });
1229
+ });
1233
1230
  return {
1234
1231
  status: 200,
1235
1232
  body: {
@@ -1327,8 +1324,8 @@ async function handleOAuthCallback(parsedBody, hooks) {
1327
1324
  try {
1328
1325
  const oauthCallbackHook = hooks.oauth_callback;
1329
1326
  const oauthCallbackHandler = typeof oauthCallbackHook === "function" ? oauthCallbackHook : oauthCallbackHook.handler;
1330
- const result = await runWithLogContext({ invocation }, async () => {
1331
- return await runWithConfig(requestConfig, async () => {
1327
+ const result = await runWithConfig(requestConfig, async () => {
1328
+ return await runWithLogContext({ invocation }, async () => {
1332
1329
  return await oauthCallbackHandler(oauthCallbackContext);
1333
1330
  });
1334
1331
  });
@@ -1448,8 +1445,8 @@ async function executeWebhookHandler(handle, webhookRegistry, data) {
1448
1445
  invocation: data.invocation,
1449
1446
  isProvisionContext: !isRuntimeWebhookContext(data.webhookContext)
1450
1447
  };
1451
- webhookResponse = await runWithLogContext({ invocation: data.invocation }, async () => {
1452
- return await runWithConfig(requestConfig, async () => {
1448
+ webhookResponse = await runWithConfig(requestConfig, async () => {
1449
+ return await runWithLogContext({ invocation: data.invocation }, async () => {
1453
1450
  return await runWithRateLimitExecutionContext(rateLimitContext, async () => {
1454
1451
  return await webhookDef.handler(data.webhookRequest, data.webhookContext);
1455
1452
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.7.17",
3
+ "version": "1.7.19",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",