@getstrata/core 0.5.48 → 0.5.49

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.
@@ -137,9 +137,6 @@ function runWithTenant(tenant, callback) {
137
137
  function currentTenant() {
138
138
  return tenantContext.getStore() ?? null;
139
139
  }
140
- function currentTenantId() {
141
- return currentTenant()?.id ?? 1;
142
- }
143
140
  function rateLimitMultiplierForPlan(plan) {
144
141
  switch (plan) {
145
142
  case "enterprise":
@@ -2420,15 +2420,16 @@ function readSharedJobRegistry() {
2420
2420
  }
2421
2421
  var jobRegistry = readSharedJobRegistry();
2422
2422
 
2423
- // ../../src/core/contracts/serviceTokens.ts
2424
- var CORE_CONFIG_TOKEN = "core.config";
2425
- var CORE_CACHE_TOKEN = "core.cache";
2426
- var CORE_QUEUE_TOKEN = "core.queue";
2427
- var CORE_EVENT_BUS_TOKEN = "core.eventBus";
2428
- var CORE_POLICY_GATE_TOKEN = "core.policyGate";
2429
- var CORE_AUTH_TOKEN = "core.auth";
2430
- var CORE_TOKEN_SERVICE_TOKEN = "core.tokenService";
2431
2423
  // ../../src/bootstrap/config.ts
2424
+ import {
2425
+ CORE_AUTH_TOKEN,
2426
+ CORE_CACHE_TOKEN,
2427
+ CORE_CONFIG_TOKEN,
2428
+ CORE_EVENT_BUS_TOKEN,
2429
+ CORE_POLICY_GATE_TOKEN,
2430
+ CORE_QUEUE_TOKEN,
2431
+ CORE_TOKEN_SERVICE_TOKEN
2432
+ } from "@getstrata/core/contracts/serviceTokens";
2432
2433
  var DEFAULT_QUEUE_DRIVER = "sync";
2433
2434
 
2434
2435
  // ../../src/config/queue.ts
@@ -1,13 +1,14 @@
1
1
  // @bun
2
- // ../../src/core/contracts/serviceTokens.ts
3
- var CORE_CONFIG_TOKEN = "core.config";
4
- var CORE_CACHE_TOKEN = "core.cache";
5
- var CORE_QUEUE_TOKEN = "core.queue";
6
- var CORE_EVENT_BUS_TOKEN = "core.eventBus";
7
- var CORE_POLICY_GATE_TOKEN = "core.policyGate";
8
- var CORE_AUTH_TOKEN = "core.auth";
9
- var CORE_TOKEN_SERVICE_TOKEN = "core.tokenService";
10
2
  // ../../src/bootstrap/config.ts
3
+ import {
4
+ CORE_AUTH_TOKEN,
5
+ CORE_CACHE_TOKEN,
6
+ CORE_CONFIG_TOKEN,
7
+ CORE_EVENT_BUS_TOKEN,
8
+ CORE_POLICY_GATE_TOKEN,
9
+ CORE_QUEUE_TOKEN,
10
+ CORE_TOKEN_SERVICE_TOKEN
11
+ } from "@getstrata/core/contracts/serviceTokens";
11
12
  var DEFAULT_QUEUE_DRIVER = "sync";
12
13
 
13
14
  // ../../src/config/queue.ts
@@ -2420,15 +2420,16 @@ function readSharedJobRegistry() {
2420
2420
  }
2421
2421
  var jobRegistry = readSharedJobRegistry();
2422
2422
 
2423
- // ../../src/core/contracts/serviceTokens.ts
2424
- var CORE_CONFIG_TOKEN = "core.config";
2425
- var CORE_CACHE_TOKEN = "core.cache";
2426
- var CORE_QUEUE_TOKEN = "core.queue";
2427
- var CORE_EVENT_BUS_TOKEN = "core.eventBus";
2428
- var CORE_POLICY_GATE_TOKEN = "core.policyGate";
2429
- var CORE_AUTH_TOKEN = "core.auth";
2430
- var CORE_TOKEN_SERVICE_TOKEN = "core.tokenService";
2431
2423
  // ../../src/bootstrap/config.ts
2424
+ import {
2425
+ CORE_AUTH_TOKEN,
2426
+ CORE_CACHE_TOKEN,
2427
+ CORE_CONFIG_TOKEN,
2428
+ CORE_EVENT_BUS_TOKEN,
2429
+ CORE_POLICY_GATE_TOKEN,
2430
+ CORE_QUEUE_TOKEN,
2431
+ CORE_TOKEN_SERVICE_TOKEN
2432
+ } from "@getstrata/core/contracts/serviceTokens";
2432
2433
  var DEFAULT_QUEUE_DRIVER = "sync";
2433
2434
 
2434
2435
  // ../../src/config/queue.ts
@@ -2,15 +2,16 @@
2
2
  // ../../src/core/queue/queueMetrics.ts
3
3
  var {RedisClient: RedisClient2 } = globalThis.Bun;
4
4
 
5
- // ../../src/core/contracts/serviceTokens.ts
6
- var CORE_CONFIG_TOKEN = "core.config";
7
- var CORE_CACHE_TOKEN = "core.cache";
8
- var CORE_QUEUE_TOKEN = "core.queue";
9
- var CORE_EVENT_BUS_TOKEN = "core.eventBus";
10
- var CORE_POLICY_GATE_TOKEN = "core.policyGate";
11
- var CORE_AUTH_TOKEN = "core.auth";
12
- var CORE_TOKEN_SERVICE_TOKEN = "core.tokenService";
13
5
  // ../../src/bootstrap/config.ts
6
+ import {
7
+ CORE_AUTH_TOKEN,
8
+ CORE_CACHE_TOKEN,
9
+ CORE_CONFIG_TOKEN,
10
+ CORE_EVENT_BUS_TOKEN,
11
+ CORE_POLICY_GATE_TOKEN,
12
+ CORE_QUEUE_TOKEN,
13
+ CORE_TOKEN_SERVICE_TOKEN
14
+ } from "@getstrata/core/contracts/serviceTokens";
14
15
  var DEFAULT_QUEUE_DRIVER = "sync";
15
16
 
16
17
  // ../../src/config/queue.ts
@@ -39,15 +39,16 @@ function readSharedJobRegistry() {
39
39
  }
40
40
  var jobRegistry = readSharedJobRegistry();
41
41
 
42
- // ../../src/core/contracts/serviceTokens.ts
43
- var CORE_CONFIG_TOKEN = "core.config";
44
- var CORE_CACHE_TOKEN = "core.cache";
45
- var CORE_QUEUE_TOKEN = "core.queue";
46
- var CORE_EVENT_BUS_TOKEN = "core.eventBus";
47
- var CORE_POLICY_GATE_TOKEN = "core.policyGate";
48
- var CORE_AUTH_TOKEN = "core.auth";
49
- var CORE_TOKEN_SERVICE_TOKEN = "core.tokenService";
50
42
  // ../../src/bootstrap/config.ts
43
+ import {
44
+ CORE_AUTH_TOKEN,
45
+ CORE_CACHE_TOKEN,
46
+ CORE_CONFIG_TOKEN,
47
+ CORE_EVENT_BUS_TOKEN,
48
+ CORE_POLICY_GATE_TOKEN,
49
+ CORE_QUEUE_TOKEN,
50
+ CORE_TOKEN_SERVICE_TOKEN
51
+ } from "@getstrata/core/contracts/serviceTokens";
51
52
  var DEFAULT_QUEUE_DRIVER = "sync";
52
53
 
53
54
  // ../../src/config/queue.ts
@@ -81,9 +81,6 @@ function runWithTenant(tenant, callback) {
81
81
  function currentTenant() {
82
82
  return tenantContext.getStore() ?? null;
83
83
  }
84
- function currentTenantId() {
85
- return currentTenant()?.id ?? 1;
86
- }
87
84
  function rateLimitMultiplierForPlan(plan) {
88
85
  switch (plan) {
89
86
  case "enterprise":