@luckystack/core 0.10.0 → 0.10.2

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/index.js CHANGED
@@ -2,11 +2,13 @@ import {
2
2
  DEFAULT_CSRF_CONFIG,
3
3
  DEFAULT_PAGE_ROUTE_RULES,
4
4
  INVALID_ERROR_RESPONSE_CODE,
5
+ ROUTED_DATA_QUERY_KEY,
5
6
  buildApiResponseEventName,
6
7
  buildApiStreamEventName,
7
8
  buildGetJoinedRoomsResponseEventName,
8
9
  buildJoinRoomResponseEventName,
9
10
  buildLeaveRoomResponseEventName,
11
+ buildRoutedGetUrl,
10
12
  buildSyncProgressEventName,
11
13
  buildSyncResponseEventName,
12
14
  clearCsrfToken,
@@ -49,7 +51,7 @@ import {
49
51
  tryCatchSync,
50
52
  validatePagePath,
51
53
  waitForSocket
52
- } from "./chunk-VRKJHE7E.js";
54
+ } from "./chunk-5FXBTGYL.js";
53
55
  import {
54
56
  getDeployConfig,
55
57
  getPortOverride,
@@ -2287,6 +2289,11 @@ var abortAllForSocket = (socketId) => {
2287
2289
  }
2288
2290
  };
2289
2291
 
2292
+ // src/testResetTargets.ts
2293
+ var TEST_RESET_TARGETS = ["rateLimits", "sessions", "activeUsers", "hooks"];
2294
+ var TEST_RESET_ONLY_PARAM = "only";
2295
+ var isTestResetTarget = (value) => TEST_RESET_TARGETS.includes(value);
2296
+
2290
2297
  // src/oneTimeToken.ts
2291
2298
  import { createHash as createHash3, randomBytes as randomBytes2 } from "crypto";
2292
2299
  var TOKEN_BYTES = 32;
@@ -2341,12 +2348,15 @@ export {
2341
2348
  PUBLIC_DIR,
2342
2349
  REDACTED_PLACEHOLDER,
2343
2350
  ROOT_DIR,
2351
+ ROUTED_DATA_QUERY_KEY,
2344
2352
  SERVER_DIR,
2345
2353
  SERVER_FUNCTIONS_DIR,
2346
2354
  SHARED_DIR,
2347
2355
  SRC_DIR,
2348
2356
  TEST_DIRECTORY_NAMES,
2349
2357
  TEST_FILE_PATTERN,
2358
+ TEST_RESET_ONLY_PARAM,
2359
+ TEST_RESET_TARGETS,
2350
2360
  TSCONFIG_ALIAS_FILES,
2351
2361
  UNKNOWN_CLIENT_IP,
2352
2362
  UPLOADS_DIR,
@@ -2367,6 +2377,7 @@ export {
2367
2377
  buildGetJoinedRoomsResponseEventName,
2368
2378
  buildJoinRoomResponseEventName,
2369
2379
  buildLeaveRoomResponseEventName,
2380
+ buildRoutedGetUrl,
2370
2381
  buildSyncProgressEventName,
2371
2382
  buildSyncResponseEventName,
2372
2383
  captureException,
@@ -2496,6 +2507,7 @@ export {
2496
2507
  isSessionProviderRegistered,
2497
2508
  isTestDirectory,
2498
2509
  isTestFile,
2510
+ isTestResetTarget,
2499
2511
  isTestRuntime,
2500
2512
  issueOneTimeToken,
2501
2513
  listEmailSenderNames,